2023-08-30 15:07:14 +00:00
|
|
|
font pango:monospace 10
|
2018-02-20 10:21:03 +00:00
|
|
|
|
|
|
|
new_window 1pixel
|
|
|
|
|
2018-12-03 19:21:24 +00:00
|
|
|
workspace_layout tabbed
|
|
|
|
|
2018-02-20 10:21:03 +00:00
|
|
|
mode "workspace" {
|
2018-05-20 13:52:04 +00:00
|
|
|
bindsym a workspace 1
|
|
|
|
bindsym s workspace 2
|
|
|
|
bindsym d workspace 3
|
|
|
|
bindsym f workspace 4
|
|
|
|
bindsym g workspace 5
|
2018-02-20 10:21:03 +00:00
|
|
|
bindsym Left workspace prev
|
|
|
|
bindsym Right workspace next
|
|
|
|
bindsym Shift+Left move container to workspace prev
|
|
|
|
bindsym Shift+Right move container to workspace next
|
|
|
|
bindsym q mode "command"
|
|
|
|
}
|
|
|
|
|
2018-11-22 05:45:46 +00:00
|
|
|
# Control the music player daemon. Keybindings are roughly the same as in
|
|
|
|
# the ncmpcpp client.
|
|
|
|
mode "mpd" {
|
|
|
|
bindsym p exec mpc toggle
|
|
|
|
bindsym s exec mpc stop
|
|
|
|
|
|
|
|
bindsym Left exec mpc prev
|
|
|
|
bindsym Right exec mpc next
|
|
|
|
bindsym Up exec mpc vol +2
|
|
|
|
bindsym Down exec mpc vol -2
|
|
|
|
|
2023-08-06 19:27:18 +00:00
|
|
|
bindsym n exec urxvt -e ncmpcpp; mode "default"
|
2018-11-22 05:45:46 +00:00
|
|
|
bindsym q mode "command"
|
|
|
|
}
|
|
|
|
|
2018-02-20 10:21:03 +00:00
|
|
|
mode "command" {
|
2023-08-06 19:27:18 +00:00
|
|
|
bindsym t exec urxvt -e ~/.protip_shell.sh; mode "default"
|
2018-02-20 10:21:03 +00:00
|
|
|
bindsym d exec dmenu_run; mode "default"
|
|
|
|
bindsym q mode "default"
|
|
|
|
bindsym k kill; mode "default"
|
|
|
|
bindsym b exec netsurf
|
|
|
|
bindsym r restart
|
|
|
|
|
|
|
|
bindsym Left focus left
|
|
|
|
bindsym Right focus right
|
|
|
|
bindsym Up focus up
|
|
|
|
bindsym Down focus down
|
|
|
|
|
|
|
|
bindsym Shift+Left move left
|
|
|
|
bindsym Shift+Right move right
|
|
|
|
bindsym Shift+Up move up
|
|
|
|
bindsym Shift+Down move down
|
|
|
|
|
|
|
|
bindsym h split h
|
|
|
|
bindsym v split v
|
|
|
|
|
|
|
|
bindsym w mode "workspace"
|
2018-11-22 05:45:46 +00:00
|
|
|
bindsym m mode "mpd"
|
2018-02-20 10:21:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
# Enter command mode
|
|
|
|
bindsym Shift+space mode "command"
|
|
|
|
|
2023-08-06 22:08:44 +00:00
|
|
|
# Pressing the power button offers reboot, shutdown, or suspend choice
|
|
|
|
bindsym XF86PowerOff exec --no-startup-id i3-nagbar \
|
|
|
|
-m 'Choose Power Button Action:' \
|
2023-08-09 22:38:00 +00:00
|
|
|
-B 'Reboot' 'loginctl reboot' \
|
|
|
|
-B 'Suspend' 'loginctl suspend' \
|
|
|
|
-B 'Shutdown' 'loginctl poweroff'
|
2019-04-12 23:00:02 +00:00
|
|
|
|
2024-04-06 17:15:18 +00:00
|
|
|
bindsym XF86AudioRaiseVolume exec --no-startup-id amixer set PCM 5%+
|
|
|
|
bindsym XF86AudioLowerVolume exec --no-startup-id amixer set PCM 5%-
|
|
|
|
|
|
|
|
# Adjust display brightness using Shift + Volume buttons in 10% steps
|
|
|
|
bindsym Shift+XF86AudioRaiseVolume exec --no-startup-id brightnessctl --quiet --class=backlight set +10%
|
|
|
|
bindsym Shift+XF86AudioLowerVolume exec --no-startup-id brightnessctl --quiet --class=backlight set 10%-
|
|
|
|
|
2018-02-20 10:21:03 +00:00
|
|
|
# Start i3bar to display a workspace bar (plus the system information i3status
|
|
|
|
# finds out, if available)
|
|
|
|
bar {
|
|
|
|
position top
|
2019-07-20 21:30:08 +00:00
|
|
|
status_command i3blocks
|
2018-02-20 10:21:03 +00:00
|
|
|
colors {
|
|
|
|
background #000000
|
|
|
|
statusline #ffffff
|
|
|
|
separator #009900
|
|
|
|
focused_workspace #009900 #009900 #ffffff
|
|
|
|
inactive_workspace #003300 #003300 #dddddd
|
|
|
|
urgent_workspace #990000 #990000 #fffff
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-11-22 05:45:46 +00:00
|
|
|
# Hide mouse cursor
|
|
|
|
exec --no-startup-id unclutter-xfixes --fork
|
2024-04-01 00:20:31 +00:00
|
|
|
# Do not handle gpio_key events as they are handled by acpid
|
|
|
|
exec --no-startup-id xinput disable gpio_keys
|
2024-04-01 08:50:46 +00:00
|
|
|
# Turn display off after 2 minutes of idle
|
|
|
|
exec --no-startup-id xset dpms 0 0 120
|