New configs

This commit is contained in:
Pavel Kachalouski
2019-06-16 19:07:40 +02:00
parent be96153754
commit 259ef2642e
7 changed files with 161 additions and 80 deletions

View File

@@ -30,8 +30,7 @@ font pango:DejaVu Sans Mono 10
floating_modifier $mod
# start a terminal
bindsym $mod+Return exec st -f "Liberation Mono:pixelsize=16:antialias=true:autohint=true"
bindsym $mod+Return exec kitty
# kill focused window
bindsym $mod+Shift+q kill
@@ -98,9 +97,9 @@ set $wspace2 2:dev
set $wspace3 3:console
set $wspace4 4:file
set $wspace5 5:edit
set $wspace6 6:pdf
set $wspace6 6:misc
set $wspace7 7:video
set $wspace8 8
set $wspace8 8:mail
set $wspace9 9:chat
set $wspace10 10
@@ -155,16 +154,22 @@ bindsym $mod+Shift+0 move container to workspace $wspace10
# assign specific window to workspace
assign [class="(?i)^Firefox$"] → $wspace1
assign [class="(?i)^jetbrains-idea-.*$"] → $wspace2
assign [class="(?i)^st-256color$"] → $wspace3
assign [class="(?i)^kitty$"] → $wspace3
assign [class="(?i)^Nautilus$"] → $wspace4
assign [class="(?i)^dolphin$"] → $wspace4
assign [class="(?i)^Gedit$"] → $wspace5
assign [class="(?i)^kate$"] → $wspace5
assign [class="(?i)^Evince$"] → $wspace6
assign [class="(?i)^okular$"] → $wspace6
assign [class="(?i)^XpdfReader$"] → $wspace6
assign [class="(?i)^KeePass2$"] → $wspace6
assign [class="(?i)^vlc$"] → $wspace7
assign [class="(?i)^mpv$"] → $wspace7
assign [class="(?i)^Transmission-gtk$"] → $wspace8
assign [class="(?i)^kmail2$"] → $wspace8
assign [class="(?i)^TelegramDesktop$"] → $wspace9
assign [class="(?i)^Mattermost"] → $wspace9
for_window [class="Yad"] floating enable
workspace_auto_back_and_forth yes
@@ -178,8 +183,8 @@ bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcu
# application shortcuts
bindsym $mod+i exec idea-community
bindsym $mod+o exec firefox
bindsym $mod+g exec gedit
bindsym $mod+n exec nautilus
bindsym $mod+g exec kate
bindsym $mod+n exec dolphin
bindsym $mod+l exec "$HOME/scripts/lock.sh"
# audio
@@ -191,28 +196,30 @@ bindsym XF86AudioMute exec pactl set-sink-mute 0 toggle
bindsym XF86MonBrightnessUp exec "xbacklight -inc 5"
bindsym XF86MonBrightnessDown exec "xbacklight -dec 5"
bindsym Print exec "spectacle"
# resize window (you can also use the mouse for that)
mode "resize" {
# These bindings trigger as soon as you enter the resize mode
# These bindings trigger as soon as you enter the resize mode
# Pressing left will shrink the windows width.
# 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 10 px or 10 ppt
bindsym k resize grow height 10 px or 10 ppt
bindsym l resize shrink height 10 px or 10 ppt
bindsym semicolon resize grow width 10 px or 10 ppt
# Pressing left will shrink the windows width.
# 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 10 px or 10 ppt
bindsym k resize grow height 10 px or 10 ppt
bindsym l resize shrink height 10 px or 10 ppt
bindsym semicolon resize grow width 10 px or 10 ppt
# same bindings, but for the arrow keys
bindsym Left resize shrink width 10 px or 10 ppt
bindsym Down resize grow height 10 px or 10 ppt
bindsym Up resize shrink height 10 px or 10 ppt
bindsym Right resize grow width 10 px or 10 ppt
# same bindings, but for the arrow keys
bindsym Left resize shrink width 10 px or 10 ppt
bindsym Down resize grow height 10 px or 10 ppt
bindsym Up resize shrink height 10 px or 10 ppt
bindsym Right resize grow width 10 px or 10 ppt
# back to normal: Enter or Escape
bindsym Return mode "default"
bindsym Escape mode "default"
# back to normal: Enter or Escape
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+r mode "resize"
@@ -220,14 +227,15 @@ bindsym $mod+r mode "resize"
# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
bar {
status_command i3status
status_command i3blocks
}
# autostart
exec --no-startup-id cvlc --play-and-exit "$HOME/.config/i3/windows.wav"
exec --no-startup-id volumeicon
exec --no-startup-id firefox
exec --no-startup-id st -f "Liberation Mono:pixelsize=16:antialias=true:autohint=true"
exec --no-startup-id kitty
exec --no-startup-id telegram-desktop
exec --no-startup-id mattermost-desktop
exec --no-startup-id xautolock -time 10 -locker "$HOME/scripts/lock.sh"