diff options
author | Sébastien Dailly <sebastien@chimrod.com> | 2019-04-21 15:07:23 +0200 |
---|---|---|
committer | Sébastien Dailly <sebastien@chimrod.com> | 2019-04-21 15:07:23 +0200 |
commit | 4c7aaef74b7c1507ae79f7794eeef80f01dd40e9 (patch) | |
tree | 7e0b52ff2573fdb238aa811f6bd861ec6d31803c /i3 | |
parent | 96b77e2029a67aeef9faac9cbcb2a00f75026540 (diff) |
Added script for i3 workspace env
Diffstat (limited to 'i3')
-rw-r--r-- | i3/.config/i3/config | 9 | ||||
-rw-r--r-- | i3/.config/i3/workspaces/0:code-pdf.json | 88 |
2 files changed, 94 insertions, 3 deletions
diff --git a/i3/.config/i3/config b/i3/.config/i3/config index 34fb1a2..e8f6d73 100644 --- a/i3/.config/i3/config +++ b/i3/.config/i3/config @@ -98,6 +98,7 @@ bindsym $modAltkey+Tab exec rofi -show window # shipping a .desktop file. It is a wrapper around dmenu, so you need that # installed. bindsym $mod+d exec --no-startup-id i3-dmenu-desktop --dmenu="rofi -dmenu -p run" +bindsym $mod+W exec --no-startup-id "rofi -modi \\"window,Workspaces:/home/sebastien/dotfiles/rofi/workspaces.sh\\" -show Workspaces" # change focus bindsym $mod+t focus left @@ -194,7 +195,8 @@ bindsym $mod+Shift+o restart #bindsym $mod+Shift+p exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'" # resize window (you can also use the mouse for that) -mode "resize" { +set $mode_resize "Resize" +mode $mode_resize { # These bindings trigger as soon as you enter the resize mode # Pressing left will shrink the window’s width. @@ -217,7 +219,7 @@ mode "resize" { bindsym Escape mode "default" } -bindsym $mod+o mode "resize" +bindsym $mod+o mode $mode_resize bindsym $modAltkey+Escape workspace back_and_forth bindsym shift+XF86HomePage exec pcmanfm @@ -235,7 +237,8 @@ for_window [class="crimson"] floating enable # Add background, with a gradient on top exec_always --no-startup-id hsetroot -fill ~/wallpaper/current.jpg -add "#ffffffff" -add "#ffffff00" -add "#00000000" -gradient 0 -exec_always --no-startup-id polybar i3 exec_always --no-startup-id xrdb .Xdefaults +exec_always --no-startup-id compton -i .8 --focus-exclude '_NET_WM_NAME@:s = "rofi"' --blur-background --blur-kern '3,3,0.1,1,1,1,1,1,1,1' +exec --no-startup-id "xrdb .Xdefaults; polybar i3" # for_window [class="URxvt"] layout tabbed diff --git a/i3/.config/i3/workspaces/0:code-pdf.json b/i3/.config/i3/workspaces/0:code-pdf.json new file mode 100644 index 0000000..19c9c96 --- /dev/null +++ b/i3/.config/i3/workspaces/0:code-pdf.json @@ -0,0 +1,88 @@ +// vim:ts=4:sw=4:et +{ + // splitv split container with 2 children + "border": "pixel", + "floating": "auto_off", + "layout": "splitv", + "percent": 0.55, + "type": "con", + "nodes": [ + { + // splith split container with 1 children + "border": "pixel", + "floating": "auto_off", + "layout": "splith", + "percent": 0.8, + "type": "con", + "nodes": [ + { + "border": "pixel", + "current_border_width": 2, + "floating": "auto_off", + "geometry": { + "height": 945, + "width": 745, + "x": 10, + "y": 10 + }, + //"name": "notes_arduino.pdf - 1/27 (90 dpi)", + "percent": 1, + "swallows": [ + { + "class": "^MuPDF$", + "instance": "^mupdf$" + // "title": "^notes_arduino\\.pdf\\ \\-\\ 1\\/27\\ \\(90\\ dpi\\)$" + } + ], + "type": "con" + } + ] + }, + { + "border": "pixel", + "current_border_width": 2, + "floating": "auto_off", + "geometry": { + "height": 408, + "width": 720, + "x": 0, + "y": 0 + }, + // "name": "sebastien@trunk: ~/sync/arduino", + "percent": 0.202941176470588, + "swallows": [ + { + "class": "^URxvt$", + "instance": "^urxvt$", + // Prevent vim to be here + "title": "^((?!vim).)*$" + // "title": "^sebastien\\@trunk\\:\\ \\~\\/sync\\/arduino$" + } + ], + "type": "con" + } + ] +} + +{ + "border": "pixel", + "current_border_width": 2, + "floating": "auto_off", + "geometry": { + "height": 408, + "width": 720, + "x": 0, + "y": 0 + }, + "name": "vim", + "percent": 0.5, + "swallows": [ + { + "class": "^URxvt$", + "instance": "^urxvt$", + "title": "^vim$" + } + ], + "type": "con" +} + |