Update i3 and bash configs for quick-switching to next empty workspace

This commit is contained in:
Shaun Reed 2019-09-28 03:34:39 -04:00
parent 4719c9633d
commit 4a888c7671
2 changed files with 8 additions and 1 deletions

View File

@ -22,6 +22,7 @@ export EDITOR='/usr/bin/vim'
export VISUAL='/usr/bin/vim' export VISUAL='/usr/bin/vim'
export TERMINAL='urxvt -e tmux -u' export TERMINAL='urxvt -e tmux -u'
export PROMPT_COMMAND="$TMUX_GITBAR_DIR/update-gitbar; $PROMPT_COMMAND" export PROMPT_COMMAND="$TMUX_GITBAR_DIR/update-gitbar; $PROMPT_COMMAND"
export PATH=$PATH":$HOME/.local/bin/i3scripts"
if command -v tmux &> /dev/null && [ -n "$PS1" ] && [[ ! "$TERM" =~ screen ]] && [[ ! "$TERM" =~ tmux ]] && [ -z "$TMUX" ]; then if command -v tmux &> /dev/null && [ -n "$PS1" ] && [[ ! "$TERM" =~ screen ]] && [[ ! "$TERM" =~ tmux ]] && [ -z "$TMUX" ]; then
exec tmux exec tmux

View File

@ -1,6 +1,10 @@
# i3 config file (v4) # i3 config file (v4)
# Please see http://i3wm.org/docs/userguide.html for a complete reference! # Please see http://i3wm.org/docs/userguide.html for a complete reference!
# Move to a new empty workspace
#bindsym $mod+Ctrl+Left exec --no-startup-id i3empty.py prev
bindsym $mod+Shift+z exec --no-startup-id $HOME/.local/bin/i3scripts/i3empty.py
# Set mod key (Mod1=<Alt>, Mod4=<Super>) # Set mod key (Mod1=<Alt>, Mod4=<Super>)
set $mod Mod4 set $mod Mod4
@ -267,6 +271,8 @@ mode "$mode_gaps_outer" {
# start a terminal # start a terminal
# Uses $TERMINAL environment setting # Uses $TERMINAL environment setting
bindsym $mod+Return exec terminal bindsym $mod+Return exec terminal
# Open dropdown terminal using tilix quake mode
bindsym $mod+a exec tilix -q
# Firefox # Firefox
bindsym $mod+F2 exec firefox bindsym $mod+F2 exec firefox
@ -456,7 +462,7 @@ bindsym $mod+space focus mode_toggle
# toggle sticky # toggle sticky
bindsym $mod+Shift+s sticky toggle bindsym $mod+Shift+s sticky toggle
# focus the parent container # focus the parent container
bindsym $mod+a focus parent #bindsym $mod+a focus parent
# System keybinds # System keybinds
########################################### ###########################################