dotfiles/i3/i3config

271 lines
9.5 KiB
Text
Raw Normal View History

2017-01-26 13:48:55 +01:00
set $mod Mod4
floating_modifier $mod
2017-06-10 00:18:13 +02:00
# keyboard layout
2017-01-26 13:48:55 +01:00
exec setxkbmap de -option ctrl:nocaps
2017-06-10 00:18:13 +02:00
# background
exec --no-startup-id xsetroot -solid "#2F343F"
2017-01-26 13:48:55 +01:00
#exec --no-startup-id hsetroot -center ~/.wallpaper
2017-06-10 00:18:13 +02:00
# startup programs
2017-01-26 13:48:55 +01:00
exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
exec --no-startup-id nm-applet
2017-10-10 12:10:43 +02:00
exec --no-startup-id gnome-keyring-daemon --start --components secrets
exec --no-startup-id amixer set Capture nocap
2017-12-19 11:54:17 +01:00
exec --no-startup-id feedreader --headless
exec --no-startup-id ~/.local/bin/mon-toggle
2017-01-26 13:48:55 +01:00
exec --no-startup-id ~/.local/bin/lockscreen -d
exec --no-startup-id albert
2018-02-21 20:23:05 +01:00
exec --no-startup-id nextcloud
exec --no-startup-id syncthing-gtk
2017-01-26 13:48:55 +01:00
exec --no-startup-id telegram-desktop -startintray
2018-10-22 21:47:13 +02:00
exec --no-startup-id /usr/lib/geoclue-2.0/demos/agent
2017-01-26 13:48:55 +01:00
exec --no-startup-id redshift-gtk
exec --no-startup-id rhythmbox
2017-06-10 00:18:13 +02:00
# font
2017-01-26 13:48:55 +01:00
font pango:Fira Sans Mono 12
# make some windows floating
for_window [class="Firefox" window_role="About"] floating enable
for_window [class="Nightly" window_role="About"] floating enable
2017-07-14 23:08:37 +02:00
for_window [title="^pdfpc - present"] move to output right, fullscreen
2018-03-19 18:20:14 +01:00
for_window [class="Pavucontrol"] floating enable
# Stick windows to workspaces
assign [class="Feedreader"] 8
for_window [class="Feedreader"] move workspace 8
2017-01-26 13:48:55 +01:00
assign [class="Evolution"] 9
for_window [class="Evolution"] move workspace 9
assign [class="Thunderbird"] 9
for_window [class="Thunderbird"] move workspace 9
2017-01-26 13:48:55 +01:00
assign [class="Rhythmbox"] 10
for_window [class="Rhythmbox"] move workspace 10
2017-01-26 13:48:55 +01:00
hide_edge_borders both
focus_follows_mouse no
# to switch workspace-tabs
bindsym $mod+Tab workspace next
bindsym Shift+$mod+Tab workspace prev
2018-12-29 19:48:54 +01:00
bindsym $mod+m exec keepassxc
2017-01-26 13:48:55 +01:00
bindsym $mod+e exec subl3
bindsym $mod+w exec firefox
bindsym $mod+u exec feedreader
2017-01-26 13:48:55 +01:00
2017-05-29 22:33:45 +02:00
# to prevent gnome-help
bindsym F1 exec :
2017-01-26 13:48:55 +01:00
# ESP8266
bindsym $mod+F1 exec curl http://esp8266.local/socket0Toggle
bindsym $mod+Shift+F1 exec curl http://esp8266.local/socket0Off
bindsym $mod+F2 exec curl http://esp8266.local/socket1Toggle
bindsym $mod+Shift+F2 exec curl http://esp8266.local/socket1Off
bindsym $mod+F11 exec curl http://esp8266.local/socket2Toggle
bindsym $mod+Shift+F11 exec curl http://esp8266.local/socket2Off
bindsym $mod+F12 exec curl http://esp8266.local/socket3Toggle
bindsym $mod+Shift+F12 exec curl http://esp8266.local/socket3Off
2017-01-26 13:48:55 +01:00
# Screenshot
bindsym Print exec "scrot ~/Downloads/Screenshot%Y-%m-%d-%H:%M:%S.png -z"
bindsym Scroll_Lock exec ~/.local/bin/lockscreen -fl
2017-01-26 13:48:55 +01:00
# forward an backward at arrow-keys
bindsym --release XF86Back exec --no-startup-id xdotool key --clearmodifiers Ctrl+Page_Up
bindsym --release XF86Forward exec --no-startup-id xdotool key --clearmodifiers Ctrl+Page_Down
# Sreen brightness controls
#increase screen brightness
bindsym XF86MonBrightnessUp exec xbacklight -inc 10
#decrease screen brightness
bindsym XF86MonBrightnessDown exec xbacklight -dec 10
# Touchpad controls
#bindsym XF86TouchpadToggle exec /some/path/toggletouchpad.sh # toggle touchpad
# Pulse Audio controls
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +5%
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -5%
# Microphone
bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute 1 toggle
bindsym $mod+XF86AudioRaiseVolume exec --no-startup-id pactl set-source-volume 1 +5%
bindsym $mod+XF86AudioLowerVolume exec --no-startup-id pactl set-source-volume 1 -5%
2017-01-26 13:48:55 +01:00
# Media player controls
bindsym XF86AudioPlay exec dbus-send --type=method_call --dest=org.mpris.MediaPlayer2.rhythmbox /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause
bindsym XF86AudioPause exec dbus-send --type=method_call --dest=org.mpris.MediaPlayer2.rhythmbox /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause
bindsym XF86AudioNext exec dbus-send --type=method_call --dest=org.mpris.MediaPlayer2.rhythmbox /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next
bindsym XF86AudioPrev exec dbus-send --type=method_call --dest=org.mpris.MediaPlayer2.rhythmbox /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous
2017-06-10 00:18:13 +02:00
#firefox bughelper
2017-01-26 13:48:55 +01:00
bindsym $mod+^ floating toggle; floating toggle;
# main commands
bindsym $mod+Shift+c reload
bindsym $mod+Shift+r restart
bindsym $mod+Shift+e exit
# start a terminal
bindsym $mod+Return exec TERMINAL=alacritty i3-sensible-terminal
2017-01-26 13:48:55 +01:00
# screensaver
bindsym $mod+z exec ~/.local/bin/lockscreen -fl
bindsym $mod+y exec ~/.local/bin/lockscreen -fl
# start dmenu (a program launcher)
bindsym $mod+Shift+d exec --no-startup-id i3-dmenu-desktop --entry-type=command
bindsym $mod+d exec --no-startup-id albert toggle || albert
2017-01-26 13:48:55 +01:00
# kill focused window
bindsym $mod+Shift+q kill
# enter fullscreen mode for the focused container
bindsym $mod+f fullscreen toggle
bindsym $mod+g fullscreen global
# change layouts
bindsym $mod+b split h
bindsym $mod+v split v
bindsym $mod+c layout toggle split
#bindsym $mod+z layout stacking
#bindsym $mod+t layout tabbed
# toggle tiling / floating
bindsym $mod+Shift+space floating toggle
#bindsym $mod+space focus mode_toggle
bindsym $mod+space exec setxkbmap de -option ctrl:nocaps
2017-01-26 13:48:55 +01:00
# focus the child container
bindsym $mod+s focus child
# focus the parent container
bindsym $mod+a focus parent
bindsym Mod1+Left move workspace to output left
bindsym Mod1+Right move workspace to output right
bindsym Mod1+Up move workspace to output up
bindsym Mod1+Down move workspace to output down
# switch to workspace
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
# move focused container to workspace
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
# move windows to workspace and switch to it
bindsym Ctrl+1 move container to workspace 1; workspace 1
bindsym Ctrl+2 move container to workspace 2; workspace 2
bindsym Ctrl+3 move container to workspace 3; workspace 3
bindsym Ctrl+4 move container to workspace 4; workspace 4
bindsym Ctrl+5 move container to workspace 5; workspace 5
bindsym Ctrl+6 move container to workspace 6; workspace 6
bindsym Ctrl+7 move container to workspace 7; workspace 7
bindsym Ctrl+8 move container to workspace 8; workspace 8
bindsym Ctrl+9 move container to workspace 9; workspace 9
# for settings the zoom-level back to default in firefox
#bindsym Ctrl+0 move container to workspace 10; workspace 10
bindsym $mod+n exec i3-input -F 'rename workspace to "%s"' -P 'New name: '
#FOCUS
bindsym $mod+h focus left
bindsym $mod+j focus down
bindsym $mod+k focus up
bindsym $mod+l focus right
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
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right
# resize window (you can also use the mouse for that)
mode "resize" {
bindsym h resize shrink width 10 px or 10 ppt
bindsym j resize shrink height 10 px or 10 ppt
bindsym k resize grow height 10 px or 10 ppt
bindsym l resize grow width 10 px or 10 ppt
bindsym Left resize shrink width 10 px or 10 ppt
bindsym Up resize grow height 10 px or 10 ppt
bindsym Down resize shrink height 10 px or 10 ppt
bindsym Right resize grow width 10 px or 10 ppt
bindsym Return mode "default"
bindsym Escape mode "default"
bindsym $mod+r mode "default"
}
bindsym $mod+r mode "resize"
2017-06-10 00:18:13 +02:00
2018-02-02 14:33:25 +01:00
mode "passthrough" {
bindsym Mod4+Escape mode "default"
}
bindsym Mod4+Escape mode "passthrough"
2017-06-10 00:18:13 +02:00
# colors
2018-10-27 18:58:15 +02:00
set $color_bg #2F343F
set $color_bg_inactive #2F343F
set $color_text #F3F4F5
set $color_text_inactive #676E7D
set $color_bg_urgent #E53935
set $color_indicator #00FF00
set $color_separator #666666
set $color_ws #5294E2
set $color_ws_inactive #2F343F
set $color_ws_text #FFFFFF
set $color_ws_text_inactive #D3DAE3
2017-06-10 00:18:13 +02:00
# window colors
2018-10-27 18:58:15 +02:00
client.focused $color_bg $color_bg $color_text $color_indicator
client.unfocused $color_bg_inactive $color_bg_inactive $color_text_inactive $color_indicator
client.focused_inactive $color_bg_inactive $color_bg_inactive $color_text_inactive $color_indicator
client.urgent $color_bg_urgent $color_bg_urgent $color_text $color_indicator
2017-06-10 00:18:13 +02:00
bar {
2018-10-27 18:58:15 +02:00
status_command i3status
position top
workspace_buttons yes
tray_output primary
tray_padding 1
colors {
background $color_bg
statusline $color_ws_text_inactive
separator $color_separator
focused_workspace $color_ws $color_ws $color_ws_text
active_workspace $color_ws_inactive $color_ws_inactive $color_ws_text_inactive
inactive_workspace $color_ws_inactive $color_ws_inactive $color_ws_text_inactive
urgent_workspace $color_bg_urgent $color_bg_urgent $color_ws_text
}
2017-06-10 00:18:13 +02:00
}