This commit is contained in:
паша душный 2023-04-24 19:52:12 +03:00
parent f11c775e3d
commit 5d13185f34
3 changed files with 47 additions and 22 deletions

View file

@ -21,8 +21,7 @@ exec --no-startup-id dex --autostart --environment i3
exec --no-startup-id numlockx on
## Xrandr
exec --no-startup-id xrandr --output HDMI-A-0 --mode 1024x768 --pos 0x120 --rotate normal \
--output DVI-D-0 --primary --mode 1920x1080 --pos 1024x0 --rotate normal --output HDMI-A-1 --off
exec --no-startup-id xrandr --output HDMI-A-0 --mode 1024x768 --pos 0x120 --rotate normal --output DVI-D-0 --primary --mode 1920x1080 --pos 1024x0 --rotate normal --output HDMI-A-1 --off
## Trackball Xinput Props
exec_always --no-startup-id ~/.config/script/kensington.sh
@ -65,7 +64,7 @@ exec --no-startup-id nitrogen --restore
exec_always --no-startup-id ~/.config/i3/polybar.sh &
## Transmission
exec --no-startup-id transmission-daemon
# exec --no-startup-id transmission-daemon
## Hide mouse cursor when idle
exec --no-startup-id mousetrap -t 5
@ -73,7 +72,7 @@ exec --no-startup-id mousetrap -t 5
##### BINDINGS ######
## Calendar
bindsym $mod+Escape exec --no-startup-id kitty -1 ikhal
bindsym $mod+Escape exec --no-startup-id kitty ikhal
## Play/Pause music
bindsym XF86AudioPlay exec --no-startup-id playerctl play-pause
@ -86,9 +85,11 @@ bindsym XF86AudioPrev exec --no-startup-id playerctl previous
bindsym XF86AudioNext exec --no-startup-id playerctl next
## MPD Volume control
bindsym XF86AudioRaiseVolume exec polybar-msg action "#mpdvol.hook.1" && polybar-msg action "#mpdvol.hook.0"
bindsym XF86AudioLowerVolume exec polybar-msg action "#mpdvol.hook.2" && polybar-msg action "#mpdvol.hook.0"
bindsym XF86Tools exec polybar-msg action "#mpdvol.hook.3" && polybar-msg action "#mpdvol.hook.0"
bindsym XF86AudioRaiseVolume exec --no-startup-id polybar-msg action "#mpdvol.hook.1" && polybar-msg action "#mpdvol.hook.0"
bindsym XF86AudioLowerVolume exec --no-startup-id polybar-msg action "#mpdvol.hook.2" && polybar-msg action "#mpdvol.hook.0"
bindsym Shift+XF86AudioRaiseVolume exec --no-startup-id polybar-msg action "#mpdvol.hook.4" && polybar-msg action "#mpdvol.hook.0"
bindsym Shift+XF86AudioLowerVolume exec --no-startup-id polybar-msg action "#mpdvol.hook.5" && polybar-msg action "#mpdvol.hook.0"
bindsym XF86Tools exec --no-startup-id polybar-msg action "#mpdvol.hook.3" && polybar-msg action "#mpdvol.hook.0"
## Toggle keyboard layout
bindsym $mod+space exec --no-startup-id xkb-switch --next
@ -120,6 +121,8 @@ set $refresh_i3status killall -SIGUSR1 i3status
bindsym $mod+F12 exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -5% && $refresh_i3status
bindsym $mod+F11 exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +5% && $refresh_i3status
bindsym $mod+F10 exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status
bindsym $mod+Shift+XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -5% && $refresh_i3status
bindsym $mod+Shift+XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +5% && $refresh_i3status
bindsym $mod+XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -1% && $refresh_i3status
bindsym $mod+XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +1% && $refresh_i3status
bindsym $mod+XF86Tools exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status
@ -129,7 +132,7 @@ bindsym $mod+XF86Tools exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ t
floating_modifier $mod
## start a terminal
bindsym $mod+Return exec --no-startup-id kitty -1
bindsym $mod+Return exec --no-startup-id kitty
## kill focused window
bindsym $mod+q kill
@ -262,6 +265,7 @@ set $ws10 "10:"
set $ws11 "11:﯋"
set $ws12 "12:"
set $ws13 "13:󰞏"
set $ws14 "14:󰓏"
# set $ws1 "﯋"
# set $ws2 ""
@ -287,9 +291,10 @@ bindsym $mod+7 workspace $ws7
bindsym $mod+8 workspace $ws8
bindsym $mod+9 workspace $ws9
bindsym $mod+0 workspace $ws10
bindsym Mod1+F1 workspace $ws11
bindsym Mod1+F2 workspace $ws12
bindsym Mod1+F3 workspace $ws13
bindsym $mod+F1 workspace $ws11
bindsym $mod+F2 workspace $ws12
bindsym $mod+F3 workspace $ws13
bindsym $mod+F4 workspace $ws14
## move focused container to workspace
bindsym $mod+Shift+1 move container to workspace $ws1
@ -302,8 +307,10 @@ bindsym $mod+Shift+7 move container to workspace $ws7
bindsym $mod+Shift+8 move container to workspace $ws8
bindsym $mod+Shift+9 move container to workspace $ws9
bindsym $mod+Shift+0 move container to workspace $ws10
bindsym Mod1+Shift+F1 move container to workspace $ws11
bindsym Mod1+Shift+F2 move container to workspace $ws12
bindsym $mod+Shift+F1 move container to workspace $ws11
bindsym $mod+Shift+F2 move container to workspace $ws12
bindsym $mod+Shift+F3 move container to workspace $ws13
bindsym $mod+Shift+F4 move container to workspace $ws14
bindsym $mod+Tab workspace next
bindsym $mod+Shift+Tab workspace prev
@ -328,6 +335,7 @@ workspace $ws10 output $monitor1
workspace $ws11 output $monitor2
workspace $ws12 output $monitor2
workspace $ws13 output $monitor2
workspace $ws14 output $monitor2
### Locker ###