summaryrefslogtreecommitdiff
path: root/.config/i3
diff options
context:
space:
mode:
authorAdam Stück <adam@adast.xyz>2023-02-07 17:32:26 +0100
committerAdam Stück <adam@adast.xyz>2023-02-07 17:32:26 +0100
commitd2e32dbfb485695bc78de78d51b8cb6567316d71 (patch)
treec2be2ea7edb5ed8afbf274412e43835337b693fc /.config/i3
parent3d10de7aec0d2d857c336c7dedd022c81b1a1c8a (diff)
Use i3config instead of sxhkd for bindings
Diffstat (limited to '.config/i3')
-rw-r--r--.config/i3/config52
1 files changed, 50 insertions, 2 deletions
diff --git a/.config/i3/config b/.config/i3/config
index 4095f85..f88dbd4 100644
--- a/.config/i3/config
+++ b/.config/i3/config
@@ -2,6 +2,54 @@ set $mod Mod4
set $alt Mod1
floating_modifier $mod
+bindsym $mod+Shift+q kill
+bindsym $mod+Escape exec --no-startup-id systemctl suspend
+bindsym $mod+Return exec alacritty
+bindsym $mod+b exec firefox
+bindsym $mod+f fullscreen toggle
+bindsym $mod+i exec --no-startup-id polybar-msg cmd toggle
+bindsym $mod+Shift+s exec --no-startup-id ~/.local/bin/screenshot -s
+bindsym Print exec --no-startup-id ~/.local/bin/screenshot
+bindsym $mod+Shift+c exec --no-startup-id ~/.local/bin/comptoggle
+
+bindsym $mod+d exec --no-startup-id dmenu_run -p 'run:' -l 8 -b -i -fn 'JetBrainsMono NerdFont:size=11'
+bindsym $alt+b exec --no-startup-id clipmenu -p 'clip:' -b -i -fn 'JetBrainsMono NerdFont:size=11'
+bindsym $mod+p exec --no-startup-id ~/.local/bin/dmenu/dm-pass
+bindsym $mod+Shift+p exec --no-startup-id ~/.local/bin/dmenu/dm-power
+
+bindsym XF86AudioRaiseVolume exec --no-startup-id pamixer -i 5
+bindsym XF86AudioLowerVolume exec --no-startup-id pamixer -d 5
+bindsym XF86AudioMute exec --no-startup-id pamixer -t
+bindsym XF86AudioPlay exec --no-startup-id playerctl play-pause
+bindsym XF86AudioNext exec --no-startup-id playerctl next
+bindsym XF86AudioPrev exec --no-startup-id playerctl previous
+bindsym XF86MonBrightnessUp exec --no-startup-id xbacklight -inc 5
+bindsym XF86MonBrightnessDown exec --no-startup-id xbacklight -dec 5
+
+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
+
+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
+bindsym $mod+Tab focus mode_toggle
+
+bindsym $mod+g split h
+bindsym $mod+v split v
+bindsym $mod+t layout toggle tabbed splith splitv
+bindsym $mod+Shift+f floating toggle
+
bindsym $mod+1 workspace number 1
bindsym $mod+2 workspace number 2
bindsym $mod+3 workspace number 3
@@ -64,7 +112,7 @@ title_align center
smart_gaps on
hide_edge_borders smart
popup_during_fullscreen smart
-focus_follows_mouse no
+focus_follows_mouse yes
floating_maximum_size -1 x -1
for_window [class="floating_window"] floating enable
@@ -72,4 +120,4 @@ for_window [window_role="pop-up"] floating enable
for_window [window_role="About"] floating enable
for_window [class="Nextcloud"] floating enable
-exec_always --no-startup-id $HOME/.local/bin/barlaunch
+exec_always --no-startup-id ~/.local/bin/barlaunch