Files
dotfiles/.i3/config

243 lines
8.0 KiB
Plaintext

# T's desktop v3
#exec --no-stratup-id xrandr --output eDP1 --primary --auto
exec --no-startup-id xrandr --output HDMI-0 --auto --mode 2048x1152 --primary
exec_always --no-startup-id $HOME/.i3/scripts/polybar_launch.sh
exec --no-startup-id compton -G -b
exec --no-startup-id mplayer -fs $HOME/.i3/boot.mp4
exec --no-startup-id conky -c $HOME/.config/conky/conkyrc
exec --no-startup-id xset -dpms && xset s noblank && xset s noexpose && xset dpms 600 1800 360
exec --no-startup-id synclient TapButton1=1
exec xautolock -time 10 -locker $HOME/.i3/scripts/locker.sh
exec xautolock -locknow
#DAEMONS
#exec --no-startup-id urxvtd -q
exec --no-startup-id udiskie -t
exec --no-startup-id nitrogen --restore
exec --no-startup-id dunst
#exec --no-startup-id mpd
exec --no-startup-id megasync
exec --no-startup-id parcellite
exec --no-startup-id dunst
exec --no-startup-id blueman-applet
#Layout
exec setxkbmap us altgr-intl
exec xmodmap $HOME/.i3/custom.map
font pango: xos4 Terminus, Font Awesome 5 Free, Font Awesome 5 Brands 12
#--APPEARANCE--#
#--T-netbook---#
#client.focused #464A55 #464A55 #969AA5 #ffffff
#client.focused_inactive #272B35 #9b9aa6 #ffffff #48504e
#client.urgent #272B35 #900000 #ffffff #900000
#client.placeholder #000000 #0c0c0c #ffffff #000000
#client.background #ffffff
#-----T-i3-----#
#class border backgr. text indicator
client.focused #225396 #7592bA #ffffff #2e9ef4
client.focused_inactive #15325A #032048 #ffffff #484e50
client.urgent #2f343a #900000 #ffffff #900000
client.placeholder #000000 #0c0c0c #ffffff #000000
client.background #ffffff
new_window normal 4
new_float normal 5
hide_edge_borders smart
#//APPEARANCE//#
set $mod Mod4
set $alt Mod1
set $m Mod3
#--WINDOW-SETTINGS--#
floating_modifier $mod
for_window [class=".*"] title_format "-> %title"
for_window [class="Pavucontrol"] floating enable
for_window [class="octopi"] floating enable
for_window [class="lxappearance"] floating enable
for_window [class="mojo"] floating enable
for_window [class="nitrogen"] floating enable
for_window [title="Hold On*"] floating enable
for_window [title="Cerebro*"] floating enable
for_window [title="florence"] floating enable
for_window [title="Starting Unity...*"] floating enable
for_window [window_role="pop-up"] floating enable
for_window [window_role="task_dialog"] floating enable
assign [class="^ranger$"] → $WS4
assign [title="^ncmpcpp$"] → $WS5
assign [class="^URxvt$"] → $WS3
assign [class="^Termite$"] → $WS3
assign [class="^Alacritty$"] → $WS3
assign [class="^Firefox$"] → $WS2
assign [class="^Steam*"] → $WSW2
assign [class="^Gimp$"] → $WSW4
#//WINDOW-SETTINGS//#
#--CONTAINERS+WINDOWS--#
bindsym $mod+Shift+q kill
bindsym --release button2 kill
bindsym $mod+f fullscreen toggle
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+p focus parent
bindsym $mod+a layout toggle split
bindsym $mod+s layout stacking
bindsym $mod+v layout tabbed
bindsym $mod+x split h
bindsym $mod+c split v
bindsym $mod+u border pixel 4
bindsym $mod+Shift+space floating toggle
bindsym $mod+space focus mode_toggle
#//CONTAINERS+WINDOWS//#
#--CUSTOM COMMANDS--#
#KEYBOARD LAYOUT SWITCHING
bindsym $alt+F3 exec --no-startup-id setxkbmap us altgr-intl && xmodmap ~/.i3/custom.map
bindsym $alt+F2 exec --no-startup-id setxkbmap si
#LAUNCH PROGRAM
bindsym $mod+d exec --no-startup-id rofi -color-enabled -show run -font "xos4 Terminus 18"
bindsym $mod+Shift+d exec --no-startup-id rofi -show drun -font "xos4 Terminus 18" -o 85 -p "Run:"
bindsym $alt+Tab exec --no-startup-id rofi -show window -font "xos4 Terminus 18"
bindsym $mod+t exec alacritty
bindsym $mod+w exec firefox
bindsym $mod+Shift+f exec alacritty --config-file "$HOME/.config/alacritty/alacritty_ranger.yml" -t ranger -e ranger ~
bindsym $mod+m exec alacritty -e ncmpcpp
#INTEGRATED-SETTINGS
bindsym XF86AudioPlay exec mpc toggle
bindsym XF86AudioStop exec mpc stop
bindsym XF86AudioNext exec mpc next
bindsym XF86AudioPrev exec mpc previous
bindsym XF86AudioMute exec ~/.i3/scripts/volume_set.sh mute
bindsym XF86AudioRaiseVolume exec ~/.i3/scripts/volume_set.sh up
bindsym XF86AudioLowerVolume exec ~/.i3/scripts/volume_set.sh down
bindsym XF86MonBrightnessUp exec xbacklight +5
bindsym XF86MonBrightnessDown exec xbacklight -5
bindsym XF86KbdBrightnessUp exec asus-kbd-backlight up
bindsym XF86KbdBrightnessDown exec asus-kbd-backlight down
bindsym XF86Sleep exec ~/.i3/scripts/locker.sh & systemctl suspend
bindsym $mod+Shift+p exec ~/.i3/scripts/locker.sh & systemctl suspend
bindsym $mod+Shift+o exec ~/.i3/scripts/locker.sh
#SHUTDOWN+RESTART
bindsym $mod+Shift+c reload
bindsym $mod+Shift+r restart
bindsym $mod+Shift+z exec "i3-msg exit"
bindsym $mod+Shift+e exec ~/.i3/scripts/locker.sh
#SHUTDOWN MENU
bindsym $alt+F4 exec --no-startup-id ~/.i3/scripts/shutdown_menu
#//CUSTOM COMMANDS//#
#--WORKSPACES--#
workspace_auto_back_and_forth yes
workspace $WS1 output primary
#Primary workspaces
set $WS1 "1:"
set $WS2 "2:"
set $WS3 "3:"
set $WS4 "4:"
set $WS5 "5:"
bindsym $mod+1 workspace $WS1
bindsym $mod+2 workspace $WS2
bindsym $mod+3 workspace $WS3
bindsym $mod+4 workspace $WS4
bindsym $mod+5 workspace $WS5
bindsym $mod+Shift+1 move container to workspace $WS1
bindsym $mod+Shift+2 move container to workspace $WS2
bindsym $mod+Shift+3 move container to workspace $WS3
bindsym $mod+Shift+4 move container to workspace $WS4
bindsym $mod+Shift+5 move container to workspace $WS5
bindsym $m+1 workspace $WS1
bindsym $m+2 workspace $WS2
bindsym $m+3 workspace $WS3
bindsym $m+4 workspace $WS4
bindsym $m+5 workspace $WS5
bindsym $m+Shift+1 move container to workspace $WS1
bindsym $m+Shift+2 move container to workspace $WS2
bindsym $m+Shift+3 move container to workspace $WS3
bindsym $m+Shift+4 move container to workspace $WS4
bindsym $m+Shift+5 move container to workspace $WS5
#Secondary workspaces
set $WSW1 "6:"
set $WSW2 "7:"
set $WSW3 "8:"
set $WSW4 "9:"
bindsym $mod+F1 workspace $WSW1
bindsym $mod+F2 workspace $WSW2
bindsym $mod+F3 workspace $WSW3
bindsym $mod+F4 workspace $WSW4
bindsym $mod+Shift+F1 move container to workspace $WSW1
bindsym $mod+Shift+F2 move container to workspace $WSW2
bindsym $mod+Shift+F3 move container to workspace $WSW3
bindsym $mod+Shift+F4 move container to workspace $WSW4
bindsym $m+F1 workspace $WSW1
bindsym $m+F2 workspace $WSW2
bindsym $m+F3 workspace $WSW3
bindsym $m+F4 workspace $WSW4
bindsym $m+Shift+F1 move container to workspace $WSW1
bindsym $m+Shift+F2 move container to workspace $WSW2
bindsym $m+Shift+F3 move container to workspace $WSW3
bindsym $m+Shift+F4 move container to workspace $WSW4
#GAPS
gaps inner 5
gaps outer 2
workspace $ws2 gaps outer 0
workspace $ws2 gaps inner 0
#Multiple screens
bindsym $mod+Left move container to output left
bindsym $mod+Right move container to output right
bindsym $mod+Shift+Left move workspace to output left
bindsym $mod+Shift+Right move workspace to output right
bindsym $mod+Up move container to output up
bindsym $mod+Down move container to output down
bindsym $mod+Shift+Up move workspace to output up
bindsym $mod+Shift+Down move workspace to output down
#//WORKSPACES//#
#--LAYOUTS--#
bindsym $alt+Shift+l exec $HOME/.i3/scripts/workspace.sh "$HOME/.i3/layouts/workspace-3.json" "$HOME/build/doc24_backend"
#//LAYOUTS//#
# resize window (you can also use the mouse for that)
mode "resize" {
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
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
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+r mode "resize"
mode "ignore" {
bindsym $alt+Shift+i mode "default"
}
bindsym $alt+i mode "ignore"
# vim:filetype=i3