This commit is contained in:
паша душный 2023-03-16 15:44:37 +03:00
parent 5478beac49
commit cdd176b352
4 changed files with 55 additions and 35 deletions

View file

@ -55,7 +55,8 @@ exec_always --no-startup-id xset s off
exec_always --no-startup-id xset -dpms
## Wallpaper
exec --no-startup-id feh --bg-fill ~/pics/wp/2b16x9.jpg ~/pics/wp/2b4x3.png
# exec --no-startup-id feh --bg-fill ~/pics/wp/2b16x9.jpg ~/pics/wp/2b4x3.png
exec --no-startup-id nitrogen --restore
## First panel
exec_always --no-startup-id ~/.config/i3/polybar.sh &
@ -63,6 +64,9 @@ exec_always --no-startup-id ~/.config/i3/polybar.sh &
## Compose-key
exec_always --no-startup-id setxkbmap -option compose:menu
## Caps to Esc
exec_always --no-startup-id setxkbmap -option caps:escape
## Transmission
exec --no-startup-id transmission-daemon
@ -148,10 +152,10 @@ bindsym $mod+ctrl+d exec "rofi -show emoji -modi emoji"
bindcode $mod+Shift+40 exec "rofi -show calc -modi calc -no-show-match -no-sort"
## change focus
bindsym $mod+j focus left
bindsym $mod+k focus down
bindsym $mod+l focus up
bindsym $mod+semicolon focus right
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
@ -160,10 +164,10 @@ bindsym $mod+Up focus up
bindsym $mod+Right focus right
## move focused window
bindsym $mod+Shift+j move left
bindsym $mod+Shift+k move down
bindsym $mod+Shift+l move up
bindsym $mod+Shift+semicolon move 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
## alternatively, you can use the cursor keys:
bindsym $mod+Shift+Left move left
@ -172,10 +176,10 @@ bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right
## split in horizontal orientation
bindsym $mod+h split h
# bindsym $mod+h split h
## split in vertical orientation
bindsym $mod+v split v
# bindsym $mod+v split v
## enter fullscreen mode for the focused container
bindsym $mod+f fullscreen toggle
@ -210,10 +214,10 @@ mode "resize" {
## Pressing right will grow the windows width.
## Pressing up will shrink the windows height.
## Pressing down will grow the windows height.
bindsym j resize shrink width 5 px or 5 ppt
bindsym k resize grow height 5 px or 5 ppt
bindsym l resize shrink height 5 px or 5 ppt
bindsym semicolon resize grow width 5 px or 5 ppt
bindsym h resize shrink width 5 px or 5 ppt
bindsym j resize grow height 5 px or 5 ppt
bindsym k resize shrink height 5 px or 5 ppt
bindsym l resize grow width 5 px or 5 ppt
## same bindings, but for the arrow keys
bindsym Left resize shrink width 5 px or 5 ppt
@ -221,13 +225,19 @@ mode "resize" {
bindsym Up resize shrink height 5 px or 5 ppt
bindsym Right resize grow width 5 px or 5 ppt
## same bindings, but for the arrow keys and more accurate
## same bindings, but for the arrow keys and more accurate
bindsym Shift+Left resize shrink width 1 px or 1 ppt
bindsym Shift+Down resize grow height 1 px or 1 ppt
bindsym Shift+Up resize shrink height 1 px or 1 ppt
bindsym Shift+Right resize grow width 1 px or 1 ppt
## back to normal: Enter or Escape or $mod+r
## same bindings, but more accurate
bindsym Shift+h resize shrink width 1 px or 1 ppt
bindsym Shift+j resize grow height 1 px or 1 ppt
bindsym Shift+k resize shrink height 1 px or 1 ppt
bindsym Shift+l resize grow width 1 px or 1 ppt
## back to normal: Enter or Escape or $mod+r
bindsym Return mode "default"
bindsym Escape mode "default"
bindsym $mod+r mode "default"
@ -330,7 +340,7 @@ bindsym $mod+Pause mode "$mode_system"
# username bigg= NOPASSWD: /usr/bin/rtcwake
###
set $mode_system System (l) lock, (e) logout, (s) suspend, (w) wake at 7:15, (r) reboot, (Shift+s) shutdown, (h) hibernate
set $mode_system System (l) lock, (e) logout, (s) suspend, (w) wake at 8:15, (r) reboot, (Shift+s) shutdown, (h) hibernate
mode "$mode_system" {
bindsym l exec --no-startup-id $Locker, mode "default"
bindsym e exec --no-startup-id i3-msg exit, mode "default"
@ -419,6 +429,7 @@ assign [class="qutebrowser"] $ws11
for_window [class="mpv"] floating enable
for_window [class="feh"] floating enable
for_window [class="Sxiv"] floating enable
for_window [class="Mojosetup"] floating enable
workspace_auto_back_and_forth yes