159 lines
5.3 KiB
Plaintext
159 lines
5.3 KiB
Plaintext
# vim: filetype=i3config
|
|
include ~/.config/i3/conf.d/*
|
|
|
|
# this config is based on github.com:LukeSmithxyz/voidrice 884dcbdc4792eed95e558af84491eb3100d314a2
|
|
# to immediately apply a new config, run `i3-msg reload; i3-msg restart`
|
|
|
|
# This config file will use environmental variables such as $BROWSER and $TERMINAL.
|
|
# You can set these variables in ~/.profile or ~/.bash_profile if you have it as below:
|
|
|
|
|
|
# No focus on mouse over (allows scrolling without changing focus)
|
|
focus_follows_mouse no
|
|
# remove title bar
|
|
default_border pixel 1
|
|
default_floating_border pixel 1
|
|
# set modifier key, Mod4 is super (windows), Mod1 = Alt key
|
|
set $mod Mod4
|
|
bindsym $mod+F12 restart;reload
|
|
bindsym $mod+Escape exec i3lock -c 000000 & sleep 2 && xset dpms force off
|
|
|
|
|
|
# Use Mouse+$mod to drag floating windows to their wanted position
|
|
floating_modifier $mod
|
|
bindsym $mod+d floating toggle
|
|
|
|
|
|
|
|
|
|
# DROPDOWN
|
|
# Scratchpad binds
|
|
exec bitwarden-desktop
|
|
for_window [instance="bitwarden"] move scratchpad
|
|
for_window [instance="bitwarden"] sticky enable
|
|
bindsym $mod+p [instance="bitwarden"] scratchpad show;
|
|
|
|
exec $TERMINAL --class="dropdown_tmux" -e 'tmux'
|
|
for_window [class="dropdown_tmux"] move scratchpad
|
|
for_window [class="dropdown_tmux"] sticky enable
|
|
bindsym $mod+space [class="dropdown_tmux"] scratchpad show;
|
|
|
|
# General dropdown window traits. The order can matter.
|
|
# sticky allows windows to stay visible even when switching workspaces
|
|
#for_window [instance="dropdown_tmux"] resize set 625 450
|
|
#for_window [instance="dropdown_tmux"] border pixel 3
|
|
|
|
|
|
|
|
# i3 BINDS
|
|
bindsym $mod+h focus left
|
|
bindsym $mod+Shift+h move left
|
|
bindsym $mod+j focus down
|
|
bindsym $mod+Shift+j move down
|
|
bindsym $mod+k focus up
|
|
bindsym $mod+Shift+k move up
|
|
bindsym $mod+l focus right
|
|
bindsym $mod+Shift+l move right
|
|
bindsym $mod+Ctrl+h resize grow width 1 px or 1 ppt
|
|
bindsym $mod+Ctrl+j resize shrink height 1 px or 1 ppt
|
|
bindsym $mod+Ctrl+k resize grow height 1 px or 1 ppt
|
|
bindsym $mod+Ctrl+l resize shrink width 1 px or 1 ppt
|
|
bindsym $mod+Shift+r exec --no-startup-id winresize
|
|
bindsym $mod+f fullscreen toggle
|
|
bindsym $mod+q [con_id="__focused__" instance="^(?!dropdown_).*$"] kill
|
|
bindsym $mod+t layout toggle tabbed splith
|
|
bindsym $mod+Shift+v split h;exec notify-send 'tile horizontally |'
|
|
bindsym $mod+v split v;exec notify-send 'tile vertically -'
|
|
|
|
|
|
# ARROW KEYS
|
|
bindsym $mod+Left move workspace to output left
|
|
bindsym $mod+Down move workspace to output down
|
|
bindsym $mod+Up move workspace to output up
|
|
bindsym $mod+Right move workspace to output right
|
|
|
|
# WORKSPACES
|
|
# prior and next ar PgUp and PgDown
|
|
bindsym $mod+Prior container prev
|
|
bindsym $mod+Shift+Prior move container to workspace prev
|
|
bindsym $mod+Next workspace next
|
|
bindsym $mod+Shift+Next move container to workspace next
|
|
bindsym $mod+Tab workspace back_and_forth
|
|
|
|
# name workspaces
|
|
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 $ws1
|
|
bindsym $mod+Shift+1 move container to workspace $ws1
|
|
bindsym $mod+2 workspace $ws2
|
|
bindsym $mod+Shift+2 move container to workspace $ws2
|
|
bindsym $mod+3 workspace $ws3
|
|
bindsym $mod+Shift+3 move container to workspace $ws3
|
|
bindsym $mod+4 workspace $ws4
|
|
bindsym $mod+Shift+4 move container to workspace $ws4
|
|
bindsym $mod+5 workspace $ws5
|
|
bindsym $mod+Shift+5 move container to workspace $ws5
|
|
bindsym $mod+6 workspace $ws6
|
|
bindsym $mod+Shift+6 move container to workspace $ws6
|
|
bindsym $mod+7 workspace $ws7
|
|
bindsym $mod+Shift+7 move container to workspace $ws7
|
|
bindsym $mod+8 workspace $ws8
|
|
bindsym $mod+Shift+8 move container to workspace $ws8
|
|
bindsym $mod+9 workspace $ws9
|
|
bindsym $mod+Shift+9 move container to workspace $ws9
|
|
bindsym $mod+0 workspace $ws10
|
|
bindsym $mod+Shift+0 move container to workspace $ws10
|
|
|
|
|
|
# APPLICATION SHORTCUTS
|
|
bindsym $mod+Return exec --no-startup-id "rofi -show"
|
|
bindsym $mod+Shift+space exec --no-startup-id $TERMINAL
|
|
bindsym $mod+w exec --no-startup-id $BROWSER
|
|
bindsym $mod+Shift+w exec --no-startup-id "$BROWSER -profile ~/.mozilla/firefox/2ustnzbw.shopping"
|
|
bindsym $mod+e exec --no-startup-id $EXPLORER
|
|
bindsym $mod+m exec --no-startup-id $MAILCLIENT
|
|
# TODO add import path/to/img.png to make a screenshot
|
|
bindsym --release $mod+s exec "import ~/Pictures/screenshots/$(date '+%y_%m_%d-%H_%M_%S').png"
|
|
#bindsym $mod+Shift+s exec "import -window root ~/Pictures/screenshots/$(date 'import ~/Pictures/screenshots/$(date '+%y_%m_%d-%H_%M_%S').png"
|
|
# i3lock for locking, i3-msg exit for logout
|
|
# Show selection:
|
|
#bindsym $mod+Insert exec --no-startup-id showclip
|
|
|
|
|
|
|
|
|
|
# AUTOSTART
|
|
# start polkit for pacman
|
|
exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
|
|
# DESKTOP STUFF
|
|
# set background picture
|
|
exec --no-startup-id nitrogen --set-zoom-fill $HOME/.config/i3/bg.png
|
|
|
|
# try to start tray tools / applets manually
|
|
exec --no-startup-id nm-applet
|
|
# --sm-disable
|
|
exec --no-startup-id blueman-applet
|
|
exec --no-startup-id pamac-tray
|
|
exec --no-startup-id xfce4-power-manager
|
|
#exec --no-startup-id volumeicon
|
|
exec --no-startup-id start-pulseaudio-x11
|
|
exec --no-startup-id pa-applet
|
|
exec --no-startup-id picom
|
|
bindsym $mod+Ctrl+m exec pavucontrol
|
|
# detect screen configurations
|
|
exec --no-startup-id autorandr -c
|
|
# set key repeat delay and rate
|
|
exec --no-startup-id xset r rate 200 35
|
|
|
|
|