2020-04-24 17:15:48 +02:00
|
|
|
set $mod Mod4
|
|
|
|
|
2020-08-09 14:04:21 +02:00
|
|
|
font pango:DejaVu Sans Mono 9
|
2020-04-24 17:15:48 +02:00
|
|
|
|
|
|
|
# Use Mouse+$mod to drag floating windows to their wanted position
|
|
|
|
floating_modifier $mod
|
|
|
|
|
|
|
|
|
2020-06-07 11:07:32 +02:00
|
|
|
# -------------------------------------------------------------------------------------------------
|
|
|
|
# WINDOW FOCUS/SPLIT/MOVE
|
|
|
|
#
|
2020-04-24 17:15:48 +02:00
|
|
|
|
2020-06-15 16:03:58 +02:00
|
|
|
# change focus (VIM mod)
|
|
|
|
bindsym $mod+h focus left
|
|
|
|
bindsym $mod+j focus down
|
|
|
|
bindsym $mod+k focus up
|
|
|
|
bindsym $mod+l focus right
|
2020-04-24 17:15:48 +02:00
|
|
|
# move focused window
|
2020-07-12 16:48:51 +02:00
|
|
|
bindsym $mod+Shift+h move left
|
|
|
|
bindsym $mod+Shift+j move down
|
|
|
|
bindsym $mod+Shift+k move up
|
|
|
|
bindsym $mod+Shift+l move right
|
2020-04-24 17:15:48 +02:00
|
|
|
|
|
|
|
# split in horizontal orientation
|
2020-06-18 16:24:20 +02:00
|
|
|
bindsym $mod+backslash split h
|
2020-04-24 17:15:48 +02:00
|
|
|
# split in vertical orientation
|
2020-06-18 16:24:20 +02:00
|
|
|
bindsym $mod+minus split v
|
2020-04-24 17:15:48 +02:00
|
|
|
|
|
|
|
# enter fullscreen mode for the focused container
|
2020-04-26 10:29:12 +02:00
|
|
|
bindsym $mod+Mod1+f fullscreen toggle
|
2020-04-24 17:15:48 +02:00
|
|
|
|
|
|
|
# change container layout (stacked, tabbed, toggle split)
|
|
|
|
bindsym $mod+s layout stacking
|
|
|
|
bindsym $mod+w layout tabbed
|
|
|
|
bindsym $mod+e layout toggle split
|
|
|
|
|
|
|
|
# toggle tiling / floating
|
|
|
|
bindsym $mod+Shift+space floating toggle
|
|
|
|
|
|
|
|
# change focus between tiling / floating windows
|
|
|
|
bindsym $mod+space focus mode_toggle
|
|
|
|
|
|
|
|
# focus the parent container
|
|
|
|
bindsym $mod+a focus parent
|
|
|
|
|
2020-06-02 18:29:34 +02:00
|
|
|
# -------------------------------------------------------------------------------------------------
|
|
|
|
# WORKSPACES
|
|
|
|
#
|
|
|
|
|
2020-06-03 14:19:16 +02:00
|
|
|
set $wksp1 "1: Main"
|
2020-06-02 18:29:34 +02:00
|
|
|
set $wksp2 "2: Works"
|
2020-09-01 20:56:24 +02:00
|
|
|
set $wksp3 "3: Social"
|
|
|
|
set $wksp4 "4: Music"
|
2020-06-02 18:34:31 +02:00
|
|
|
set $wksp5 "5: Graphics"
|
2020-06-18 16:24:20 +02:00
|
|
|
set $wksp6 "6: Minecraft"
|
2020-07-07 08:48:50 +02:00
|
|
|
set $wksp7 "7: Remote"
|
2020-07-12 16:48:51 +02:00
|
|
|
set $wksp8 "8"
|
|
|
|
set $wksp9 "9"
|
|
|
|
set $wksp10 "10"
|
2020-06-02 18:29:34 +02:00
|
|
|
|
2020-04-24 17:15:48 +02:00
|
|
|
# switch to workspace
|
2020-06-02 18:29:34 +02:00
|
|
|
bindsym $mod+1 workspace $wksp1
|
|
|
|
bindsym $mod+2 workspace $wksp2
|
|
|
|
bindsym $mod+3 workspace $wksp3
|
|
|
|
bindsym $mod+4 workspace $wksp4
|
|
|
|
bindsym $mod+5 workspace $wksp5
|
2020-06-18 16:24:20 +02:00
|
|
|
bindsym $mod+6 workspace $wksp6
|
2020-07-07 08:48:50 +02:00
|
|
|
bindsym $mod+7 workspace $wksp7
|
2020-07-12 16:48:51 +02:00
|
|
|
bindsym $mod+8 workspace $wksp8
|
|
|
|
bindsym $mod+9 workspace $wksp9
|
|
|
|
bindsym $mod+0 workspace $wksp10
|
2020-04-24 17:15:48 +02:00
|
|
|
# switch to previous/next workspace
|
|
|
|
bindsym Mod1+Control+a workspace prev_on_output
|
|
|
|
bindsym Mod1+Control+d workspace next_on_output
|
|
|
|
|
|
|
|
# move focused container to workspace
|
2020-06-02 18:29:34 +02:00
|
|
|
bindsym $mod+Shift+1 move container to workspace $wksp1
|
|
|
|
bindsym $mod+Shift+2 move container to workspace $wksp2
|
|
|
|
bindsym $mod+Shift+3 move container to workspace $wksp3
|
|
|
|
bindsym $mod+Shift+4 move container to workspace $wksp4
|
|
|
|
bindsym $mod+Shift+5 move container to workspace $wksp5
|
2020-06-18 16:24:20 +02:00
|
|
|
bindsym $mod+Shift+6 move container to workspace $wksp6
|
2020-07-07 08:48:50 +02:00
|
|
|
bindsym $mod+Shift+7 move container to workspace $wksp7
|
2020-07-12 16:48:51 +02:00
|
|
|
bindsym $mod+Shift+8 move container to workspace $wksp8
|
|
|
|
bindsym $mod+Shift+9 move container to workspace $wksp9
|
|
|
|
bindsym $mod+Shift+0 move container to workspace $wksp10
|
2020-04-24 17:15:48 +02:00
|
|
|
# move focused container to previous/next workspace
|
|
|
|
bindsym Mod1+Shift+Control+a move container to workspace prev
|
|
|
|
bindsym Mod1+Shift+Control+d move container to workspace next
|
|
|
|
|
2020-06-02 18:29:34 +02:00
|
|
|
# -------------------------------------------------------------------------------------------------
|
|
|
|
# RELOAD / RESTART / EXIT
|
|
|
|
#
|
|
|
|
|
2020-04-24 17:15:48 +02:00
|
|
|
bindsym $mod+Shift+c reload
|
|
|
|
bindsym $mod+Shift+r restart
|
2020-08-10 08:56:02 +02:00
|
|
|
bindsym $mod+Shift+e exec "~/Bin/i3quit.sh"
|
|
|
|
#bindsym $mod+Shift+e exec "i3-nagbar -t error -m 'Q' \
|
|
|
|
# -b 'Exit' 'i3-msg exit' \
|
|
|
|
# -b 'Suspend' 'sudo s2ram -f -a 1' \
|
|
|
|
# -b 'Reboot' 'systemctl reboot' \
|
|
|
|
# -b 'Halt' 'systemctl poweroff'"
|
2020-04-24 17:15:48 +02:00
|
|
|
|
2020-06-02 18:29:34 +02:00
|
|
|
# -------------------------------------------------------------------------------------------------
|
|
|
|
# RESIZE MODE
|
|
|
|
#
|
|
|
|
|
2020-04-24 17:15:48 +02:00
|
|
|
mode "resize" {
|
2020-07-16 18:45:40 +02:00
|
|
|
bindsym h resize shrink width 10 px or 10 ppt
|
|
|
|
bindsym j resize grow height 10 px or 10 ppt
|
|
|
|
bindsym k resize shrink height 10 px or 10 ppt
|
|
|
|
bindsym l resize grow width 10 px or 10 ppt
|
2020-04-24 17:15:48 +02:00
|
|
|
|
|
|
|
# back to normal: Enter or Escape
|
|
|
|
bindsym Return mode "default"
|
|
|
|
bindsym Escape mode "default"
|
|
|
|
}
|
|
|
|
|
|
|
|
bindsym $mod+r mode "resize"
|
|
|
|
|
2020-08-09 14:04:21 +02:00
|
|
|
# -------------------------------------------------------------------------------------------------
|
|
|
|
# COLORS
|
|
|
|
#
|
|
|
|
|
|
|
|
set $nord0 #2E3440
|
|
|
|
set $nord1 #3B4252
|
|
|
|
set $nord2 #434C5E
|
|
|
|
set $nord3 #4C566A
|
|
|
|
set $nord4 #D8DEE9
|
|
|
|
set $nord5 #E5E9F0
|
|
|
|
set $nord6 #ECEFF4
|
|
|
|
set $nord7 #8FBCBB
|
|
|
|
set $nord8 #88C0D0
|
|
|
|
set $nord9 #81A1C1
|
|
|
|
set $nord10 #5E81AC
|
|
|
|
set $nord11 #BF616A
|
|
|
|
set $nord12 #D08770
|
|
|
|
set $nord13 #EBCB8B
|
|
|
|
set $nord14 #A3BE8C
|
|
|
|
set $nord15 #B48EAD
|
|
|
|
|
|
|
|
#colors border back text indicator child_border
|
|
|
|
client.focused $nord9 $nord9 $nord0 $nord9 $nord9
|
|
|
|
client.focused_inactive $nord0 $nord0 $nord9 $nord0 $nord0
|
|
|
|
client.unfocused $nord0 $nord0 $nord9 $nord0 $nord0
|
|
|
|
|
|
|
|
client.urgent $nord13 $nord13 $nord0 $nord13 $nord13
|
|
|
|
client.placeholder $nord13 $nord13 $nord0 $nord13 $nord13
|
|
|
|
|
|
|
|
client.background $nord9
|
|
|
|
|
2020-06-02 18:29:34 +02:00
|
|
|
# -------------------------------------------------------------------------------------------------
|
|
|
|
# I3STATUS
|
|
|
|
#
|
|
|
|
|
2020-04-24 17:15:48 +02:00
|
|
|
bar {
|
2020-08-09 14:04:21 +02:00
|
|
|
# font pango:DejaVu Sans Mono, Icons 9
|
2020-04-24 17:15:48 +02:00
|
|
|
status_command py3status
|
2020-06-02 18:29:34 +02:00
|
|
|
|
|
|
|
colors {
|
|
|
|
background $nord0
|
2020-08-09 14:04:21 +02:00
|
|
|
statusline $nord9
|
2020-06-02 18:29:34 +02:00
|
|
|
|
2020-08-09 14:04:21 +02:00
|
|
|
focused_workspace $nord0 $nord9
|
|
|
|
active_workspace $nord0 $nord9
|
|
|
|
inactive_workspace $nord9 $nord0
|
|
|
|
urgent_workspace $nord0 $nord13
|
2020-04-24 17:15:48 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-06-02 18:29:34 +02:00
|
|
|
# -------------------------------------------------------------------------------------------------
|
|
|
|
# AUTOSTART
|
|
|
|
#
|
|
|
|
|
2020-04-24 17:15:48 +02:00
|
|
|
exec --no-startup-id i3-msg 'exec blueman-applet &'
|
|
|
|
exec --no-startup-id i3-msg 'exec pasystray &'
|
|
|
|
exec --no-startup-id i3-msg 'exec nm-applet &'
|
|
|
|
exec --no-startup-id i3-msg 'exec nextcloud &'
|
2020-06-06 07:53:19 +02:00
|
|
|
exec --no-startup-id i3-msg 'exec remmina -i &'
|
2020-04-25 15:56:49 +02:00
|
|
|
exec --no-startup-id xsettingsd &
|
2020-06-19 14:25:19 +02:00
|
|
|
exec --no-startup-id compton --config ~/.compton.conf &
|
2020-06-23 10:52:00 +02:00
|
|
|
exec --no-startup-id setxkbmap -option compose:rctrl &
|
2020-07-05 10:36:38 +02:00
|
|
|
exec --no-startup-id libinput-gestures-setup start
|
2020-06-09 09:37:08 +02:00
|
|
|
exec --no-startup-id i3-msg 'exec /usr/bin/terminator'
|
2020-04-24 17:15:48 +02:00
|
|
|
exec --no-startup-id i3-msg 'exec /usr/bin/firefox'
|
|
|
|
exec --no-startup-id i3-msg 'exec /usr/bin/spotify'
|
|
|
|
|
2020-06-02 18:29:34 +02:00
|
|
|
# -------------------------------------------------------------------------------------------------
|
|
|
|
# WALLPAPER
|
|
|
|
#
|
|
|
|
|
2020-06-19 08:23:37 +02:00
|
|
|
exec --no-startup-id ~/Bin/wallpaper.sh
|
2020-04-24 17:15:48 +02:00
|
|
|
|
2020-06-02 18:29:34 +02:00
|
|
|
# -------------------------------------------------------------------------------------------------
|
2020-04-24 17:15:48 +02:00
|
|
|
# Default workspace layout
|
2020-06-02 18:29:34 +02:00
|
|
|
#
|
|
|
|
|
2020-04-24 17:15:48 +02:00
|
|
|
workspace_layout tabbed
|
|
|
|
|
2020-06-02 18:29:34 +02:00
|
|
|
# -------------------------------------------------------------------------------------------------
|
|
|
|
# BIND KEYS APPS
|
|
|
|
#
|
|
|
|
|
2020-06-07 11:07:32 +02:00
|
|
|
# kill focused window
|
|
|
|
bindsym $mod+Shift+q kill
|
|
|
|
bindsym Control+q kill
|
|
|
|
|
|
|
|
# start dmenu (a program launcher)
|
|
|
|
bindsym $mod+d exec dmenu_run -fn 'Droid Sans Mono-10'
|
|
|
|
bindsym Mod1+space exec "rofi -show combi"
|
|
|
|
|
2020-06-19 08:23:37 +02:00
|
|
|
|
2020-06-07 11:07:32 +02:00
|
|
|
# start a terminal
|
2020-06-09 09:37:08 +02:00
|
|
|
bindsym $mod+Return exec terminator
|
2020-06-07 11:07:32 +02:00
|
|
|
|
2020-04-24 17:15:48 +02:00
|
|
|
# Lock session
|
|
|
|
bindsym $mod+Mod1+l exec "~/Bin/lock.sh"
|
|
|
|
bindsym Mod1+Control+q exec "~/Bin/lock.sh"
|
|
|
|
|
2020-04-26 10:29:12 +02:00
|
|
|
# File browser
|
|
|
|
bindsym $mod+f exec "rofi -modi 'fb:~/.local/share/rofi/rofi-file-browser.sh' -show fb"
|
2020-06-07 11:07:32 +02:00
|
|
|
|
2020-04-28 10:06:40 +02:00
|
|
|
# Find file in user directory
|
2020-04-26 10:29:12 +02:00
|
|
|
bindsym $mod+x exec "rofi -modi 'find:~/.local/share/rofi/finder.sh' -show find"
|
2020-06-07 11:07:32 +02:00
|
|
|
|
|
|
|
# Show top
|
2020-04-28 10:06:40 +02:00
|
|
|
bindsym $mod+t exec "rofi -show top -modi top"
|
2020-04-26 10:29:12 +02:00
|
|
|
|
2020-06-07 22:56:23 +02:00
|
|
|
# Screen layout
|
|
|
|
bindsym $mod+p exec "~/Bin/screenlayoutrofi.sh"
|
|
|
|
|
2020-04-24 17:15:48 +02:00
|
|
|
# Multimedia keys
|
|
|
|
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume `pactl info|grep Sink|cut -d: -f 2` +5%
|
|
|
|
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume `pactl info|grep Sink|cut -d: -f 2` -5%
|
2020-07-12 16:48:51 +02:00
|
|
|
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute `pactl info|grep Sink|cut -d: -f 2` toggle
|
2020-06-07 11:07:32 +02:00
|
|
|
|
2020-06-06 12:39:11 +02:00
|
|
|
# Screen brighness
|
|
|
|
bindsym XF86MonBrightnessDown exec --no-startup-id ~/Bin/brightness.sh down
|
|
|
|
bindsym XF86MonBrightnessUp exec --no-startup-id ~/Bin/brightness.sh up
|
2020-04-24 17:15:48 +02:00
|
|
|
|
2020-08-09 14:22:01 +02:00
|
|
|
# Multimedia
|
|
|
|
bindsym XF86AudioPlay exec ~/Bin/music.sh PlayPause
|
|
|
|
bindsym XF86AudioPrev exec ~/Bin/music.sh Previous
|
|
|
|
bindsym XF86AudioNext exec ~/Bin/music.sh Next
|
2020-04-24 17:15:48 +02:00
|
|
|
|
|
|
|
# Take Screenshot
|
|
|
|
bindsym Print exec ~/Bin/screenshooter.sh
|
2020-04-28 10:06:40 +02:00
|
|
|
bindsym $mod+Print exec ~/Bin/slip
|
2020-04-24 17:15:48 +02:00
|
|
|
|
2020-06-03 14:19:16 +02:00
|
|
|
# Switch screen layouts
|
|
|
|
bindsym XF86Display exec ~/Bin/screenlayout.sh
|
|
|
|
|
2020-07-05 10:36:38 +02:00
|
|
|
# Calendar
|
|
|
|
bindsym $mod+c exec "rxvt-unicode -e khal interactive"
|
|
|
|
|
2020-09-22 12:12:48 +02:00
|
|
|
# Note
|
|
|
|
bindsym $mod+n exec "zettlr"
|
|
|
|
|
2020-06-02 18:29:34 +02:00
|
|
|
# -------------------------------------------------------------------------------------------------
|
|
|
|
# APP DEFAULT POSITION/DECORATIONS
|
|
|
|
#
|
|
|
|
|
2020-06-02 18:34:31 +02:00
|
|
|
for_window [class="Spotify"], move container to workspace $wksp4
|
2020-06-05 19:16:05 +02:00
|
|
|
#for_window [class="Firefox"], move container to workspace $wksp1
|
|
|
|
#for_window [class="Ristretto"] fullscreen enable
|
2020-07-05 10:36:38 +02:00
|
|
|
for_window [title="khal"] floating enable border pixel 8 resize set 800 600
|
2020-07-30 10:03:58 +02:00
|
|
|
for_window [class="JViewer"] floating enable border pixel 8
|
2020-04-25 15:56:49 +02:00
|
|
|
|
2020-06-02 18:29:34 +02:00
|
|
|
# -------------------------------------------------------------------------------------------------
|
|
|
|
# OTHER STUFF
|
|
|
|
#
|
|
|
|
|
2020-09-22 12:12:48 +02:00
|
|
|
default_border pixel 4
|
2020-06-03 18:09:00 +02:00
|
|
|
|
|
|
|
# Power save mode and Auto lock screen
|
2020-06-09 09:37:08 +02:00
|
|
|
exec --no-startup-id xset s 300 30
|
2020-06-03 18:09:00 +02:00
|
|
|
exec --no-startup-id xset dpms 120
|
|
|
|
exec --no-startup-id xss-lock -n ~/Bin/lock.sh
|