Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # i3 config file (v4)
- set $mod Mod4
- font pango:System San Francisco Display 8
- exec_always --no-startup-id setxkbmap "us,ru" ",winkeys" "grp:caps_toggle,grp_led:scroll" &
- exec_always --no-startup-id picom --config $HOME/.config/picom/picom.conf &
- exec_always --no-startup-id killall polybar; polybar
- exec --no-startup-id dex --autostart --environment i3
- exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork
- exec --no-startup-id nm-applet
- exec --no-startup-id nitrogen --restore
- exec --no-startup-id firefox
- exec --no-startup-id xautolock -time 15 -locker "$HOME/scripts/lock.sh"
- bindsym $mod+q kill
- bindsym $mod+w layout tabbed
- #bindsym $mod+s layout stacking
- #bindsym $mod+e layout toggle split
- bindsym $mod+u exec flameshot gui
- bindsym $mod+Shift+u exec flameshot full
- bindsym $mod+Shift+p exec i3lock -c 000000
- # ...
- bindsym $mod+a focus parent
- bindsym $mod+h focus left
- bindsym $mod+j focus down
- bindsym $mod+k focus up
- bindsym $mod+l 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+n exec --no-startup-id dmenu_run_history -fn 'Iosevka Nerd Font-10' -nb '#121212' -sf '#eeeeee' -sb '#262626' -nf '#ffffff'
- # ...
- bindsym $mod+Shift+n exec pcmanfm
- bindsym $mod+Return exec urxvt
- # Use pactl to adjust volume in PulseAudio.
- set $refresh_i3status killall -SIGUSR1 i3status
- bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status
- bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status
- bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status
- bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status
- # Use Mouse+$mod to drag floating windows to their wanted position
- floating_modifier $mod
- bindsym $mod+g split h
- bindsym $mod+v split v
- bindsym $mod+f fullscreen toggle
- bindsym $mod+o floating toggle
- #bindsym $mod+d focus child
- default_border pixel 1
- default_floating_border pixel 1
- hide_edge_borders both
- # Define names for default workspaces for which we configure key bindings later on.
- set $ws1 "1"
- set $ws2 "2"
- set $ws3 "3"
- set $ws4 "4"
- set $ws5 "5"
- set $ws6 "6"
- set $ws7 "7"
- set $ws8 "8"
- set $ws9 "9"
- set $ws10 "10"
- # Switch to workspace
- bindsym $mod+1 workspace number $ws1
- bindsym $mod+2 workspace number $ws2
- bindsym $mod+3 workspace number $ws3
- bindsym $mod+4 workspace number $ws4
- bindsym $mod+5 workspace number $ws5
- bindsym $mod+6 workspace number $ws6
- bindsym $mod+7 workspace number $ws7
- bindsym $mod+8 workspace number $ws8
- bindsym $mod+9 workspace number $ws9
- bindsym $mod+0 workspace number $ws10
- # Move focused container to workspace
- bindsym $mod+Shift+1 move container to workspace number $ws1
- bindsym $mod+Shift+2 move container to workspace number $ws2
- bindsym $mod+Shift+3 move container to workspace number $ws3
- bindsym $mod+Shift+4 move container to workspace number $ws4
- bindsym $mod+Shift+5 move container to workspace number $ws5
- bindsym $mod+Shift+6 move container to workspace number $ws6
- bindsym $mod+Shift+7 move container to workspace number $ws7
- bindsym $mod+Shift+8 move container to workspace number $ws8
- bindsym $mod+Shift+9 move container to workspace number $ws9
- bindsym $mod+Shift+0 move container to workspace number $ws10
- # Reload the configuration file
- #bindsym $mod+Shift+c reload
- # Restart i3 inplace
- bindsym $mod+Shift+x restart
- # Exit i3 (log out of X session)
- bindsym $mod+Shift+b exec "i3-nagbar -t warning -m 'Exit i3?' -B 'Yes' 'i3-msg exit.'"
- #gaps inner 8px
- # Resize window
- mode "resize" {
- bindsym h resize shrink width 2 px or 2 ppt
- bindsym j resize grow height 2 px or 2 ppt
- bindsym k resize shrink height 2 px or 2 ppt
- bindsym l resize grow width 2 px or 2 ppt
- # Back to normal: Enter or Escape or $mod+r
- bindsym Return mode "default"
- bindsym Escape mode "default"
- bindsym $mod+r mode "default"
- }
- # Resize mode
- bindsym $mod+Shift+r mode "resize"
- # Colors for windows and bar
- set $bg-color #2f343f
- set $inactive-bg-color #2f343f
- set $text-color #f3f4f5
- set $inactive-text-color #676E7D
- set $urgent-bg-color #E53935
- # window colors
- set $indicator #b5b5b5
- # border background text indicator
- client.focused $bg-color $bg-color $text-color $indicator
- client.unfocused $inactive-bg-color $inactive-bg-color $inactive-text-color $indicator
- client.focused_inactive $inactive-bg-color $inactive-bg-color $inactive-text-color $indicator
- client.urgent $urgent-bg-color $urgent-bg-color $text-color $indicator
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement