diff options
Diffstat (limited to '.config/i3/config')
| -rw-r--r-- | .config/i3/config | 144 |
1 files changed, 76 insertions, 68 deletions
diff --git a/.config/i3/config b/.config/i3/config index 4369632..e07752b 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -1,79 +1,103 @@ # vim: filetype=i3 -# _ _ ____ _ _ _ _ _ _____ ____ __ _ -# | | _ _| | _____ / ___| _ __ ___ (_) |_| |__ ( )___ (_)___ / / ___|___ _ __ / _(_) __ _ -# | | | | | | |/ / _ \ \___ \| '_ ` _ \| | __| '_ \|// __| | | |_ \ | | / _ \| '_ \| |_| |/ _` | -# | |__| |_| | < __/ ___) | | | | | | | |_| | | | \__ \ | |___) | | |__| (_) | | | | _| | (_| | -# |_____\__,_|_|\_\___| |____/|_| |_| |_|_|\__|_| |_| |___/ |_|____/ \____\___/|_| |_|_| |_|\__, | - # |___/ - -# This is Luke Smith's i3-gaps configuration file. -# Me: http://lukesmith.xyz +# _ _ ____ ____ ____ +# | | / \ | _ \| __ ) ___| +# | | / _ \ | |_) | _ \___ \ +# | |___ / ___ \| _ <| |_) |__) | +# |_____/_/ \_\_| \_\____/____/ +# +# File originally by Luke Smith +# Website: http://lukesmith.xyz # Email: luke@lukesmith.xyz # YouTube: https://youtube.com/c/LukeSmithxyz # Github: https://github.com/LukeSmithxyz # Be sure that you have your $BROWSER environmental variable set to your favorite browser. -# E.g., put `export BROWSER="firefox"` into your bash_profile +# E.g., put `export BROWSER="firefox"` into your ~/.bash_profile # #---Basic Definitions---# # -#Needed for i3-gaps +# Needed for i3-gaps for_window [class="^.*"] border pixel 3 gaps inner 15 gaps outer 15 -font pango:mono 12 set $mod Mod4 set $term --no-startup-id st set $stoprec --no-startup-id killrecording -exec --no-startup-id rm -f ~/.larbs/.recording +set $shutdown sudo shutdown -h now +set $reboot sudo reboot +set $netrefresh --no-startup-id sudo systemctl restart NetworkManager +set $hibernate sudo systemctl suspend # #---Starting External Scripts---# # -#Setting the background: +# Setting the background: +#exec_always --no-startup-id wal -i ~/.config/wall.png exec_always --no-startup-id feh --bg-scale ~/.config/wall.png -#Starts dunst for notifications: +# Starts dunst for notifications: exec --no-startup-id dunst -#Music player daemon: +# Music player daemon: exec --no-startup-id mpd -#Torrent daemon: -exec --no-startup-id transmission-daemon -#Composite manager: +# Torrent daemon: +#exec --no-startup-id transmission-daemon +# Composite manager: exec --no-startup-id compton --xrender-sync-fence -#Launch Polybar where appropriate: +# Launch Polybar where appropriate: #exec_always --no-startup-id ~/.scripts/polybar_launch -#Runs the key remapping scripts +# Runs the key remapping scripts exec --no-startup-id ~/.scripts/remaps -#Unclutter makes the mouse invisible after a brief period +# Unclutter makes the mouse invisible after a brief period exec --no-startup-id unclutter -#Network Manager applet +# Network Manager applet exec --no-startup-id nm-applet +# Run the script to update the mpd i3block on change. +exec --no-startup-id "pgrep -x i3mpdupdate || i3mpdupdate" +# Remove recording icon if not properly closed on last shutdown. +exec --no-startup-id rm -f ~/.larbs/.recording + +# Set Xresources colors: +set_from_resource $darkblack color0 #000000 +set_from_resource $black color8 #000000 +set_from_resource $darkred color1 #000000 +set_from_resource $red color9 #000000 +set_from_resource $darkgreen color2 #000000 +set_from_resource $green color10 #000000 +set_from_resource $darkyellow color3 #000000 +set_from_resource $yellow color11 #000000 +set_from_resource $darkblue color4 #000000 +set_from_resource $blue color12 #000000 +set_from_resource $darkmagenta color5 #000000 +set_from_resource $magenta color13 #000000 +set_from_resource $darkcyan color6 #000000 +set_from_resource $cyan color14 #000000 +set_from_resource $darkwhite color7 #000000 +set_from_resource $white color15 #000000 +set $transparent #00000000 + +# BORDER BACKGROUND TEXT INDICATOR CHILD_BORDER +client.focused $red $red $magenta $darkmagenta $darkblue +client.unfocused $transparent $blue $white $darkblue $transparent +client.focused_inactive $transparent $blue $white $darkblue $transparent +client.urgent $darkred $darkred $black $darkred $darkred +client.background $black bar { + font pango:mono 11 + colors { + background $darkblack + statusline $darkwhite + separator $cyan + focused_workspace $blue $darkblue $darkwhite + active_workspace $blue $blue $darkwhite + inactive_workspace $darkblack $darkblack $white + urgent_workspace $darkblack $darkblack $white + } status_command i3blocks position top mode dock modifier None } -# Run the script to update the mpd i3block on change. -exec --no-startup-id "pgrep i3mpdupdate || i3mpdupdate" - -#OPENRC -#set $shutdown sudo openrc-shutdown -p -#set $reboot sudo openrc-shutdown -r -#set $netrefresh --no-startup-id sudo rc-service NetworkManager restart - -#RUNIT -#set $shutdown sudo shutdown -h now -#set $reboot sudo reboot -#set $netrefresh --no-startup-id sudo sv restart NetworkManager - -#SYSTEMD -set $shutdown sudo shutdown -h now -set $reboot sudo reboot -set $netrefresh --no-startup-id sudo systemctl restart NetworkManager -set $hibernate sudo systemctl suspend # #---Basic Bindings---# # bindsym $mod+Return exec $term -##bindsym $mod+Shift+Return +bindsym $mod+Shift+Return exec --no-startup-id samedir bindsym $mod+Shift+space floating toggle bindsym $mod+space focus mode_toggle @@ -98,7 +122,7 @@ bindsym $mod+w exec --no-startup-id $BROWSER bindsym $mod+Shift+w exec --no-startup-id $BROWSER bindsym $mod+e exec $term -e neomutt -##bindsym $mod+Shift+e +bindsym $mod+Shift+e exec --no-startup-id tutorialvids bindsym $mod+r exec $term -e ranger bindsym $mod+Shift+r exec $term -e sudo ranger / @@ -118,12 +142,11 @@ bindsym $mod+Shift+i exec --no-startup-id "bash ~/.scripts/i3resize up" bindsym $mod+o sticky toggle bindsym $mod+Shift+o exec --no-startup-id "bash ~/.scripts/i3resize right" - bindsym $mod+p exec --no-startup-id lmc toggle #bindsym $mod+Shift+p bindsym $mod+a [instance="math"] scratchpad show; [instance="math"] move position center -bindsym $mod+Shift+a exec $term -e ncpamixer +bindsym $mod+Shift+a exec $term -e pulsemixer bindsym $mod+s gaps inner current plus 5 bindsym $mod+Shift+s gaps inner current minus 5 @@ -131,8 +154,12 @@ bindsym $mod+Shift+s gaps inner current minus 5 bindsym $mod+d exec --no-startup-id dmenu_run bindsym $mod+Shift+d gaps inner current set 0; gaps outer current set 0 +set $freeze Distraction-free mode (mod+shift+esc to exit) +mode "$freeze" { bindsym $mod+Shift+Escape mode "default" +} + bindsym $mod+f fullscreen toggle -##bindsym $mod+Shift+f +bindsym $mod+Shift+f mode "$freeze" bindsym $mod+g workspace prev bindsym $mod+Shift+g exec --no-startup-id gimp; workspace $ws5 @@ -159,7 +186,7 @@ bindsym $mod+c exec --no-startup-id camtoggle ##bindsym $mod+Shift+c bindsym $mod+v exec $term -e ncmpcpp -s visualizer -bindsym $mod+Shift+v exec projectM-pulseaudio +bindsym $mod+Shift+v exec --no-startup-id projectM-pulseaudio bindsym $mod+b bar mode toggle bindsym $mod+Shift+b floating toggle; sticky toggle; exec --no-startup-id bottomleft @@ -170,7 +197,6 @@ bindsym $mod+n exec $term -e newsboat bindsym $mod+m exec --no-startup-id st -e ncmpcpp bindsym $mod+Shift+m exec --no-startup-id lmc mute - # #---Workspace Bindings---# # bindsym $mod+Home workspace $ws1 bindsym $mod+Shift+Home move container to workspace $ws1 @@ -229,17 +255,11 @@ bindsym $mod+Shift+0 move container to workspace $ws10 for_window [class="Pinentry"] sticky enable for_window [class="sent"] border pixel 0px for_window [class="Blender"] move to workspace $ws6 -workspace $ws6 gaps inner 0 -workspace $ws6 gaps outer 0 for_window [class="marble"] move to workspace $ws7 for_window [title="GIMP Startup"] move workspace $ws5 for_window [class="Gimp"] move workspace $ws5 -workspace $ws5 gaps inner 0 -workspace $ws5 gaps outer 0 -for_window [window_role="gimp-dock"] floating disable; move left; resize shrink width 50 px or 50ppt -for_window [window_role="gimp-toolbox"] floating disable; move right; resize grow width 30 px or 30ppt for_window [window_role="GtkFileChooserDialog"] resize shrink height 10 px -for_window [instance="dl"] move workspace $ws10 +for_window [title="Default - Wine desktop"] floating enable # First I have a tmux window used for background scripts. # I'll later bind this to mod+u. @@ -250,8 +270,6 @@ for_window [instance="dropdown"] border pixel 5 # Runs the tmuxinit script, which searches for an earlier tmux instance, # otherwise starts a new one (to prevent multiple dropdown sessions). exec --no-startup-id $term -n dropdown -e tmuxinit -# Runs neofetch on first tmux screen if installed. -exec_always --no-startup-id "tmux send-keys -t 0:0 'clear && neofetch 2>/dev/null' Enter" # Then I have a window running R I use for basic arithmetic # I'll later bind this to mod+a. @@ -261,14 +279,6 @@ for_window [instance="math"] move scratchpad for_window [instance="math"] border pixel 5 exec --no-startup-id $term -n math -f mono:pixelsize=24 -e dropdowncalc -# Bindings to make the webcam float and stick. -for_window [title="mpvfloat"] floating enable -for_window [title="mpvfloat"] sticky enable -for_window [title="mpvfloat"] border pixel 0 -no_focus [title="mpvfloat"] - -for_window [title="Default - Wine desktop"] floating enable - # #---Function Buttons---# # bindsym $mod+F1 exec --no-startup-id zathura ~/.config/i3/i3_guide.pdf bindsym $mod+F2 restart @@ -283,7 +293,6 @@ bindsym $mod+F10 exec --no-startup-id dmenuumount ##bindsym $mod+F11 ##bindsym $mod+F12 - # #---Arrow Keys---# # bindsym $mod+Left focus left bindsym $mod+Down focus down @@ -294,7 +303,6 @@ bindsym $mod+Shift+Down move down bindsym $mod+Shift+Up move up bindsym $mod+Shift+Right move right - # #---Media Keys---# # # Volume keys @@ -333,7 +341,7 @@ bindsym XF86PowerOff exec --no-startup-id prompt "Are you sure you want to shut ##bindsym XF86Cut exec ##bindsym XF86MenuKB exec bindsym XF86Calculator exec $term -e R -q -bindsym XF86Sleep exec sudo zzz +bindsym XF86Sleep exec $hibernate ##bindsym XF86WakeUp exec bindsym XF86Explorer exec $term -e ranger ##bindsym XF86Send exec |
