modified browser shortcut in i3

This commit is contained in:
Lucien Cartier-Tilet 2020-01-15 12:39:18 +01:00
parent 2f45a783fe
commit cf178001d2
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA

268
.config/i3/config##yadm.j2 Executable file → Normal file
View File

@ -1,18 +1,18 @@
# -*- mode: conf -*-
set $mod Mod4
set $alt Mod1
set $up Up
set $down Down
set $left Left
set $right Right
set $term st
set $exiti3 "i3-nagbar -t warning -m 'Leave i3?' -b 'Yes' 'i3-msg exit'"
set $lockscreen "Lucien Cartier-Tilet\n(Phuntsok Drak-pa)\n+33 (0)6 83 90 56 89"
set $rofiexec "rofi -combi-modi 'window,drun' -show combi -mohh combi -m -1 -show-icons"
set $gnus "emacsclient --create-frame --eval '(gnus)' -n"
set $ec "emacsclient --create-frame -n"
set $walset "wal -i ~/Pictures/Wallpapers -o wal-set"
set $mod Mod4
set $alt Mod1
set $up Up
set $down Down
set $left Left
set $right Right
set $term st
set $exiti3 "i3-nagbar -t warning -m 'Leave i3?' -b 'Yes' 'i3-msg exit'"
set $lockscreen "Lucien Cartier-Tilet\n(Phuntsok Drak-pa)\n+33 (0)6 83 90 56 89"
set $rofiexec "rofi -combi-modi 'window,drun' -show combi -mohh combi -m -1 -show-icons"
set $gnus "emacsclient --create-frame --eval '(gnus)' -n"
set $ec "emacsclient --create-frame -n"
set $walset "wal -i ~/Pictures/Wallpapers -o wal-set"
font Fira Sans Book:style=Book:pixelsize=10
@ -61,151 +61,151 @@ assign [class="discord"] 10
workspace 10 output eDP-1
{% endif -%}
bindsym $mod+Return exec $term
bindsym $mod+$alt+Return split h;; exec $term
bindsym $mod+Shift+Return split v;; exec $term
bindsym $mod+$alt+m exec $term ssh Mila
bindsym $mod+$alt+n exec $term ssh Naro
bindsym $mod+Shift+h exec $term htop
bindsym $mod+Return exec $term
bindsym $mod+$alt+Return split h;; exec $term
bindsym $mod+Shift+Return split v;; exec $term
bindsym $mod+$alt+m exec $term ssh Mila
bindsym $mod+$alt+n exec $term ssh Naro
bindsym $mod+Shift+h exec $term htop
bindsym $mod+Shift+c exec yadm alt && i3-msg reload
bindsym $mod+Shift+r exec yadm alt && i3-msg restart
bindsym $mod+Shift+e exec $exiti3
bindsym $mod+Ctrl+w exec $walset
bindsym $mod+l exec i3lock -fol
bindsym $mod+$alt+h exec "systemctl suspend"
bindsym $mod+Ctrl+h exec "systemctl hibernate"
bindsym $mod+Shift+F4 exec poweroff
bindsym $mod+Shift+c exec yadm alt && i3-msg reload
bindsym $mod+Shift+r exec yadm alt && i3-msg restart
bindsym $mod+Shift+e exec $exiti3
bindsym $mod+Ctrl+w exec $walset
bindsym $mod+l exec i3lock -fol
bindsym $mod+$alt+h exec "systemctl suspend"
bindsym $mod+Ctrl+h exec "systemctl hibernate"
bindsym $mod+Shift+F4 exec poweroff
bindsym $mod+h split h
bindsym $mod+v split v
bindsym $mod+h split h
bindsym $mod+v split v
bindsym $mod+$left focus left
bindsym $mod+$down focus down
bindsym $mod+$up focus up
bindsym $mod+$right focus right
bindsym $mod+$left focus left
bindsym $mod+$down focus down
bindsym $mod+$up focus up
bindsym $mod+$right focus right
bindsym $mod+1 workspace 1
bindsym $mod+2 workspace 2
bindsym $mod+3 workspace 3
bindsym $mod+4 workspace 4
bindsym $mod+5 workspace 5
bindsym $mod+6 workspace 6
bindsym $mod+7 workspace 7
bindsym $mod+8 workspace 8
bindsym $mod+9 workspace 9
bindsym $mod+0 workspace 10
bindsym $mod+1 workspace 1
bindsym $mod+2 workspace 2
bindsym $mod+3 workspace 3
bindsym $mod+4 workspace 4
bindsym $mod+5 workspace 5
bindsym $mod+6 workspace 6
bindsym $mod+7 workspace 7
bindsym $mod+8 workspace 8
bindsym $mod+9 workspace 9
bindsym $mod+0 workspace 10
bindsym $mod+Shift+$left move left
bindsym $mod+Shift+$down move down
bindsym $mod+Shift+$up move up
bindsym $mod+Shift+$right move right
bindsym $mod+Shift+$left move left
bindsym $mod+Shift+$down move down
bindsym $mod+Shift+$up move up
bindsym $mod+Shift+$right move right
bindsym $mod+Ctrl+$left move container to output left
bindsym $mod+Ctrl+$down move container to output down
bindsym $mod+Ctrl+$up move container to output up
bindsym $mod+Ctrl+$right move container to output right
bindsym $mod+Shift+1 move container to workspace 1
bindsym $mod+Shift+2 move container to workspace 2
bindsym $mod+Shift+3 move container to workspace 3
bindsym $mod+Shift+4 move container to workspace 4
bindsym $mod+Shift+5 move container to workspace 5
bindsym $mod+Shift+6 move container to workspace 6
bindsym $mod+Shift+7 move container to workspace 7
bindsym $mod+Shift+8 move container to workspace 8
bindsym $mod+Shift+9 move container to workspace 9
bindsym $mod+Shift+0 move container to workspace 10
bindsym $mod+Ctrl+$left move container to output left
bindsym $mod+Ctrl+$down move container to output down
bindsym $mod+Ctrl+$up move container to output up
bindsym $mod+Ctrl+$right move container to output right
bindsym $mod+Shift+1 move container to workspace 1
bindsym $mod+Shift+2 move container to workspace 2
bindsym $mod+Shift+3 move container to workspace 3
bindsym $mod+Shift+4 move container to workspace 4
bindsym $mod+Shift+5 move container to workspace 5
bindsym $mod+Shift+6 move container to workspace 6
bindsym $mod+Shift+7 move container to workspace 7
bindsym $mod+Shift+8 move container to workspace 8
bindsym $mod+Shift+9 move container to workspace 9
bindsym $mod+Shift+0 move container to workspace 10
bindsym $mod+Ctrl+Shift+$left move workspace to output left
bindsym $mod+Ctrl+Shift+$down move workspace to output down
bindsym $mod+Ctrl+Shift+$up move workspace to output up
bindsym $mod+Ctrl+Shift+$right move workspace to output right
bindsym $mod+Ctrl+Shift+$left move workspace to output left
bindsym $mod+Ctrl+Shift+$down move workspace to output down
bindsym $mod+Ctrl+Shift+$up move workspace to output up
bindsym $mod+Ctrl+Shift+$right move workspace to output right
bindsym $mod+q kill
bindsym $alt+F4 kill
bindsym $mod+q kill
bindsym $alt+F4 kill
bindsym $mod+f fullscreen toggle
bindsym $mod+r mode "resize"
bindsym $mod+f fullscreen toggle
bindsym $mod+r mode "resize"
mode "resize" {
bindsym $right resize grow width 20 px or 10 ppt
bindsym r resize grow width 20 px or 10 ppt
bindsym $left resize shrink width 10 px or 5 ppt
bindsym c resize shrink width 10 px or 5 ppt
bindsym $down resize grow height 10 px or 5 ppt
bindsym t resize grow height 10 px or 5 ppt
bindsym $up resize shrink height 10 px or 5 ppt
bindsym s resize shrink height 10 px or 5 ppt
bindsym Return mode "default"
bindsym Escape mode "default"
bindsym $right resize grow width 20 px or 10 ppt
bindsym r resize grow width 20 px or 10 ppt
bindsym $left resize shrink width 10 px or 5 ppt
bindsym c resize shrink width 10 px or 5 ppt
bindsym $down resize grow height 10 px or 5 ppt
bindsym t resize grow height 10 px or 5 ppt
bindsym $up resize shrink height 10 px or 5 ppt
bindsym s resize shrink height 10 px or 5 ppt
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+Shift+space floating toggle
bindsym $mod+space focus mode_toggle
bindsym $mod+Ctrl+c move position center
bindsym $mod+Shift+space floating toggle
bindsym $mod+space focus mode_toggle
bindsym $mod+Ctrl+c move position center
bindsym $mod+Shift+s move scratchpad
bindsym $mod+s scratchpad show
bindsym $mod+Ctrl+s sticky toggle
bindsym $mod+Shift+s move scratchpad
bindsym $mod+s scratchpad show
bindsym $mod+Ctrl+s sticky toggle
bindsym $mod+g gaps inner current plus 5
bindsym $mod+Shift+g gaps inner current minus 5
bindsym $mod+Ctrl+g gaps outer current plus 5
bindsym $mod+Ctrl+Shift+g gaps outer current minus 5
bindsym $mod+$alt+g gaps inner all set 20; gaps outer all set -10
bindsym $mod+g gaps inner current plus 5
bindsym $mod+Shift+g gaps inner current minus 5
bindsym $mod+Ctrl+g gaps outer current plus 5
bindsym $mod+Ctrl+Shift+g gaps outer current minus 5
bindsym $mod+$alt+g gaps inner all set 20; gaps outer all set -10
bindsym $mod+Shift+d exec --no-startup-id j4-dmenu-desktop
bindsym $mod+d exec --no-startup-id $rofiexec
bindsym $mod+Shift+d exec --no-startup-id j4-dmenu-desktop
bindsym $mod+d exec --no-startup-id $rofiexec
bindsym $mod+c exec firefox
bindsym $mod+m exec $gnus
bindsym Ctrl+Shift+d exec discord-canary
bindsym $mod+b exec firefox
bindsym $mod+m exec $gnus
bindsym Ctrl+Shift+d exec discord-canary
bindsym Print exec --no-startup-id scrot
bindsym Ctrl+Print exec --no-startup-id "scrot -s"
bindsym Shift+Print exec --no-startup-id "scrot -d 3"
bindsym Print exec --no-startup-id scrot
bindsym Ctrl+Print exec --no-startup-id "scrot -s"
bindsym Shift+Print exec --no-startup-id "scrot -d 3"
bindsym XF86MonBrightnessUp exec xbacklight -inc 5
bindsym $mod+$alt+Next exec xbacklight -inc 5
bindsym XF86MonBrightnessDown exec xbacklight -dec 5
bindsym $mod+$alt+Prev exec xbacklight -dec 5
bindsym XF86MonBrightnessUp exec xbacklight -inc 5
bindsym $mod+$alt+Next exec xbacklight -inc 5
bindsym XF86MonBrightnessDown exec xbacklight -dec 5
bindsym $mod+$alt+Prev exec xbacklight -dec 5
bindsym XF86AudioNext exec mpc next
bindsym $alt+XF86AudioRaiseVolume exec mpc next
bindsym $mod+Next exec mpc next
bindsym XF86AudioPrev exec mpc prev
bindsym $alt+XF86AudioLowerVolume exec mpc prev
bindsym $mod+Prior exec mpc prev
bindsym XF86AudioPlay exec mpc toggle
bindsym $mod+p exec mpc toggle
bindsym $mod+$alt+p exec mpc stop
bindsym XF86AudioStop exec mpc stop
bindsym $alt+XF86AudioPlay exec mpc stop
bindsym $mod+$alt+7 exec mpc volume +5
bindsym $mod+$alt+8 exec mpc volume -5
bindsym $mod+Shift+n exec $term ncmpcpp -q
bindsym $mod+Shift+v exec $term ncmpcpp -qs visualizer
bindsym XF86AudioMute exec "amixer set Master 1+ toggle"
bindsym Ctrl+$mod+Prior exec "amixer -q set Master 2%+ unmute"
bindsym XF86AudioRaiseVolume exec "amixer -q set Master 2%+ unmute"
bindsym Ctrl+$mod+Next exec "amixer -q set Master 2%- unmute"
bindsym XF86AudioLowerVolume exec "amixer -q set Master 2%- unmute"
bindsym XF86AudioNext exec mpc next
bindsym $alt+XF86AudioRaiseVolume exec mpc next
bindsym $mod+Next exec mpc next
bindsym XF86AudioPrev exec mpc prev
bindsym $alt+XF86AudioLowerVolume exec mpc prev
bindsym $mod+Prior exec mpc prev
bindsym XF86AudioPlay exec mpc toggle
bindsym $mod+p exec mpc toggle
bindsym $mod+$alt+p exec mpc stop
bindsym XF86AudioStop exec mpc stop
bindsym $alt+XF86AudioPlay exec mpc stop
bindsym $mod+$alt+7 exec mpc volume +5
bindsym $mod+$alt+8 exec mpc volume -5
bindsym $mod+Shift+n exec $term ncmpcpp -q
bindsym $mod+Shift+v exec $term ncmpcpp -qs visualizer
bindsym XF86AudioMute exec "amixer set Master 1+ toggle"
bindsym Ctrl+$mod+Prior exec "amixer -q set Master 2%+ unmute"
bindsym XF86AudioRaiseVolume exec "amixer -q set Master 2%+ unmute"
bindsym Ctrl+$mod+Next exec "amixer -q set Master 2%- unmute"
bindsym XF86AudioLowerVolume exec "amixer -q set Master 2%- unmute"
bindsym $mod+Shift+p exec rofi-pass --type
bindsym $mod+Ctrl+Shift+p exec rofi-pass
bindsym $mod+Ctrl+m exec rofi-mount
bindsym $mod+Ctrl+u exec rofi-umount
bindsym $mod+$alt+e exec rofi-emoji
bindsym $mod+w exec wacom-setup
bindsym $mod+Shift+w exec connect-wifi
bindsym $mod+Shift+p exec rofi-pass --type
bindsym $mod+Ctrl+Shift+p exec rofi-pass
bindsym $mod+Ctrl+m exec rofi-mount
bindsym $mod+Ctrl+u exec rofi-umount
bindsym $mod+$alt+e exec rofi-emoji
bindsym $mod+w exec wacom-setup
bindsym $mod+Shift+w exec connect-wifi
bindsym $mod+e exec $ec
bindsym $mod+n exec nemo
bindsym $mod+$alt+c exec speedcrunch
bindsym $mod+F3 exec arandr
bindsym $mod+e exec $ec
bindsym $mod+n exec nemo
bindsym $mod+$alt+c exec speedcrunch
bindsym $mod+F3 exec arandr
{% if YADM_HOSTNAME == 'Marpa' -%}
bindsym $mod+Ctrl+p xrandr --output HDMI-1 --mode 1024x768 --right-of eDP-1
{% else %}
{% else -%}
bindsym $mod+Ctrl+p xrandr --output VGA1 --mode 1024x768 --right-of LVDS1
{% endif -%}