dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit 79236c3ddb91d97e0da792f2e5fbf03ab6f3ea20
parent 67ad6d900624b3f89ab4981b3e3a05badc466a83
Author: Alex Balgavy <a.balgavy@gmail.com>
Date:   Wed, 13 May 2020 16:07:14 +0200

i3: updated Regolith, big config change

This here gets rid of most of my custom i3 config.
At some point when I move to Linux full-time, I'll need this for reference.
Of course unless I move to arch+dwm.


Former-commit-id: f148c5fefd2c83cf54974facd0624e86dbbc0e12
Diffstat:
M.gitignore | 1+
Mi3/config | 599++++++++++++++++++++++++++++++++++++++++++++++++++-----------------------------
Di3/config-old | 231-------------------------------------------------------------------------------
3 files changed, 383 insertions(+), 448 deletions(-)

diff --git a/.gitignore b/.gitignore @@ -8,4 +8,5 @@ newsboat/notify-wrapper vim/autoload/plug.vim* irssi/*.log bin/z +bin/lf mpv/scripts/shared/sponsorblock.db* diff --git a/i3/config b/i3/config @@ -1,23 +1,52 @@ -# i3 config file (v4) for Regolith Desktop Environment +############################################################################### +# i3-gaps config file for the Regolith Desktop Environment # # Please see http://i3wm.org/docs/userguide.html for a complete reference! +# +############################################################################### +# +# In this config file, may values are taken from Xresources with the directive +# set_from_resource: +# +# set_from_resource <i3 variable name> <Xresources key> <default value> +# +# This configuration file utilizes Xresource variables to enable users to +# change the configuration without having to make a copy of this config file. +# The benefit to not copying this file is easier upgrading in the future. +# To update a value in this config without making a copy, update the Xresource +# value in the file ~/.config/regolith/Xresources. +# +# For example, to change the bar position to the top of the screen this is the +# i3 config entry: +# set_from_resource $i3-wm.bar.position i3-wm.bar.position bottom +# +# So add this line to ~/.config/regolith/Xresources to change it's value: +# i3-wm.bar.position: top +# +# Reload i3 after making Xresource changes. Learn more at +# https://regolith-linux.org/docs/howto/override-xres/ +# +############################################################################### +# +# This file uses a machine-parsable format for comments. The schema: +# ## <Category> // <Action> // <Keybinding> ## +# Learn more at https://github.com/regolith-linux/remontoire +# +############################################################################### -# This defines which key super maps to on your keyboard. +############################################################################### +# Meta Key Mappings # Alt key is Mod1, and Windows key is Mod4 -set $mod Mod4 -set $alt Mod1 - -# i3xrocks config file -# set $i3xrocks_config /etc/regolith/i3xrocks/config +############################################################################### -# compton config file -set $compton_config /home/zeroalpha/.config/compton/config +set_from_resource $mod i3-wm.mod Mod4 +set_from_resource $alt i3-wm.alt Mod1 -# path to terminal. Override this to specify a custom terminal. -set $terminal_path /usr/local/bin/xst - -# Color values are defined in ~/.Xresources-regolith +############################################################################### +# Workspace Names # These are the labels which define each i3 workspace. +############################################################################### + set_from_resource $ws1 i3-wm.workspace.01.name "1" set_from_resource $ws2 i3-wm.workspace.02.name "2" set_from_resource $ws3 i3-wm.workspace.03.name "3" @@ -38,245 +67,336 @@ set_from_resource $ws17 i3-wm.workspace.17.name "17" set_from_resource $ws18 i3-wm.workspace.18.name "18" set_from_resource $ws19 i3-wm.workspace.19.name "19" -# Use Mouse+$mod to drag floating windows to their wanted position -floating_modifier $mod +############################################################################### +# Launcher dialogs +############################################################################### -hide_edge_borders smart +## Launch // Terminal // <> Enter ## +bindsym $mod+Return exec SHLVL=0 /usr/bin/x-terminal-emulator +## Launch // Browser // <><Shift> Enter ## +bindsym $mod+Shift+Return exec gtk-launch $(xdg-settings get default-web-browser) -mode "Control Center" { - # shortcuts for common system configuration tasks - bindsym w exec gnome-control-center wifi - bindsym b exec gnome-control-center bluetooth - bindsym d exec gnome-control-center display - bindsym n exec gnome-control-center network - bindsym p exec gnome-control-center power - bindsym s exec gnome-control-center sound - - bindsym Escape mode "default" - bindsym $mod+comma mode "default", [class=Gnome-control-center] move to scratchpad - bindsym q mode "default", [class=Gnome-control-center] kill -} +set_from_resource $rofiTheme rofi.theme /etc/regolith/styles/lascaille/rofi.rasi -bindsym $mod+comma mode "Control Center",exec --no-startup-id gnome-control-center, [class=Gnome-control-center] move to scratchpad, scratchpad show, resize set width 96 ppt height 95 ppt, move position center +## Launch // Application // <> Space ## +set_from_resource $i3-wm.program.launcher.app i3-wm.program.launcher.app rofi -show drun -theme $rofiTheme +bindsym $mod+space exec $i3-wm.program.launcher.app -# start a terminal -bindsym $mod+Return exec --no-startup-id $terminal_path +## Launch // Command // <> r ## +set_from_resource $i3-wm.program.launcher.cmd i3-wm.program.launcher.cmd rofi -show run -theme $rofiTheme +bindsym $mod+r exec $i3-wm.program.launcher.cmd -# start a web browser -bindsym $mod+Shift+Return exec --no-startup-id /usr/bin/sensible-browser +## Navigate // Window by Name // <><Ctrl> Space ## +set_from_resource $i3-wm.program.launcher.window i3-wm.program.launcher.window rofi -show window -theme $rofiTheme +bindsym $mod+Ctrl+space exec $i3-wm.program.launcher.window -# kill focused window -bindsym $alt+q kill +## Launch // This Dialog // <><Shift> ? ## +set_from_resource $i3-wm.program.help i3-wm.program.help /usr/bin/remontoire-toggle +bindsym $mod+Shift+question exec --no-startup-id $i3-wm.program.help +## Launch // File Search // <><Alt> Space ## +set_from_resource $i3-wm.program.file_search i3-wm.program.file_search rofi -show find -modi find:/usr/share/rofi/modi/finder.sh +bindsym $mod+$alt+space exec $i3-wm.program.file_search -bindsym $mod+minus move to scratchpad -bindsym $mod+Shift+minus scratchpad show - -set_from_resource $rofiTheme rofi.theme "regolith-theme" - -# rofi app and window launchers -bindsym $mod+a exec --no-startup-id rofi -show drun -theme $rofiTheme -bindsym $mod+r exec --no-startup-id rofi -show run -theme $rofiTheme -bindsym $mod+shift+w exec --no-startup-id rofi -show window -theme $rofiTheme - -# change focus +############################################################################### +# Window and Workspace Navigation +############################################################################### +## Navigate // Relative Window // <Alt> h j k l ## bindsym $alt+h focus left bindsym $alt+j focus down bindsym $alt+k focus up bindsym $alt+l focus right -bindsym $alt+Shift+h move left -bindsym $alt+Shift+j move down -bindsym $alt+Shift+k move up -bindsym $alt+Shift+l move right +## Navigate // Workspaces 1-10 // <> 0..9 ## +bindsym $mod+1 workspace number $ws1 +bindsym $mod+2 workspace number $ws2 +bindsym $mod+3 workspace number $ws3 +bindsym $mod+4 workspace number $ws4 +bindsym $mod+5 workspace number $ws5 +bindsym $mod+6 workspace number $ws6 +bindsym $mod+7 workspace number $ws7 +bindsym $mod+8 workspace number $ws8 +bindsym $mod+9 workspace number $ws9 +bindsym $mod+0 workspace number $ws10 +## Navigate // Workspace 11 - 19 // <><Ctrl> 0..9 ## +bindsym $mod+Ctrl+1 workspace number $ws11 +bindsym $mod+Ctrl+2 workspace number $ws12 +bindsym $mod+Ctrl+3 workspace number $ws13 +bindsym $mod+Ctrl+4 workspace number $ws14 +bindsym $mod+Ctrl+5 workspace number $ws15 +bindsym $mod+Ctrl+6 workspace number $ws16 +bindsym $mod+Ctrl+7 workspace number $ws17 +bindsym $mod+Ctrl+8 workspace number $ws18 +bindsym $mod+Ctrl+9 workspace number $ws19 + +## Navigate // Next Workspace // <> Tab ## +bindsym $mod+Tab workspace next + +## Navigate // Next Workspace // <><Alt> → ## +bindsym $mod+$alt+Right workspace next + +## Navigate // Previous Workspace // <><Shift> Tab ## +bindsym $mod+Shift+Tab workspace prev + +## Navigate // Previous Workspace // <><Alt> ← ## +bindsym $mod+$alt+Left workspace prev + +## Navigate // Scratchpad // <><Ctrl> a ## +bindsym $mod+Ctrl+a scratchpad show -# split in horizontal orientation -bindsym $mod+Shift+s split h +############################################################################### +# Window and Workspace Configuration +############################################################################### -# split in vertical orientation -bindsym $mod+Shift+v split v +## Modify // Window Position // <><Shift> ↑ ↓ ← → ## +bindsym $mod+Shift+Left move left +bindsym $mod+Shift+Down move down +bindsym $mod+Shift+Up move up +bindsym $mod+Shift+Right move right -# enter fullscreen mode for the focused container -bindsym $mod+z fullscreen toggle +## Modify // Window Position // <><Shift> k j h l ## +bindsym $mod+Shift+h move left +bindsym $mod+Shift+j move down +bindsym $mod+Shift+k move up +bindsym $mod+Shift+l move right -# show/hide keybindings -bindsym $mod+Shift+question exec --no-startup-id /usr/bin/conky-toggle +## Modify // Containing Workspace // <><Ctrl><Shift> ↑ ↓ ← → ## +bindsym $mod+Ctrl+Shift+Left move workspace to output left +bindsym $mod+Ctrl+Shift+Down move workspace to output down +bindsym $mod+Ctrl+Shift+Up move workspace to output up +bindsym $mod+Ctrl+Shift+Right move workspace to output right -# toggle tiling / floating +## Modify // Next Window Orientation // <> Backspace ## +bindsym $mod+BackSpace split toggle + +## Modify // Window Fullscreen Toggle // <> f ## +bindsym $mod+f fullscreen toggle + +## Modify // Window Floating Toggle // <><Shift> f ## bindsym $mod+Shift+f floating toggle -# change focus between tiling / floating windows -bindsym $mod+Shift+t focus mode_toggle +## Modify // Move to Scratchpad // <><Ctrl> m ## +bindsym $mod+Ctrl+m move to scratchpad -# toggle tabbed mode -bindsym $mod+w layout tabbed -bindsym $mod+e layout stacking -bindsym $mod+s layout default - -# move to workspace -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+6 workspace $ws6 -bindsym $mod+7 workspace $ws7 -bindsym $mod+8 workspace $ws8 -bindsym $mod+9 workspace $ws9 -bindsym $mod+0 workspace $ws10 -bindsym $mod+Ctrl+1 workspace $ws11 -bindsym $mod+Ctrl+2 workspace $ws12 -bindsym $mod+Ctrl+3 workspace $ws13 -bindsym $mod+Ctrl+4 workspace $ws14 -bindsym $mod+Ctrl+5 workspace $ws15 -bindsym $mod+Ctrl+6 workspace $ws16 -bindsym $mod+Ctrl+7 workspace $ws17 -bindsym $mod+Ctrl+8 workspace $ws18 -bindsym $mod+Ctrl+9 workspace $ws19 - -# cycle across workspaces -bindsym $mod+Tab workspace next -bindsym $mod+Shift+Tab workspace prev +## Modify // Tile/Float Focus Toggle // <><Shift> t ## +bindsym $mod+Shift+t focus mode_toggle -# move focused container to workspace -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 $mod+Shift+6 move container to workspace $ws6 -bindsym $mod+Shift+7 move container to workspace $ws7 -bindsym $mod+Shift+8 move container to workspace $ws8 -bindsym $mod+Shift+9 move container to workspace $ws9 -bindsym $mod+Shift+0 move container to workspace $ws10 -bindsym $mod+Shift+Ctrl+1 move container to workspace $ws11 -bindsym $mod+Shift+Ctrl+2 move container to workspace $ws12 -bindsym $mod+Shift+Ctrl+3 move container to workspace $ws13 -bindsym $mod+Shift+Ctrl+4 move container to workspace $ws14 -bindsym $mod+Shift+Ctrl+5 move container to workspace $ws15 -bindsym $mod+Shift+Ctrl+6 move container to workspace $ws16 -bindsym $mod+Shift+Ctrl+7 move container to workspace $ws17 -bindsym $mod+Shift+Ctrl+8 move container to workspace $ws18 -bindsym $mod+Shift+Ctrl+9 move container to workspace $ws19 +## Modify // Window Layout Mode // <> t ## +bindsym $mod+t layout toggle tabbed splith splitv + +## Modify // Move Window to Workspace 1 - 10 // <><Shift> 0..9 ## +bindsym $mod+Shift+1 move container to workspace number $ws1 +bindsym $mod+Shift+2 move container to workspace number $ws2 +bindsym $mod+Shift+3 move container to workspace number $ws3 +bindsym $mod+Shift+4 move container to workspace number $ws4 +bindsym $mod+Shift+5 move container to workspace number $ws5 +bindsym $mod+Shift+6 move container to workspace number $ws6 +bindsym $mod+Shift+7 move container to workspace number $ws7 +bindsym $mod+Shift+8 move container to workspace number $ws8 +bindsym $mod+Shift+9 move container to workspace number $ws9 +bindsym $mod+Shift+0 move container to workspace number $ws10 +## Modify // Move Window to Workspace 11 - 19// <><Ctrl><Shift> 0..9 ## +bindsym $mod+Shift+Ctrl+1 move container to workspace number $ws11 +bindsym $mod+Shift+Ctrl+2 move container to workspace number $ws12 +bindsym $mod+Shift+Ctrl+3 move container to workspace number $ws13 +bindsym $mod+Shift+Ctrl+4 move container to workspace number $ws14 +bindsym $mod+Shift+Ctrl+5 move container to workspace number $ws15 +bindsym $mod+Shift+Ctrl+6 move container to workspace number $ws16 +bindsym $mod+Shift+Ctrl+7 move container to workspace number $ws17 +bindsym $mod+Shift+Ctrl+8 move container to workspace number $ws18 +bindsym $mod+Shift+Ctrl+9 move container to workspace number $ws19 # move focused container to workspace, move to workspace -bindsym $mod+$alt+1 move container to workspace $ws1; workspace $ws1 -bindsym $mod+$alt+2 move container to workspace $ws2; workspace $ws2 -bindsym $mod+$alt+3 move container to workspace $ws3; workspace $ws3 -bindsym $mod+$alt+4 move container to workspace $ws4; workspace $ws4 -bindsym $mod+$alt+5 move container to workspace $ws5; workspace $ws5 -bindsym $mod+$alt+6 move container to workspace $ws6; workspace $ws6 -bindsym $mod+$alt+7 move container to workspace $ws7; workspace $ws7 -bindsym $mod+$alt+8 move container to workspace $ws8; workspace $ws8 -bindsym $mod+$alt+9 move container to workspace $ws9; workspace $ws9 -bindsym $mod+$alt+0 move container to workspace $ws10; workspace $ws10 -bindsym $mod+$alt+Ctrl+1 move container to workspace $ws11; workspace $ws11 -bindsym $mod+$alt+Ctrl+2 move container to workspace $ws12; workspace $ws12 -bindsym $mod+$alt+Ctrl+3 move container to workspace $ws13; workspace $ws13 -bindsym $mod+$alt+Ctrl+4 move container to workspace $ws14; workspace $ws14 -bindsym $mod+$alt+Ctrl+5 move container to workspace $ws15; workspace $ws15 -bindsym $mod+$alt+Ctrl+6 move container to workspace $ws16; workspace $ws16 -bindsym $mod+$alt+Ctrl+7 move container to workspace $ws17; workspace $ws17 -bindsym $mod+$alt+Ctrl+8 move container to workspace $ws18; workspace $ws18 -bindsym $mod+$alt+Ctrl+9 move container to workspace $ws19; workspace $ws19 - -# reload the configuration file +## Modify // Carry Window to Workspace 1 - 10// <><Alt> 0..9 ## +bindsym $mod+$alt+1 move container to workspace number $ws1; workspace number $ws1 +bindsym $mod+$alt+2 move container to workspace number $ws2; workspace number $ws2 +bindsym $mod+$alt+3 move container to workspace number $ws3; workspace number $ws3 +bindsym $mod+$alt+4 move container to workspace number $ws4; workspace number $ws4 +bindsym $mod+$alt+5 move container to workspace number $ws5; workspace number $ws5 +bindsym $mod+$alt+6 move container to workspace number $ws6; workspace number $ws6 +bindsym $mod+$alt+7 move container to workspace number $ws7; workspace number $ws7 +bindsym $mod+$alt+8 move container to workspace number $ws8; workspace number $ws8 +bindsym $mod+$alt+9 move container to workspace number $ws9; workspace number $ws9 +bindsym $mod+$alt+0 move container to workspace number $ws10; workspace number $ws10 +## Modify // Carry Window to Workspace 11 - 19 // <><Alt><Ctrl> 0..9 ## +bindsym $mod+$alt+Ctrl+1 move container to workspace number $ws11; workspace number $ws11 +bindsym $mod+$alt+Ctrl+2 move container to workspace number $ws12; workspace number $ws12 +bindsym $mod+$alt+Ctrl+3 move container to workspace number $ws13; workspace number $ws13 +bindsym $mod+$alt+Ctrl+4 move container to workspace number $ws14; workspace number $ws14 +bindsym $mod+$alt+Ctrl+5 move container to workspace number $ws15; workspace number $ws15 +bindsym $mod+$alt+Ctrl+6 move container to workspace number $ws16; workspace number $ws16 +bindsym $mod+$alt+Ctrl+7 move container to workspace number $ws17; workspace number $ws17 +bindsym $mod+$alt+Ctrl+8 move container to workspace number $ws18; workspace number $ws18 +bindsym $mod+$alt+Ctrl+9 move container to workspace number $ws19; workspace number $ws19 + +# Use Mouse+$mod to drag floating windows to their wanted position +floating_modifier $mod + +hide_edge_borders smart + +############################################################################### +# Session Management +############################################################################### + +## Session // Exit App // <Alt> q ## +bindsym $alt+q [con_id="__focused__"] kill + +## Session // Terminate App // <><Alt> q ## +bindsym $mod+$alt+q [con_id="__focused__"] exec --no-startup-id kill -9 $(xdotool getwindowfocus getwindowpid) + +## Session // Reload i3 Config // <><Shift> c ## bindsym $mod+Shift+c reload -# restart i3 inplace (preserves your layout/session, can be used to upgrade i3) -bindsym $mod+Shift+r restart +## Session // Refresh Session // <><Shift> r ## +set_from_resource $i3-wm.program.refresh_ui i3-wm.program.refresh_ui /usr/bin/regolith-look refresh +bindsym $mod+Shift+r exec --no-startup-id $i3-wm.program.refresh_ui + +## Session // Restart i3 // <><Ctrl> r ## +bindsym $mod+Ctrl+r restart + +## Session // Logout // <><Shift> e ## +set_from_resource $i3-wm.program.logout i3-wm.program.logout /usr/bin/gnome-session-quit --logout +bindsym $mod+Shift+e exec $i3-wm.program.logout + +## Session // Reboot // <><Shift> b ## +set_from_resource $i3-wm.program.reboot i3-wm.program.reboot /usr/bin/gnome-session-quit --reboot +bindsym $mod+Shift+b exec $i3-wm.program.reboot + +## Session // Power Down // <><Shift> p ## +set_from_resource $i3-wm.program.shutdown i3-wm.program.shutdown /usr/bin/gnome-session-quit --power-off +bindsym $mod+Shift+p exec $i3-wm.program.shutdown + +## Session // Lock Screen // <> Escape ## +set_from_resource $i3-wm.program.lock i3-wm.program.lock dbus-send --type=method_call --dest=org.gnome.ScreenSaver /org/gnome/ScreenSaver org.gnome.ScreenSaver.Lock +bindsym $mod+Escape exec $i3-wm.program.lock + +## Session // Sleep // <><Shift> s ## +set_from_resource $i3-wm.program.sleep i3-wm.program.sleep systemctl suspend +bindsym $mod+Shift+s exec $i3-wm.program.sleep + +############################################################################### +# System Management +############################################################################### + +## Modify // Settings // <> c ## +set_from_resource $i3-wm.program.settings i3-wm.program.settings gnome-control-center +bindsym $mod+c exec $i3-wm.program.settings + +## Modify // Display Settings // <> d ## +set_from_resource $i3-wm.program.display i3-wm.program.display gnome-control-center display +bindsym $mod+d exec $i3-wm.program.display -# Logout of session -bindsym $alt+Shift+q exec /usr/bin/gnome-session-quit --logout +## Modify // Wifi Settings // <> w ## +set_from_resource $i3-wm.program.wifi i3-wm.program.wifi gnome-control-center wifi +bindsym $mod+w exec $i3-wm.program.wifi -# Reboot computer -bindsym $mod+Shift+b exec /usr/bin/gnome-session-quit --reboot +## Modify // Bluetooth Settings // <> b ## +set_from_resource $i3-wm.program.bluetooth i3-wm.program.bluetooth gnome-control-center bluetooth +bindsym $mod+b exec $i3-wm.program.bluetooth -# Power off computer -bindsym $mod+Shift+p exec /usr/bin/gnome-session-quit --power-off +## Launch // File Browser // <><Shift> n ## +set_from_resource $i3-wm.program.files i3-wm.program.files /usr/bin/nautilus --new-window +bindsym $mod+Shift+n exec $i3-wm.program.files -# lock the screen -bindsym $mod+Escape exec gnome-screensaver-command --lock +## Launch // Notification Viewer // <> n ## +set_from_resource $i3-wm.program.notification_ui i3-wm.program.notification_ui /usr/bin/rofication-gui +bindsym $mod+n exec $i3-wm.program.notification_ui -# shortcuts for common system configuration tasks +############################################################################### +# Workspace Management +############################################################################### -# resize window (you can also use the mouse for that) +# i3-snapshot for load/save current layout +## Modify // Save Window Layout // <> , ## +bindsym $mod+comma exec /usr/bin/i3-snapshot -o > /tmp/i3-snapshot +## Modify // Load Window Layout // <> . ## +bindsym $mod+period exec /usr/bin/i3-snapshot -c < /tmp/i3-snapshot + +# Toggle bar visibility +## Modify // Toggle Bar // <> i ## +bindsym $mod+i bar mode toggle + +# Cause Settings app to float above tiled windows +floating_maximum_size -1 x -1 +for_window [class="Gnome-control-center"] floating enable + +############################################################################### +# Window Resize and Gaps +############################################################################### + +## Resize // Enter Resize Mode // <Alt> r ## mode "Resize Mode" { - # Resize small - bindsym $alt+h resize shrink width 1 px or 1 ppt - bindsym $alt+k resize grow height 1 px or 1 ppt - bindsym $alt+j resize shrink height 1 px or 1 ppt - bindsym $alt+l resize grow width 1 px or 1 ppt + # These bindings trigger as soon as you enter the resize mode + + ## Resize // Resize Window // ↑ ↓ ← → ## + bindsym Left resize shrink width 6 px or 6 ppt + bindsym Down resize grow height 6 px or 6 ppt + bindsym Up resize shrink height 6 px or 6 ppt + bindsym Right resize grow width 6 px or 6 ppt - # Resize medium + bindsym Shift+Left resize shrink width 12 px or 12 ppt + bindsym Shift+Down resize grow height 12 px or 12 ppt + bindsym Shift+Up resize shrink height 12 px or 12 ppt + bindsym Shift+Right resize grow width 12 px or 12 ppt + + ## Resize // Resize Window // k j h l ## bindsym h resize shrink width 6 px or 6 ppt bindsym k resize grow height 6 px or 6 ppt bindsym j resize shrink height 6 px or 6 ppt bindsym l resize grow width 6 px or 6 ppt - # Resize large - bindsym Shift+h resize shrink width 100 px or 12 ppt - bindsym Shift+k resize grow height 100 px or 12 ppt - bindsym Shift+j resize shrink height 100 px or 12 ppt - bindsym Shift+l resize grow width 100 px or 12 ppt + bindsym Shift+h resize shrink width 12 px or 12 ppt + bindsym Shift+k resize grow height 12 px or 12 ppt + bindsym Shift+j resize shrink height 12 px or 12 ppt + bindsym Shift+l resize grow width 12 px or 12 ppt - # Resize to 50% - bindsym Shift+minus resize set width 50 ppt - bindsym Shift+backslash resize set height 50 ppt + ## Resize // Window Gaps // + - ## + bindsym minus gaps inner current minus 6 + bindsym plus gaps inner current plus 6 + bindsym Shift+minus gaps inner current minus 12 + bindsym Shift+plus gaps inner current plus 12 - # back to normal: Enter or Escape + ## Resize // Exit Resize Mode // Escape or Enter ## bindsym Return mode "default" bindsym Escape mode "default" bindsym $alt+r mode "default" } bindsym $alt+r mode "Resize Mode" +############################################################################### +# i3 Appearance and Behavior +############################################################################### + # Disable titlebar -new_window pixel 1 -new_float pixel 1 - -# Gaps (i3-gaps) -gaps inner 15 -gaps outer 0 - -# Press $mod+Shift+g to enter the gap mode. Choose o or i for modifying outer/inner gaps. Press one of + / - (in-/decrement for current workspace) or 0 (remove gaps for current workspace). If you also press Shift with these keys, the change will be global for all workspaces. -set $mode_gaps Gaps: (o) outer, (i) inner -set $mode_gaps_outer Outer Gaps: +|-|0 (local), Shift + +|-|0 (global) -set $mode_gaps_inner Inner Gaps: +|-|0 (local), Shift + +|-|0 (global) -bindsym $mod+shift+g mode "$mode_gaps" - -mode "$mode_gaps" { - bindsym o mode "$mode_gaps_outer" - bindsym i mode "$mode_gaps_inner" - bindsym Return mode "default" - bindsym Escape mode "default" -} +set_from_resource $i3-wm.window.border.size i3-wm.window.border.size 1 +set_from_resource $i3-wm.floatingwindow.border.size i3-wm.floatingwindow.border.size 1 +default_border pixel $i3-wm.window.border.size +default_floating_border pixel $i3-wm.floatingwindow.border.size -mode "$mode_gaps_inner" { - bindsym plus gaps inner current plus 5 - bindsym minus gaps inner current minus 5 - bindsym 0 gaps inner current set 0 +# Specify the distance between windows in pixels. (i3-gaps) +set_from_resource $i3-wm.gaps.inner.size i3-wm.gaps.inner.size 5 +set_from_resource $i3-wm.gaps.outer.size i3-wm.gaps.outer.size 0 +gaps inner $i3-wm.gaps.inner.size +gaps outer $i3-wm.gaps.outer.size - bindsym Shift+plus gaps inner all plus 5 - bindsym Shift+minus gaps inner all minus 5 - bindsym Shift+0 gaps inner all set 0 +# Only enable gaps on a workspace when there is at least one container +set_from_resource $i3-wm.gaps.smart i3-wm.gaps.smart on +smart_gaps $i3-wm.gaps.smart - bindsym Return mode "default" - bindsym Escape mode "default" -} -mode "$mode_gaps_outer" { - bindsym plus gaps outer current plus 5 - bindsym minus gaps outer current minus 5 - bindsym 0 gaps outer current set 0 +# Enable popup during fullscreen +set_from_resource $i3-wm.gaps.popup_during_fullscreen i3-wm.gaps.popup_during_fullscreen smart +popup_during_fullscreen $i3-wm.gaps.popup_during_fullscreen - bindsym Shift+plus gaps outer all plus 5 - bindsym Shift+minus gaps outer all minus 5 - bindsym Shift+0 gaps outer all set 0 +# window focus follows your mouse movements as the mouse crosses window borders +set_from_resource $i3-wm.gaps.focus_follows_mouse i3-wm.gaps.focus_follows_mouse no +focus_follows_mouse $i3-wm.gaps.focus_follows_mouse - bindsym Return mode "default" - bindsym Escape mode "default" -} +############################################################################### +# i3 Colors and Fonts +############################################################################### + +# Create variables from Xresources for i3's look. set_from_resource $focused.color.border i3-wm.client.focused.color.border "#002b36" set_from_resource $focused.color.background i3-wm.client.focused.color.background "#586e75" set_from_resource $focused.color.text i3-wm.client.focused.color.text "#fdf6e3" @@ -309,12 +429,7 @@ client.focused_inactive $focused_inactive.color.border $focused_inactive.col client.unfocused $unfocused.color.border $unfocused.color.background $unfocused.color.text $unfocused.color.indicator $unfocused.color.child_border client.urgent $urgent.color.border $urgent.color.background $urgent.color.text $urgent.color.indicator $urgent.color.child_border -# Enable popup during fullscreen -popup_during_fullscreen smart - -# window focus follows your mouse movements as the mouse crosses window borders -focus_follows_mouse no - +# Create variables from Xresources for i3bars's look. set_from_resource $i3-wm.bar.background.color i3-wm.bar.background.color "#002b36" set_from_resource $i3-wm.bar.statusline.color i3-wm.bar.statusline.color "#93a1a1" set_from_resource $i3-wm.bar.separator.color i3-wm.bar.separator.color "#268bd2" @@ -335,21 +450,71 @@ set_from_resource $i3-wm.bar.workspace.urgent.border.color i3-wm.bar.workspace.u set_from_resource $i3-wm.bar.workspace.urgent.background.color i3-wm.bar.workspace.urgent.background.color "#dc322f" set_from_resource $i3-wm.bar.workspace.urgent.text.color i3-wm.bar.workspace.urgent.text.color "#fdf6e3" -set_from_resource $i3-wm.bar.font i3-wm.bar.font "pango:Source Code Pro Medium 13, FontAwesome 13" - -# Run programs when i3 starts +# Sets i3 font for dialogs +set_from_resource $i3-wm.font i3-wm.font pango:Source Code Pro Medium 13 +font $i3-wm.font + +############################################################################### +# i3 Bar +############################################################################### + +set_from_resource $i3-wm.bar.position i3-wm.bar.position bottom +set_from_resource $i3-wm.bar.font i3-wm.bar.font pango:Source Code Pro Medium 13, Material Design Icons 13 +set_from_resource $i3-wm.bar.separator i3-wm.bar.separator " " +set_from_resource $i3-wm.bar.trayoutput i3-wm.bar.trayoutput none +set_from_resource $i3-wm.bar.stripworkspacenumbers i3-wm.bar.stripworkspacenumbers yes + +# i3xrocks config file. Override this for custom status indicators on the bar. +set_from_resource $i3-wm.bar.status_command i3-wm.bar.status_command i3xrocks -u ~/.config/regolith/i3xrocks/conf.d -d /etc/regolith/i3xrocks/conf.d + +# The bar configuration +bar { + position $i3-wm.bar.position + font $i3-wm.bar.font + separator_symbol $i3-wm.bar.separator + status_command $i3-wm.bar.status_command + tray_output $i3-wm.bar.trayoutput + strip_workspace_numbers $i3-wm.bar.stripworkspacenumbers + + colors { + background $i3-wm.bar.background.color + statusline $i3-wm.bar.statusline.color + separator $i3-wm.bar.separator.color + +# BORDER BACKGROUND TEXT + focused_workspace $i3-wm.bar.workspace.focused.border.color $i3-wm.bar.workspace.focused.background.color $i3-wm.bar.workspace.focused.text.color + active_workspace $i3-wm.bar.workspace.active.border.color $i3-wm.bar.workspace.active.background.color $i3-wm.bar.workspace.active.text.color + inactive_workspace $i3-wm.bar.workspace.inactive.border.color $i3-wm.bar.workspace.inactive.background.color $i3-wm.bar.workspace.inactive.text.color + urgent_workspace $i3-wm.bar.workspace.urgent.border.color $i3-wm.bar.workspace.urgent.background.color $i3-wm.bar.workspace.urgent.text.color + } +} -# Start the composite manager -exec --no-startup-id compton -f --config $compton_config +############################################################################### +# External programs launched with i3 +############################################################################### -# Launch the shortcut Conky window on first login -exec --no-startup-id /usr/bin/regolith-ftue +# Start the installed regolith-compositor +set_from_resource $i3-wm.program.compositor i3-wm.program.compositor /usr/share/regolith-compositor/init +exec --no-startup-id $i3-wm.program.compositor -# Hide the mouse pointer if unused for a duration -exec --no-startup-id /usr/bin/unclutter -b +# Start Rofication for notifications +set_from_resource $i3-wm.program.notifications i3-wm.program.notifications /usr/bin/rofication-daemon +exec --no-startup-id $i3-wm.program.notifications -# Refresh wallpaper on screen resolution change -exec --no-startup-id /usr/bin/xeventbind resolution /usr/bin/wallpaper-refresh +# Launch first time user experience script +set_from_resource $i3-wm.program.ftui i3-wm.program.ftui /usr/bin/regolith-ftue +exec --no-startup-id $i3-wm.program.ftui -# Start polybar -exec_always --no-startup-id ~/.config/polybar/polybar.sh +# Hide the mouse pointer if unused for a duration +set_from_resource $i3-wm.program.unclutter i3-wm.program.unclutter /usr/bin/regolith-ftue /usr/bin/unclutter -b +exec --no-startup-id $i3-wm.program.unclutter + +# User programs from Xresources +# To use, define an Xresource key i3-wm.program.[1-3] with the value of the program to launch. +# See https://regolith-linux.org/docs/howto/override-xres/ for details. +set_from_resource $i3-wm.program.1 i3-wm.program.1 : +exec --no-startup-id $i3-wm.program.1 +set_from_resource $i3-wm.program.2 i3-wm.program.2 : +exec --no-startup-id $i3-wm.program.2 +set_from_resource $i3-wm.program.3 i3-wm.program.3 : +exec --no-startup-id $i3-wm.program.3 diff --git a/i3/config-old b/i3/config-old @@ -1,231 +0,0 @@ -# i3 config file (v4) -# -# Please see https://i3wm.org/docs/userguide.html for a complete reference! - -exec --no-startup-id compton --config ~/.config/compton/config -b -exec --no-startup-id /usr/lib/gnome-settings-daemon/gsd-xsettings -exec --no-startup-id gnome-flashback -exec --no-startup-id dropbox start -exec_always --no-startup-id ~/.scripts/feh-background -exec_always --no-startup-id ~/.config/polybar/polybar.sh & -exec_always --no-startup-id system76-power daemon -exec_always --no-startup-id xrandr --output LVDS-1-1 --off -exec_always --no-startup-id /usr/bin/setxkbmap -option 'caps:ctrl_modifier' -exec_always --no-startup-id /usr/bin/xcape -e 'Caps_Lock=Escape' - -set $mod Mod4 - -# Font for window titles. Will also be used by the bar unless a different font -# is used in the bar {} block below. -font pango:monospace 8 - -# This font is widely installed, provides lots of unicode glyphs, right-to-left -# text rendering and scalability on retina/hidpi displays (thanks to pango). -#font pango:DejaVu Sans Mono 8 - -# Before i3 v4.8, we used to recommend this one as the default: -# font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1 -# The font above is very space-efficient, that is, it looks good, sharp and -# clear in small sizes. However, its unicode glyph coverage is limited, the old -# X core fonts rendering does not support right-to-left and this being a bitmap -# font, it doesn’t scale on retina/hidpi displays. - -# Use Mouse+$mod to drag floating windows to their wanted position -floating_modifier $mod - -# start a terminal -bindsym $mod+Return exec --no-startup-id i3-sensible-terminal - -# kill focused window -bindsym $mod+q kill - -# start dmenu (a program launcher) -bindsym $mod+r exec --no-startup-id PATH=~/.bin:~/.scripts:$PATH dmenu_run -bindsym $mod+shift+a exec --no-startup-id i3-dmenu-desktop - -# There also is the (new) i3-dmenu-desktop which only displays applications -# shipping a .desktop file. It is a wrapper around dmenu, so you need that -# installed. -# bindsym $mod+d exec --no-startup-id i3-dmenu-desktop - -# change focus -bindsym $mod+h focus left -bindsym $mod+j focus down -bindsym $mod+k focus up -bindsym $mod+l focus right - -# alternatively, you can use the cursor keys: -bindsym $mod+Left focus left -bindsym $mod+Down focus down -bindsym $mod+Up focus up -bindsym $mod+Right focus right - -# move focused window -bindsym $mod+Shift+h move left -bindsym $mod+Shift+j move down -bindsym $mod+Shift+k move up -bindsym $mod+Shift+l move right - -# alternatively, you can use the cursor keys: -bindsym $mod+Shift+Left move left -bindsym $mod+Shift+Down move down -bindsym $mod+Shift+Up move up -bindsym $mod+Shift+Right move right - -# split in horizontal orientation -bindsym Mod1+h split h - -# split in vertical orientation -bindsym Mod1+v split v - -# enter fullscreen mode for the focused container -bindsym $mod+z fullscreen toggle - -# change container layout (stacked, tabbed, toggle split) -bindsym $mod+w layout tabbed -bindsym $mod+e layout stacking -bindsym $mod+s layout default - -# 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 - -# focus the child container -#bindsym $mod+d focus child - -# Define names for default workspaces for which we configure key bindings later on. -# We use variables to avoid repeating the names in multiple places. -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+2 workspace $ws2 -bindsym $mod+3 workspace $ws3 -bindsym $mod+4 workspace $ws4 -bindsym $mod+5 workspace $ws5 -bindsym $mod+6 workspace $ws6 -bindsym $mod+7 workspace $ws7 -bindsym $mod+8 workspace $ws8 -bindsym $mod+9 workspace $ws9 -bindsym $mod+0 workspace $ws10 - -# move focused container to workspace -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 $mod+Shift+6 move container to workspace $ws6 -bindsym $mod+Shift+7 move container to workspace $ws7 -bindsym $mod+Shift+8 move container to workspace $ws8 -bindsym $mod+Shift+9 move container to workspace $ws9 -bindsym $mod+Shift+0 move container to workspace $ws10 - -# reload the configuration file -bindsym $mod+Shift+c reload -# restart i3 inplace (preserves your layout/session, can be used to upgrade i3) -bindsym $mod+Shift+r restart -# exit i3 (logs you out of your X session) -bindsym $mod+Shift+q exec --no-startup-id "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'" - -# resize window (you can also use the mouse for that) -mode "resize" -{ - # These bindings trigger as soon as you enter the resize mode - - # Pressing left will shrink the window’s width. - # Pressing right will grow the window’s width. - # Pressing up will shrink the window’s height. - # Pressing down will grow the window’s height. - bindsym h resize shrink width 5 px or 5 ppt - bindsym j resize grow height 5 px or 5 ppt - bindsym k resize shrink height 5 px or 5 ppt - bindsym l resize grow width 5 px or 5 ppt - bindsym Shift+h resize shrink width 1 px or 1 ppt - bindsym Shift+j resize grow height 1 px or 1 ppt - bindsym Shift+k resize shrink height 1 px or 1 ppt - bindsym Shift+l resize grow width 1 px or 1 ppt - # - # back to normal: Enter or Escape or $mod+r - bindsym Return mode "default" - bindsym Escape mode "default" -} - -bindsym Mod1+r mode "resize" - -new_window pixel 0 -for_window [class=".*"] border pixel 1 - -gaps inner 15 -gaps outer 0 -#smart_gaps on -#smart_borders on - -bindsym $mod+Mod1+XF86Eject exec i3lock -i ~/Pictures/Backgrounds/dark-lock.jpg - -# Press $mod+Shift+g to enter the gap mode. Choose o or i for modifying outer/inner gaps. Press one of + / - (in-/decrement for current workspace) or 0 (remove gaps for current workspace). If you also press Shift with these keys, the change will be global for all workspaces. -set $mode_gaps Gaps: (o) outer, (i) inner -set $mode_gaps_outer Outer Gaps: +|-|0 (local), Shift + +|-|0 (global) -set $mode_gaps_inner Inner Gaps: +|-|0 (local), Shift + +|-|0 (global) -bindsym Mod1+g mode "$mode_gaps" - -mode "$mode_gaps" { - bindsym o mode "$mode_gaps_outer" - bindsym i mode "$mode_gaps_inner" - bindsym Return mode "default" - bindsym Escape mode "default" -} - -mode "$mode_gaps_inner" { - bindsym plus gaps inner current plus 5 - bindsym minus gaps inner current minus 5 - bindsym 0 gaps inner current set 0 - - bindsym Shift+plus gaps inner all plus 5 - bindsym Shift+minus gaps inner all minus 5 - bindsym Shift+0 gaps inner all set 0 - - bindsym Return mode "default" - bindsym Escape mode "default" -} -mode "$mode_gaps_outer" { - bindsym plus gaps outer current plus 5 - bindsym minus gaps outer current minus 5 - bindsym 0 gaps outer current set 0 - - bindsym Shift+plus gaps outer all plus 5 - bindsym Shift+minus gaps outer all minus 5 - bindsym Shift+0 gaps outer all set 0 - - bindsym Return mode "default" - bindsym Escape mode "default" -} -# Pulse Audio controls -#bindsym XF86AudioRaiseVolume exec --no-startup-id /home/zeroalpha/.dotfiles/scripts/pactl-volume up -# bindsym XF86AudioLowerVolume exec --no-startup-id /home/zeroalpha/.dotfiles/scripts/pactl-volume down -# bindsym XF86AudioMute exec --no-startup-id /home/zeroalpha/.dotfiles/scripts/pactl-volume mute - -# Sreen brightness controls -# bindsym XF86MonBrightnessUp exec --no-startup-id /home/zeroalpha/.dotfiles/scripts/xrandr-brightness up -# bindsym XF86MonBrightnessDown exec --no-startup-id /home/zeroalpha/.dotfiles/scripts/xrandr-brightness down -# bindsym Shift+XF86MonBrightnessUp exec --no-startup-id /home/zeroalpha/.dotfiles/scripts/xrandr-brightness up 0.1 -# bindsym Shift+XF86MonBrightnessDown exec --no-startup-id /home/zeroalpha/.dotfiles/scripts/xrandr-brightness down 0.1 -# Media player controls -# bindsym XF86AudioPlay exec playerctl play -# bindsym XF86AudioPause exec playerctl pause -# bindsym XF86AudioNext exec playerctl next -# bindsym XF86AudioPrev exec playerctl previous