better focus_workspace (handle multi-output), better bar color
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1 +1 @@
|
||||
run/previous
|
||||
run/previous_*
|
||||
|
||||
@@ -10,8 +10,9 @@ fi
|
||||
|
||||
# Get current workspace
|
||||
CURRENT_WORKSPACE=$(i3-msg -t get_workspaces | jq '.[] | select(.focused==true).num')
|
||||
PREVIOUS_WORKSPACE=$(cat ~/.config/i3/run/previous)
|
||||
echo -n ${CURRENT_WORKSPACE} > ~/.config/i3/run/previous
|
||||
CURRENT_OUTPUT=$(i3-msg -t get_workspaces | jq '.[] | select(.focused==true).output')
|
||||
PREVIOUS_WORKSPACE=$(cat ~/.config/i3/run/previous_${CURRENT_OUTPUT})
|
||||
echo -n ${CURRENT_WORKSPACE} > ~/.config/i3/run/previous_${CURRENT_OUTPUT}
|
||||
|
||||
if [ $1 == "previous" ]; then
|
||||
i3-msg "workspace number ${PREVIOUS_WORKSPACE}"
|
||||
|
||||
8
config
8
config
@@ -21,7 +21,6 @@ exec --no-startup-id "nm-applet > /dev/null 2>&1"
|
||||
exec --no-startup-id "pasystray > /dev/null 2>&1"
|
||||
exec --no-startup-id "blueman-applet > /dev/null 2>&1"
|
||||
exec --no-startup-id "compton > /dev/null 2>&1"
|
||||
exec --no-startup-id "compton > /dev/null 2>&1"
|
||||
exec --no-startup-id "xss-lock slock"
|
||||
|
||||
############
|
||||
@@ -42,6 +41,7 @@ bindsym $mod+F3 exec ~/.scripts/generate-rofi-ssh && rofi -lines
|
||||
bindsym $mod+j exec ~/.config/i3/bin/menu_workspace_switch
|
||||
# change container layout (tabbed, toggle split)
|
||||
bindsym $mod+space layout toggle tabbed splith
|
||||
bindsym $mod+f fullscreen toggle
|
||||
# Change window focus
|
||||
bindsym $mod+Tab focus next
|
||||
bindsym $mod+Shift+Tab focus prev
|
||||
@@ -88,4 +88,10 @@ bar {
|
||||
position top
|
||||
separator_symbol " ⁞ "
|
||||
tray_output HDMI-1
|
||||
colors {
|
||||
focused_workspace #ffffff #ffffff #000000
|
||||
active_workspace #ffffff #ffffff #000000
|
||||
inactive_workspace #000000 #000000 #ffffff
|
||||
urgent_workspace #ff0000 #ff0000 #ffffff
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user