2018-04-03 15:55:41 +02:00
|
|
|
# i3 config file (v4)
|
|
|
|
# See http://i3wm.org/docs/userguide.html for a complete reference
|
|
|
|
|
|
|
|
set $term $HOME/.config/i3/terminal.sh
|
2018-07-12 00:49:16 +02:00
|
|
|
set $termexec i3-sensible-terminal
|
2018-04-03 15:55:41 +02:00
|
|
|
set $barlaunchcmd $HOME/.config/polybar/launch.sh
|
|
|
|
|
2018-07-12 00:49:16 +02:00
|
|
|
set $volumeStep 5
|
|
|
|
|
2018-04-03 15:55:41 +02:00
|
|
|
########################
|
|
|
|
# i3 basic preferences # {{{1
|
|
|
|
########################
|
|
|
|
|
|
|
|
# font for window titles
|
|
|
|
font pango:Fira Sans 9
|
|
|
|
|
|
|
|
# modifier key: Super (swapped below, so effective key is Alt)
|
|
|
|
set $mod Mod4
|
|
|
|
|
|
|
|
# use Mouse+$mod to drag floating windows to their wanted position
|
|
|
|
floating_modifier $mod
|
|
|
|
|
|
|
|
# resize window
|
|
|
|
mode "resize" {
|
2018-11-04 00:45:46 +01:00
|
|
|
bindsym Ctrl+h resize shrink width 2 px or 1 ppt
|
|
|
|
bindsym Ctrl+j resize grow height 2 px or 1 ppt
|
|
|
|
bindsym Ctrl+k resize shrink height 2 px or 1 ppt
|
|
|
|
bindsym Ctrl+l resize grow width 2 px or 1 ppt
|
|
|
|
|
2022-06-11 20:00:32 +02:00
|
|
|
bindsym h resize shrink width 10 px or 5 ppt
|
|
|
|
bindsym j resize grow height 10 px or 5 ppt
|
|
|
|
bindsym k resize shrink height 10 px or 5 ppt
|
|
|
|
bindsym l resize grow width 10 px or 5 ppt
|
2018-04-03 15:55:41 +02:00
|
|
|
|
2022-06-11 20:00:32 +02:00
|
|
|
bindsym Shift+h resize shrink width 30 px or 10 ppt
|
|
|
|
bindsym Shift+j resize grow height 30 px or 10 ppt
|
|
|
|
bindsym Shift+k resize shrink height 30 px or 10 ppt
|
|
|
|
bindsym Shift+l resize grow width 30 px or 10 ppt
|
2018-04-03 15:55:41 +02:00
|
|
|
|
|
|
|
# back to normal: Enter, Escape or mod+r
|
|
|
|
bindsym Return mode "default"
|
|
|
|
bindsym KP_Enter mode "default"
|
|
|
|
bindsym Escape mode "default"
|
|
|
|
bindsym $mod+r mode "default"
|
|
|
|
}
|
|
|
|
|
|
|
|
bindsym $mod+r mode "resize"
|
|
|
|
|
|
|
|
# mouse following breaks keyboard window switching between terminals when the terminal tries to hide the mouse when you start typing, or something
|
|
|
|
# also, it's annoying to lose focus on your window when you move the mouse slightly
|
|
|
|
focus_follows_mouse no
|
|
|
|
|
2018-11-04 00:46:31 +01:00
|
|
|
no_focus [title="IntelliJ"]
|
|
|
|
|
2018-04-03 15:55:41 +02:00
|
|
|
# gaps when more than one window is open on a workspace
|
|
|
|
for_window [class="^.*"] border pixel 0
|
2022-06-11 20:00:32 +02:00
|
|
|
gaps inner 5
|
2018-04-03 15:55:41 +02:00
|
|
|
smart_gaps on
|
|
|
|
|
|
|
|
|
|
|
|
############
|
|
|
|
# Keyboard # {{{1
|
|
|
|
############
|
|
|
|
|
|
|
|
# Belgian layout, swap Alt and Super, set caps lock as compose key ♥
|
|
|
|
exec_always --no-startup-id setxkbmap \
|
|
|
|
-layout be \
|
2022-06-11 20:00:32 +02:00
|
|
|
-option compose:caps \
|
|
|
|
-option shift:both_capslock \
|
|
|
|
-option altwin:swap_lalt_lwin
|
|
|
|
#-option caps:none \
|
|
|
|
# Mouse acceleration, https://wiki.archlinux.org/title/Mouse_acceleration
|
|
|
|
exec_always --no-startup-id xinput --set-prop 'SynPS/2 Synaptics TouchPad' 'libinput Accel Speed' 0.5
|
|
|
|
exec_always --no-startup-id xinput --set-prop 'SynPS/2 Synaptics TouchPad' 'libinput Tapping Enabled' 1
|
2018-04-03 15:55:41 +02:00
|
|
|
|
|
|
|
# enable NumLock
|
|
|
|
exec_always --no-startup-id numlockx on
|
|
|
|
|
|
|
|
|
2018-07-12 00:58:13 +02:00
|
|
|
set $macromode "macro: [l]olol"
|
|
|
|
mode $macromode {
|
|
|
|
bindsym l mode default, exec --no-startup-id "sleep 0.1; for i in $(seq $(( RANDOM % 5 + 3 ))); do xdotool key l o; done; xdotool key l Return"
|
2022-06-11 20:00:32 +02:00
|
|
|
bindsym d mode default, exec --no-startup-id "sleep 0.1; xdotool type $(d)"
|
2018-07-12 00:58:13 +02:00
|
|
|
# Define your own cool macros here
|
|
|
|
|
|
|
|
# back to normal: Enter, Escape or mod+r
|
|
|
|
bindsym Return mode "default"
|
|
|
|
bindsym KP_Enter mode "default"
|
|
|
|
bindsym Escape mode "default"
|
|
|
|
bindsym $mod+c mode "default"
|
|
|
|
}
|
|
|
|
|
|
|
|
bindsym $mod+c mode $macromode
|
|
|
|
|
|
|
|
|
2018-04-03 15:55:41 +02:00
|
|
|
################
|
|
|
|
# Applications # {{{1
|
|
|
|
################
|
|
|
|
|
|
|
|
# lock the screen
|
2022-06-11 20:00:32 +02:00
|
|
|
bindsym $mod+i exec --no-startup-id $HOME/.config/i3/lock.sh
|
2018-04-03 15:55:41 +02:00
|
|
|
|
|
|
|
# start a terminal
|
2018-04-17 11:09:16 +02:00
|
|
|
bindsym $mod+Return exec $term
|
|
|
|
bindsym $mod+KP_Enter exec $term
|
2019-03-01 17:49:56 +01:00
|
|
|
bindsym $mod+w exec $term
|
2018-04-30 17:19:00 +02:00
|
|
|
# start a terminal and execute the command `exec-with-shortcut` from your PATH in it
|
2018-11-04 00:51:16 +01:00
|
|
|
bindsym XF86Calculator exec "$termexec -T exec-with-shortcut --dynamic-title-mode=none -x bash -c 'exec-with-shortcut; read'"
|
2018-04-03 15:55:41 +02:00
|
|
|
|
|
|
|
# start web browser
|
2022-06-11 20:00:32 +02:00
|
|
|
set $browser TZ=UTC /usr/bin/firejail --name=firefox --profile=/etc/firejail/firefox.profile /usr/lib64/firefox/firefox
|
2018-04-03 15:55:41 +02:00
|
|
|
bindsym XF86HomePage exec $browser
|
|
|
|
|
|
|
|
# open file manager
|
|
|
|
set $filemanager thunar
|
|
|
|
bindsym XF86MyComputer exec $filemanager
|
2018-08-06 19:34:39 +02:00
|
|
|
bindsym XF86Explorer exec $filemanager
|
|
|
|
|
|
|
|
# open mail client
|
2022-06-11 20:00:32 +02:00
|
|
|
#set $mailclient thunderbird
|
|
|
|
set $mailclient $termexec -e alot -C1
|
2018-08-06 19:34:39 +02:00
|
|
|
bindsym XF86Mail exec $mailclient
|
2018-04-03 15:55:41 +02:00
|
|
|
|
|
|
|
# change display layout
|
2022-06-11 20:00:32 +02:00
|
|
|
bindsym $mod+XF86Display exec arandr
|
|
|
|
bindsym XF86Display exec --no-startup-id $HOME/.config/i3/monitors.sh
|
|
|
|
bindsym Mod1+$mod+XF86Display exec arandr
|
|
|
|
bindsym Mod1+p exec --no-startup-id $HOME/.config/i3/monitors.sh
|
|
|
|
|
|
|
|
# fill password
|
|
|
|
bindsym $mod+p exec $HOME/.local/bin/dpass
|
2018-04-03 15:55:41 +02:00
|
|
|
|
|
|
|
|
2018-08-20 22:36:02 +02:00
|
|
|
# program launcher
|
2022-06-11 20:00:32 +02:00
|
|
|
set $launcher sh -c 'killall rofi || rofi -show combi -display-combi \\">>>\\"'
|
2018-08-20 22:36:02 +02:00
|
|
|
#bindsym $mod+space exec --no-startup-id "$launcher"
|
2022-06-11 20:00:32 +02:00
|
|
|
#bindsym $mod+Shift+space exec --no-startup-id rofi -show window
|
2018-08-20 22:36:02 +02:00
|
|
|
|
2022-06-11 20:00:32 +02:00
|
|
|
set $openmode "open: [f]irefox, [e]mail, [i]rc, [m]pd client, [M]pd server, [t]or, [g]ucharmap, [j]osm, [a]randr, [ ] launcher"
|
2018-07-12 00:58:13 +02:00
|
|
|
mode $openmode {
|
2022-06-11 20:00:32 +02:00
|
|
|
bindsym f exec $browser, mode default
|
2018-08-06 19:34:39 +02:00
|
|
|
bindsym e exec $mailclient, mode default
|
2018-08-19 16:48:28 +02:00
|
|
|
bindsym i exec $termexec -e weechat, mode default
|
2018-07-12 00:58:13 +02:00
|
|
|
bindsym m exec mpdclient, mode default
|
2022-06-11 20:00:32 +02:00
|
|
|
#bindsym shift+m exec --no-startup-id mpd $HOME/.config/mpd/mpd.conf, mode default
|
|
|
|
bindsym t exec "$HOME/etc/tor-browser_en-US/Browser/start-tor-browser --detach", mode default
|
2018-07-12 00:58:13 +02:00
|
|
|
bindsym g exec gucharmap, mode default
|
|
|
|
bindsym j exec josm, mode default
|
|
|
|
bindsym a exec arandr, mode default
|
|
|
|
|
2018-08-20 22:36:02 +02:00
|
|
|
bindsym space exec "$launcher", mode default
|
|
|
|
|
2018-08-22 00:38:34 +02:00
|
|
|
bindsym Return exec $term, mode "default"
|
|
|
|
bindsym KP_Enter exec $term, mode "default"
|
|
|
|
|
2018-07-12 00:58:13 +02:00
|
|
|
# back to normal: Enter, Escape or mod+r
|
|
|
|
bindsym Escape mode "default"
|
|
|
|
bindsym $mod+o mode "default"
|
|
|
|
}
|
|
|
|
|
|
|
|
bindsym $mod+o mode $openmode
|
2022-06-11 20:00:32 +02:00
|
|
|
bindsym $mod+d exec "$launcher"
|
2018-07-12 00:58:13 +02:00
|
|
|
|
|
|
|
|
2019-06-13 19:15:18 +02:00
|
|
|
set $mpc /usr/bin/mpc
|
2018-07-12 00:49:16 +02:00
|
|
|
set $mpdmode "local mpd: [ ] play/pause, [k/j] prev/next, [h/l] rwnd/ffwd, [u/d] vol, [enter] open client"
|
|
|
|
mode $mpdmode {
|
2019-06-13 19:15:18 +02:00
|
|
|
bindsym space exec --no-startup-id $mpc toggle
|
|
|
|
bindsym j exec --no-startup-id $mpc next
|
|
|
|
bindsym k exec --no-startup-id $mpc cdprev
|
|
|
|
bindsym h exec --no-startup-id $mpc seek -5
|
|
|
|
bindsym l exec --no-startup-id $mpc seek +5
|
|
|
|
bindsym Backspace exec --no-startup-id $mpc seek 0%
|
2022-06-11 20:00:32 +02:00
|
|
|
bindsym u exec --no-startup-id $mpc volume +$volumeStep
|
|
|
|
bindsym d exec --no-startup-id $mpc volume -$volumeStep
|
2019-06-13 19:15:18 +02:00
|
|
|
bindsym s exec --no-startup-id $mpc stop, mode "default"
|
2018-07-12 00:49:16 +02:00
|
|
|
bindsym Return exec mpdclient, mode "default"
|
|
|
|
bindsym KP_Enter exec mpdclient, mode "default"
|
|
|
|
bindsym o exec mpdclient, mode "default"
|
|
|
|
|
2022-06-11 20:00:32 +02:00
|
|
|
# back to normal: Escape or mod+m
|
2018-07-12 00:49:16 +02:00
|
|
|
bindsym Escape mode "default"
|
|
|
|
bindsym $mod+m mode "default"
|
|
|
|
}
|
|
|
|
|
|
|
|
bindsym $mod+m mode $mpdmode
|
|
|
|
|
2022-06-11 20:00:32 +02:00
|
|
|
#bindsym $mod+space exec --no-startup-id $mpc toggle
|
2018-08-20 22:36:02 +02:00
|
|
|
|
2018-07-12 00:49:16 +02:00
|
|
|
|
2018-04-03 15:55:41 +02:00
|
|
|
#############################
|
|
|
|
# Keyboard function buttons # {{{1
|
|
|
|
#############################
|
|
|
|
|
|
|
|
bindsym XF86AudioLowerVolume exec --no-startup-id pamixer -d $volumeStep
|
|
|
|
bindsym XF86AudioRaiseVolume exec --no-startup-id pamixer -i $volumeStep
|
|
|
|
bindsym XF86AudioMute exec --no-startup-id pamixer -t
|
|
|
|
bindsym XF86AudioMicMute exec --no-startup-id pamixer --source alsa_input.pci-0000_00_1b.0.analog-stereo -t
|
|
|
|
|
2018-08-06 19:34:39 +02:00
|
|
|
bindsym XF86Back focus left
|
|
|
|
bindsym XF86Forward focus right
|
|
|
|
|
2018-08-18 22:35:19 +02:00
|
|
|
bindsym $mod+XF86AudioLowerVolume exec mpdclient
|
|
|
|
bindsym XF86Tools exec mpdclient
|
2018-08-06 19:34:39 +02:00
|
|
|
bindsym XF86AudioPlay exec mpc toggle
|
|
|
|
bindsym XF86AudioNext exec mpc next
|
|
|
|
bindsym XF86AudioPrev exec mpc cdprev
|
|
|
|
bindsym XF86AudioStop exec mpc stop
|
2018-04-25 12:18:22 +02:00
|
|
|
|
2018-04-03 15:55:41 +02:00
|
|
|
bindsym XF86MonBrightnessDown exec --no-startup-id $HOME/.config/i3/backlight.sh down
|
|
|
|
bindsym XF86MonBrightnessUp exec --no-startup-id $HOME/.config/i3/backlight.sh up
|
|
|
|
|
|
|
|
bindsym XF86PowerOff exec sudo shutdown -h now
|
|
|
|
|
2018-04-05 14:13:08 +02:00
|
|
|
set $scrot scrot '/tmp/screenshot_%Y-%m-%d_%H-%M-%S.png'
|
2022-06-11 20:00:32 +02:00
|
|
|
#bindsym --release $mod+Print exec --no-startup-id "notify-send -a 'scrot' -t 750 'Select rectangle'; $scrot --select --delay 1"
|
|
|
|
#bindsym --release $mod+Shift+Print exec --no-startup-id $scrot
|
|
|
|
#bindsym --release $mod+Ctrl+Print exec --no-startup-id "$scrot --select --delay $(echo $'2\n3\n5\n10\n15' | rofi -p 'scrot delay' -dmenu)"
|
|
|
|
bindsym --release Print exec --no-startup-id "$scrot --select --delay 1"
|
|
|
|
bindsym --release Shift+Print exec --no-startup-id "$scrot"
|
|
|
|
bindsym --release Ctrl+Print exec --no-startup-id "$scrot --select --delay $(echo $'2\n3\n5\n10\n15' | rofi -p 'scrot delay' -dmenu)"
|
2018-04-03 15:55:41 +02:00
|
|
|
|
|
|
|
|
|
|
|
# Window stuff {{{2
|
|
|
|
|
|
|
|
# kill focused window
|
|
|
|
bindsym $mod+Shift+q kill
|
|
|
|
|
|
|
|
# change focus
|
|
|
|
bindsym $mod+h focus left
|
|
|
|
bindsym $mod+j focus down
|
|
|
|
bindsym $mod+k focus up
|
|
|
|
bindsym $mod+l focus right
|
|
|
|
|
|
|
|
# alternatively, you can use the cursor keys:
|
|
|
|
bindsym $mod+Left focus left
|
|
|
|
bindsym $mod+Down focus down
|
|
|
|
bindsym $mod+Up focus up
|
|
|
|
bindsym $mod+Right focus right
|
|
|
|
|
|
|
|
# move focused window
|
|
|
|
bindsym $mod+Shift+h move left
|
|
|
|
bindsym $mod+Shift+j move down
|
|
|
|
bindsym $mod+Shift+k move up
|
|
|
|
bindsym $mod+Shift+l move right
|
|
|
|
|
|
|
|
# alternatively, you can use the cursor keys:
|
|
|
|
bindsym $mod+Shift+Left move left
|
|
|
|
bindsym $mod+Shift+Down move down
|
|
|
|
bindsym $mod+Shift+Up move up
|
|
|
|
bindsym $mod+Shift+Right move right
|
|
|
|
|
|
|
|
# split in horizontal orientation
|
2018-07-12 00:49:16 +02:00
|
|
|
bindsym $mod+b split h
|
2018-04-03 15:55:41 +02:00
|
|
|
|
|
|
|
# split in vertical orientation
|
|
|
|
bindsym $mod+v split v
|
|
|
|
|
|
|
|
# enter fullscreen mode for the focused container
|
|
|
|
bindsym $mod+f fullscreen toggle
|
|
|
|
|
|
|
|
# change container layout
|
|
|
|
#bindsym $mod+s layout stacking
|
|
|
|
bindsym $mod+z layout tabbed
|
|
|
|
bindsym $mod+e layout toggle split
|
|
|
|
|
|
|
|
# toggle tiling / floating
|
2022-06-11 20:00:32 +02:00
|
|
|
#bindsym $mod+Shift+d floating toggle
|
|
|
|
bindsym $mod+Shift+space floating toggle
|
2018-04-03 15:55:41 +02:00
|
|
|
|
|
|
|
# change focus between tiling / floating windows
|
2022-06-11 20:00:32 +02:00
|
|
|
#bindsym $mod+d focus mode_toggle
|
|
|
|
bindsym $mod+space focus mode_toggle
|
2018-04-03 15:55:41 +02:00
|
|
|
|
|
|
|
# focus the parent container
|
|
|
|
bindsym $mod+a focus parent
|
|
|
|
|
|
|
|
# focus the child container
|
2018-08-06 19:34:39 +02:00
|
|
|
bindsym $mod+q focus child
|
2018-04-03 15:55:41 +02:00
|
|
|
|
|
|
|
|
|
|
|
# More window manager stuff {{{2
|
|
|
|
|
|
|
|
# reload the configuration file and restart the bar
|
|
|
|
bindsym $mod+Shift+c reload, exec $barlaunchcmd
|
|
|
|
# restart i3 inplace (preserves layout/session, can be used to upgrade i3)
|
|
|
|
bindsym $mod+Shift+r restart
|
|
|
|
# exit i3
|
|
|
|
bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'Quit i3?' -b 'Yes' 'i3-msg exit'"
|
|
|
|
#bindsym $mod+Shift+e exec "i3-msg exit"
|
|
|
|
|
2022-06-11 20:00:32 +02:00
|
|
|
#bindsym $mod+p exec "sleep 8; notify-send -u critical -a Tasks \\"Urgent reminder\\" \\"You've got to leave now!\\""
|
2018-04-03 15:55:41 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Workspace stuff {{{2
|
|
|
|
|
|
|
|
# switch to workspace
|
2018-04-29 16:58:32 +02:00
|
|
|
bindsym $mod+1 workspace number 1
|
|
|
|
bindsym $mod+2 workspace number 2
|
|
|
|
bindsym $mod+3 workspace number 3
|
|
|
|
bindsym $mod+4 workspace number 4
|
|
|
|
bindsym $mod+5 workspace number 5
|
|
|
|
bindsym $mod+6 workspace number 6
|
|
|
|
bindsym $mod+7 workspace number 7
|
|
|
|
bindsym $mod+8 workspace number 8
|
|
|
|
bindsym $mod+9 workspace number 9
|
|
|
|
bindsym $mod+0 workspace number 10
|
|
|
|
bindsym $mod+parenright workspace number 11
|
2018-04-03 15:55:41 +02:00
|
|
|
# this goes up to eleven!
|
|
|
|
|
|
|
|
# move focused container to workspace
|
2018-04-29 16:58:32 +02:00
|
|
|
bindsym $mod+Shift+1 move container to workspace number 1
|
|
|
|
bindsym $mod+Shift+2 move container to workspace number 2
|
|
|
|
bindsym $mod+Shift+3 move container to workspace number 3
|
|
|
|
bindsym $mod+Shift+4 move container to workspace number 4
|
|
|
|
bindsym $mod+Shift+5 move container to workspace number 5
|
|
|
|
bindsym $mod+Shift+6 move container to workspace number 6
|
|
|
|
bindsym $mod+Shift+7 move container to workspace number 7
|
|
|
|
bindsym $mod+Shift+8 move container to workspace number 8
|
|
|
|
bindsym $mod+Shift+9 move container to workspace number 9
|
|
|
|
bindsym $mod+Shift+0 move container to workspace number 10
|
|
|
|
bindsym $mod+Shift+degree move container to workspace number 11
|
2018-04-03 15:55:41 +02:00
|
|
|
|
|
|
|
|
2018-07-09 12:33:58 +02:00
|
|
|
mode "workspace" {
|
|
|
|
bindsym 1 workspace number 1
|
|
|
|
bindsym 2 workspace number 2
|
|
|
|
bindsym 3 workspace number 3
|
|
|
|
bindsym 4 workspace number 4
|
|
|
|
bindsym 5 workspace number 5
|
|
|
|
bindsym 6 workspace number 6
|
|
|
|
bindsym 7 workspace number 7
|
|
|
|
bindsym 8 workspace number 8
|
|
|
|
bindsym 9 workspace number 9
|
|
|
|
bindsym 0 workspace number 10
|
|
|
|
bindsym a workspace number 11 a
|
|
|
|
bindsym z workspace number 12 z
|
|
|
|
bindsym e workspace number 13 e
|
|
|
|
bindsym r workspace number 14 r
|
|
|
|
bindsym t workspace number 15 t
|
|
|
|
bindsym y workspace number 16 y
|
|
|
|
bindsym u workspace number 17 u
|
|
|
|
bindsym i workspace number 18 i
|
|
|
|
bindsym o workspace number 19 o
|
|
|
|
bindsym p workspace number 20 p
|
|
|
|
bindsym q workspace number 21 q
|
|
|
|
bindsym s workspace number 22 s
|
|
|
|
bindsym d workspace number 23 d
|
|
|
|
bindsym f workspace number 24 f
|
|
|
|
bindsym g workspace number 25 g
|
|
|
|
bindsym h workspace number 26 h
|
|
|
|
bindsym j workspace number 27 j
|
|
|
|
bindsym k workspace number 28 k
|
|
|
|
bindsym l workspace number 29 l
|
|
|
|
bindsym m workspace number 30 m
|
|
|
|
bindsym w workspace number 31 w
|
|
|
|
bindsym x workspace number 32 x
|
|
|
|
bindsym c workspace number 33 c
|
|
|
|
bindsym v workspace number 34 v
|
|
|
|
bindsym b workspace number 35 b
|
|
|
|
bindsym n workspace number 36 n
|
|
|
|
bindsym comma workspace number 37 kk
|
|
|
|
bindsym semicolon workspace number "38 ;"
|
|
|
|
bindsym colon workspace number 39 :
|
|
|
|
bindsym equal workspace number 40 =
|
|
|
|
|
|
|
|
# move focused container to workspace
|
|
|
|
bindsym Shift+1 move container to workspace number 1
|
|
|
|
bindsym Shift+2 move container to workspace number 2
|
|
|
|
bindsym Shift+3 move container to workspace number 3
|
|
|
|
bindsym Shift+4 move container to workspace number 4
|
|
|
|
bindsym Shift+5 move container to workspace number 5
|
|
|
|
bindsym Shift+6 move container to workspace number 6
|
|
|
|
bindsym Shift+7 move container to workspace number 7
|
|
|
|
bindsym Shift+8 move container to workspace number 8
|
|
|
|
bindsym Shift+9 move container to workspace number 9
|
|
|
|
bindsym Shift+0 move container to workspace number 10
|
|
|
|
bindsym Shift+a move container to workspace number 11 a
|
|
|
|
bindsym Shift+z move container to workspace number 12 z
|
|
|
|
bindsym Shift+e move container to workspace number 13 e
|
|
|
|
bindsym Shift+r move container to workspace number 14 r
|
|
|
|
bindsym Shift+t move container to workspace number 15 t
|
|
|
|
bindsym Shift+y move container to workspace number 16 y
|
|
|
|
bindsym Shift+u move container to workspace number 17 u
|
|
|
|
bindsym Shift+i move container to workspace number 18 i
|
|
|
|
bindsym Shift+o move container to workspace number 19 o
|
|
|
|
bindsym Shift+p move container to workspace number 20 p
|
|
|
|
bindsym Shift+q move container to workspace number 21 q
|
|
|
|
bindsym Shift+s move container to workspace number 22 s
|
|
|
|
bindsym Shift+d move container to workspace number 23 d
|
|
|
|
bindsym Shift+f move container to workspace number 24 f
|
|
|
|
bindsym Shift+g move container to workspace number 25 g
|
|
|
|
bindsym Shift+h move container to workspace number 26 h
|
|
|
|
bindsym Shift+j move container to workspace number 27 j
|
|
|
|
bindsym Shift+k move container to workspace number 28 k
|
|
|
|
bindsym Shift+l move container to workspace number 29 l
|
|
|
|
bindsym Shift+m move container to workspace number 30 m
|
|
|
|
bindsym Shift+w move container to workspace number 31 w
|
|
|
|
bindsym Shift+x move container to workspace number 32 x
|
|
|
|
bindsym Shift+c move container to workspace number 33 c
|
|
|
|
bindsym Shift+v move container to workspace number 34 v
|
|
|
|
bindsym Shift+b move container to workspace number 35 b
|
|
|
|
bindsym Shift+n move container to workspace number 36 n
|
|
|
|
bindsym Shift+comma move container to workspace number 37 kk
|
|
|
|
bindsym Shift+semicolon move container to workspace number "38 ;"
|
|
|
|
bindsym Shift+colon move container to workspace number 39 :
|
|
|
|
bindsym Shift+equal move container to workspace number 40 =
|
|
|
|
|
2022-06-11 20:00:32 +02:00
|
|
|
# back to normal: Enter, Escape or mod+s
|
2018-07-09 12:33:58 +02:00
|
|
|
bindsym Return mode "default"
|
|
|
|
bindsym KP_Enter mode "default"
|
|
|
|
bindsym Escape mode "default"
|
|
|
|
bindsym $mod+s mode "default"
|
|
|
|
}
|
|
|
|
|
|
|
|
bindsym $mod+s mode workspace
|
|
|
|
|
2018-09-15 18:07:57 +02:00
|
|
|
bindsym $mod+shift+S exec $HOME/.config/i3/rename.sh
|
2018-08-06 19:34:39 +02:00
|
|
|
|
2018-07-09 12:33:58 +02:00
|
|
|
|
2018-04-03 15:55:41 +02:00
|
|
|
# Monitor stuff {{{2
|
|
|
|
|
|
|
|
bindsym $mod+x move workspace to output right
|
2018-11-04 00:52:59 +01:00
|
|
|
bindsym $mod+shift+x move workspace to output up
|
2018-04-03 15:55:41 +02:00
|
|
|
|
|
|
|
|
|
|
|
# Start i3bar to display a workspace bar (plus the system information i3status
|
|
|
|
# finds out, if available)
|
|
|
|
#bar {
|
|
|
|
#status_command python /usr/lib/python3.6/site-packages/powerline/bindings/i3/powerline-i3.py
|
|
|
|
#font pango:PowerlineFont 12
|
2022-06-11 20:00:32 +02:00
|
|
|
#font pango:Fira Mono 8
|
2018-04-03 15:55:41 +02:00
|
|
|
|
|
|
|
##status_command i3status
|
|
|
|
#position top
|
|
|
|
#}
|
|
|
|
|
|
|
|
# launch Polybar, a nicer bar
|
|
|
|
exec_always --no-startup-id $barlaunchcmd
|
|
|
|
|
2018-04-05 14:14:08 +02:00
|
|
|
# some applets (bah)
|
2018-08-18 22:28:46 +02:00
|
|
|
#exec --no-startup-id nm-applet
|
2018-04-10 20:12:03 +02:00
|
|
|
#exec --no-startup-id nextcloud
|
2018-04-03 15:55:41 +02:00
|
|
|
|
|
|
|
# hide the mouse after some time
|
2018-04-05 14:14:28 +02:00
|
|
|
exec --no-startup-id unclutter -idle 3
|
2018-04-03 15:55:41 +02:00
|
|
|
|
|
|
|
# battery monitor script
|
2018-07-12 12:53:26 +02:00
|
|
|
exec --no-startup-id "$HOME/bin/own/battery/monitor.py &>$HOME/.log/my-i3-desktop/battery-monitor.log || notify-send -u critical -i battery -a i3 'Failed to start battery monitor' 'Battery monitor had a non-zero exit code.'"
|
2018-04-06 18:52:08 +02:00
|
|
|
|
2018-04-03 15:55:41 +02:00
|
|
|
|
|
|
|
# set background
|
2018-05-01 16:16:29 +02:00
|
|
|
exec_always --no-startup-id "$HOME/.config/i3/background.sh"
|
2018-04-03 15:55:41 +02:00
|
|
|
|
|
|
|
|
|
|
|
##################
|
|
|
|
# Specific rules # {{{1
|
|
|
|
##################
|
|
|
|
|
2018-05-10 23:52:51 +02:00
|
|
|
for_window [title="Tor Browser$"] floating enable
|
2018-04-17 16:05:42 +02:00
|
|
|
for_window [class="Peek"] floating enable
|
2018-07-25 13:28:35 +02:00
|
|
|
for_window [instance="^$" class="^Wfica_Seamless$"] floating enable
|
2022-06-11 20:00:32 +02:00
|
|
|
#for_window [class="org-openstreetmap-josm-gui-MainApplication" instance="sun-awt-X11-XDialogPeer" title="^Download$|^Mapillary image|^Geotagged Images"] floating disable
|
|
|
|
for_window [class="org-openstreetmap-josm-gui-MainApplication" title="^Download$|^Mapillary image|^Geotagged Images"] floating disable
|
2018-04-05 14:15:07 +02:00
|
|
|
for_window [class="Nextcloud" instance="nextcloud"] floating disable
|
|
|
|
for_window [class="Xfce4-settings-manager"] floating disable
|
2018-05-10 23:52:51 +02:00
|
|
|
for_window [title="^openBVE$"] floating disable
|
2018-07-24 12:49:10 +02:00
|
|
|
for_window [class="^Gramps$"] floating disable
|
2018-11-04 00:51:16 +01:00
|
|
|
for_window [title="^exec-with-shortcut$"] floating enable
|
2018-04-03 15:55:41 +02:00
|
|
|
|
2018-04-05 14:12:09 +02:00
|
|
|
# class border backgr. text indicator child_border
|
2019-03-01 17:51:21 +01:00
|
|
|
client.focused #000000 #000000 #bbbbbb #292d2e #000000
|
|
|
|
client.focused_inactive #000000 #000000 #888888 #4e4850 #000000
|
|
|
|
client.unfocused #000000 #000000 #444444 #292d2e #000000
|
|
|
|
client.urgent #342f3a #900000 #bbbbbb #900000 #900000
|
|
|
|
client.placeholder #000000 #000000 #bbbbbb #000000 #000000
|
2018-04-05 14:12:09 +02:00
|
|
|
|
|
|
|
client.background #ffffff
|
|
|
|
|
2018-04-03 15:55:41 +02:00
|
|
|
|
2019-03-01 17:51:21 +01:00
|
|
|
# vim: set ft=i3config noet foldmethod=marker :
|