kanaya: change i3 workspaces and add some shortcuts

This commit is contained in:
Lexi / Zoe 2019-06-26 14:57:39 +02:00
parent 78c6fc72ee
commit 179dd384c6
Signed by: binaryDiv
GPG Key ID: F8D4956E224DA232
1 changed files with 87 additions and 72 deletions

View File

@ -35,7 +35,6 @@ focus_follows_mouse no
# start a terminal
bindsym $mod+Return exec i3-sensible-terminal
bindsym Mod5+Menu exec i3-sensible-terminal
# kill focused window
@ -89,7 +88,7 @@ bindsym $mod+f fullscreen toggle
# change container layout (stacked, tabbed, toggle split)
#bindsym $mod+s layout stacking
bindsym $mod+t layout tabbed
bindsym $mod+Shift+t layout tabbed
#bindsym $mod+Shift+t layout tabbed
bindsym $mod+e layout toggle split
# toggle tiling / floating
@ -107,8 +106,8 @@ bindsym $mod+shift+a focus child
# define output names (primary, secondard monitor)
set $OUTPUT1 DVI-I-0
set $OUTPUT2 VGA-0
set $OUTPUT1 HDMI-A-1
set $OUTPUT2 DisplayPort-1
# hotkeys for switching between monitors
bindsym $mod+comma focus output left
@ -120,6 +119,7 @@ bindsym $mod+Shift+period move output right
# define workspace names
set $WS0 0
set $WS1 "1: www"
set $WS2 2
set $WS3 3
@ -128,21 +128,31 @@ set $WS5 5
set $WS6 6
set $WS7 7
set $WS8 8
set $WS9 "9: mail"
set $WS9 9
set $WS10 "10: music"
set $WS11 "11: mail"
#set $WS12 12
# alternative workspaces for use on second monitor
set $WS10 "10: com"
set $WSalt1 "11"
set $WSalt2 "12"
set $WSalt3 "13"
set $WSalt4 "14"
set $WSalt5 "15"
set $WSalt6 "16"
set $WSalt7 "17"
set $WSalt8 "18"
set $WSalt9 "19"
#set $WSalt10 $WS10
set $WSalt1 "F1: com"
set $WSalt2 "F2"
set $WSalt3 "F3"
set $WSalt4 "F4"
set $WSalt5 "F5"
set $WSalt6 "F6"
set $WSalt7 "F7"
set $WSalt8 "F8"
set $WSalt9 "F9"
set $WSalt10 "F10"
set $WSalt11 "F11"
set $WSalt12 "F12"
set $WS_www $WS1
set $WS_mail $WS11
set $WS_music $WS10
set $WS_com $WSalt1
workspace $WS0 output $OUTPUT1
workspace $WS1 output $OUTPUT1
workspace $WS2 output $OUTPUT1
workspace $WS3 output $OUTPUT1
@ -152,8 +162,10 @@ workspace $WS6 output $OUTPUT1
workspace $WS7 output $OUTPUT1
workspace $WS8 output $OUTPUT1
workspace $WS9 output $OUTPUT1
workspace $WS10 output $OUTPUT1
workspace $WS11 output $OUTPUT1
#workspace $WS12 output $OUTPUT1
workspace $WS10 output $OUTPUT2
workspace $WSalt1 output $OUTPUT2
workspace $WSalt2 output $OUTPUT2
workspace $WSalt3 output $OUTPUT2
@ -163,37 +175,50 @@ workspace $WSalt6 output $OUTPUT2
workspace $WSalt7 output $OUTPUT2
workspace $WSalt8 output $OUTPUT2
workspace $WSalt9 output $OUTPUT2
workspace $WSalt10 output $OUTPUT2
workspace $WSalt11 output $OUTPUT2
workspace $WSalt12 output $OUTPUT2
# make windows on workspace 10 (primary workspace on second monitor) floating by default
for_window [workspace=$WS10] floating enable
# make windows on workspace 0 and F1 (com) floating by default
#for_window [workspace=$WS0] floating enable
for_window [workspace=$WS_com] floating enable
# assign windows to workspaces
# - Waterfox -> Workspace 1, always tabbed
assign [class="^Waterfox$"] output $OUTPUT1
assign [class="^Waterfox$"] number $WS1
assign [class="^Waterfox$"] number $WS_www
for_window [class="^Waterfox$"] layout tabbed
# - Thunderbird -> Workspace 9
assign [class="^Thunderbird$"] output $OUTPUT1
assign [class="^Thunderbird$"] number $WS9
assign [class="^Thunderbird$"] number $WS_mail
for_window [class="^Thunderbird$"] layout tabbed
# - Telegram -> Workspace 10
assign [class="^TelegramDesktop$"] output $OUTPUT2
assign [class="^TelegramDesktop$"] number $WS10
assign [class="^TelegramDesktop$"] number $WS_com
for_window [class="^TelegramDesktop$" title="^Telegram"] floating enable
for_window [class="^TelegramDesktop$" title="^Telegram"] resize set 900 600
assign [class="^Signal$"] output $OUTPUT2
assign [class="^Signal$"] number $WS_com
for_window [class="^Signal$" title="^Signal"] floating enable
for_window [class="^Signal$" title="^Signal"] resize set 900 600
# TODO audacious
# - pavucontrol -> floating
for_window [class="^Pavucontrol$"] floating enable
for_window [class="^jetbrains-"] layout tabbed
for_window [class="^jetbrains-" title="Commit Changes"] floating disable
for_window [class="^Pavucontrol$"] floating enable
# window hotkeys
bindsym $mod+Ctrl+t [class="^TelegramDesktop$"] focus
# start a terminal in floating mode
for_window [window_role="floating"] floating enable
bindsym $mod+Shift+Return exec mate-terminal --window --role=floating
# switch to workspace
bindsym $mod+grave workspace number $WS0
bindsym $mod+1 workspace number $WS1
bindsym $mod+2 workspace number $WS2
bindsym $mod+3 workspace number $WS3
@ -204,32 +229,27 @@ bindsym $mod+7 workspace number $WS7
bindsym $mod+8 workspace number $WS8
bindsym $mod+9 workspace number $WS9
bindsym $mod+0 workspace number $WS10
bindsym $mod+minus workspace number $WS11
#bindsym $mod+equal workspace number $WS12
bindsym $mod+equal workspace $WSalt1
# switch to alt workspaces (right display)
bindsym $mod+Ctrl+1 workspace number $WSalt1
bindsym $mod+Ctrl+2 workspace number $WSalt2
bindsym $mod+Ctrl+3 workspace number $WSalt3
bindsym $mod+Ctrl+4 workspace number $WSalt4
bindsym $mod+Ctrl+5 workspace number $WSalt5
bindsym $mod+Ctrl+6 workspace number $WSalt6
bindsym $mod+Ctrl+7 workspace number $WSalt7
bindsym $mod+Ctrl+8 workspace number $WSalt8
bindsym $mod+Ctrl+9 workspace number $WSalt9
bindsym $mod+Ctrl+0 workspace number $WS10
# alt hotkeys to switch to alt workspaces (right display)
bindsym $mod+F1 workspace number $WSalt1
bindsym $mod+F2 workspace number $WSalt2
bindsym $mod+F3 workspace number $WSalt3
bindsym $mod+F4 workspace number $WSalt4
bindsym $mod+F5 workspace number $WSalt5
bindsym $mod+F6 workspace number $WSalt6
bindsym $mod+F7 workspace number $WSalt7
bindsym $mod+F8 workspace number $WSalt8
bindsym $mod+F9 workspace number $WSalt9
bindsym $mod+F10 workspace number $WS10
bindsym $mod+F1 workspace $WSalt1
bindsym $mod+F2 workspace $WSalt2
bindsym $mod+F3 workspace $WSalt3
bindsym $mod+F4 workspace $WSalt4
bindsym $mod+F5 workspace $WSalt5
bindsym $mod+F6 workspace $WSalt6
bindsym $mod+F7 workspace $WSalt7
bindsym $mod+F8 workspace $WSalt8
bindsym $mod+F9 workspace $WSalt9
bindsym $mod+F10 workspace $WSalt10
bindsym $mod+F11 workspace $WSalt11
bindsym $mod+F12 workspace $WSalt12
# move focused container to workspace
bindsym $mod+Shift+grave move container to workspace number $WS0
bindsym $mod+Shift+1 move container to workspace number $WS1
bindsym $mod+Shift+2 move container to workspace number $WS2
bindsym $mod+Shift+3 move container to workspace number $WS3
@ -240,28 +260,23 @@ bindsym $mod+Shift+7 move container to workspace number $WS7
bindsym $mod+Shift+8 move container to workspace number $WS8
bindsym $mod+Shift+9 move container to workspace number $WS9
bindsym $mod+Shift+0 move container to workspace number $WS10
bindsym $mod+Shift+minus move container to workspace number $WS11
#bindsym $mod+Shift+equal move container to workspace number $WS12
bindsym $mod+Shift+Ctrl+1 move container to workspace number $WSalt1
bindsym $mod+Shift+Ctrl+2 move container to workspace number $WSalt2
bindsym $mod+Shift+Ctrl+3 move container to workspace number $WSalt3
bindsym $mod+Shift+Ctrl+4 move container to workspace number $WSalt4
bindsym $mod+Shift+Ctrl+5 move container to workspace number $WSalt5
bindsym $mod+Shift+Ctrl+6 move container to workspace number $WSalt6
bindsym $mod+Shift+Ctrl+7 move container to workspace number $WSalt7
bindsym $mod+Shift+Ctrl+8 move container to workspace number $WSalt8
bindsym $mod+Shift+Ctrl+9 move container to workspace number $WSalt9
bindsym $mod+Shift+Ctrl+0 move container to workspace number $WS10
bindsym $mod+Shift+equal move container to workspace $WSalt1
bindsym $mod+Shift+F1 move container to workspace number $WSalt1
bindsym $mod+Shift+F2 move container to workspace number $WSalt2
bindsym $mod+Shift+F3 move container to workspace number $WSalt3
bindsym $mod+Shift+F4 move container to workspace number $WSalt4
bindsym $mod+Shift+F5 move container to workspace number $WSalt5
bindsym $mod+Shift+F6 move container to workspace number $WSalt6
bindsym $mod+Shift+F7 move container to workspace number $WSalt7
bindsym $mod+Shift+F8 move container to workspace number $WSalt8
bindsym $mod+Shift+F9 move container to workspace number $WSalt9
bindsym $mod+Shift+F10 move container to workspace number $WS10
bindsym $mod+Shift+F1 move container to workspace $WSalt1
bindsym $mod+Shift+F2 move container to workspace $WSalt2
bindsym $mod+Shift+F3 move container to workspace $WSalt3
bindsym $mod+Shift+F4 move container to workspace $WSalt4
bindsym $mod+Shift+F5 move container to workspace $WSalt5
bindsym $mod+Shift+F6 move container to workspace $WSalt6
bindsym $mod+Shift+F7 move container to workspace $WSalt7
bindsym $mod+Shift+F8 move container to workspace $WSalt8
bindsym $mod+Shift+F9 move container to workspace $WSalt9
bindsym $mod+Shift+F10 move container to workspace $WSalt10
bindsym $mod+Shift+F11 move container to workspace $WSalt11
bindsym $mod+Shift+F12 move container to workspace $WSalt12
# reload the configuration file
bindsym $mod+Shift+c reload
@ -272,7 +287,7 @@ bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcu
# open i3-input
bindsym $mod+Shift+grave exec i3-input
#bindsym $mod+Shift+grave exec i3-input
# resize window (you can also use the mouse for that)
@ -314,7 +329,7 @@ bar {
# #position top
# #separator_symbol "|"
tray_output DVI-I-0
tray_output $OUTPUT1
# tray_padding 0
colors {
@ -350,7 +365,7 @@ client.background #ffffff
exec --no-startup-id redshift-gtk
exec --no-startup-id volumeicon
exec --no-startup-id nextcloud
exec --no-startup-id dropbox
#exec --no-startup-id dropbox
# Script that auto clears X primary selection on window focus events
# (uses xdotool and xclip, effectively disables middle mouse paste)