Update bindings for new workspaces, add new symbols and formatting for polybar
This commit is contained in:
parent
1dbb92675b
commit
f728388d52
|
@ -92,5 +92,5 @@ if [ -n "$current" ] && [ -n "$forecast" ]; then
|
|||
daytime=" $(get_duration "$((sun_rise-now))")" # Unknown
|
||||
fi
|
||||
|
||||
echo "$(get_icon "$current_icon") $current_temp$SYMBOL $trend $(get_icon "$forecast_icon") $forecast_temp$SYMBOL $daytime"
|
||||
echo "$(get_icon "$current_icon") $current_temp$SYMBOL $trend $(get_icon "$forecast_icon") $forecast_temp$SYMBOL $daytime"
|
||||
fi
|
||||
|
|
|
@ -30,10 +30,27 @@ font xft:URWGothic-Book 11
|
|||
### Workspace Settings ######################################
|
||||
################################################################
|
||||
|
||||
# Set workspace monitor startup location
|
||||
#workspace 2 output HDMI-1
|
||||
#workspace 3 output DP-2
|
||||
|
||||
# To add a workspace, just create a bind below
|
||||
# Workspace binds
|
||||
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
|
||||
|
||||
# Workspace names
|
||||
# to display names or symbols instead of plain workspace numbers you can use
|
||||
# something like: set $ws1 1:mail
|
||||
# set $ws2 2:
|
||||
# The symbols in this file will be overwritten if using Polybar.
|
||||
# Refer to polybar i3 module documentation to add workspace symbols
|
||||
set $ws1 1
|
||||
set $ws2 2
|
||||
set $ws3 3
|
||||
|
@ -43,18 +60,65 @@ set $ws6 6
|
|||
set $ws7 7
|
||||
set $ws8 8
|
||||
|
||||
# Set workspace monitor startup location
|
||||
workspace 2 output HDMI-1
|
||||
workspace 3 output DP-2
|
||||
# Custom named workspaces for keeping frequently used apps
|
||||
# Numbers overwritten by Polybar i3 module config
|
||||
set $ws99 99
|
||||
set $ws98 98
|
||||
set $ws97 97
|
||||
set $ws96 96
|
||||
set $ws95 95
|
||||
|
||||
# Custom named workspace keybinds
|
||||
# To get keysymbols, run 'xmodmap -pke'
|
||||
bindsym $mod+backslash workspace number $ws99 # Chat
|
||||
bindsym $mod+bracketright workspace number $ws98 # Mail
|
||||
bindsym $mod+apostrophe workspace number $ws97 # Sec
|
||||
bindsym $mod+slash workspace number $ws96 # Web
|
||||
bindsym $mod+period workspace number $ws95 # Terminal
|
||||
|
||||
# Open applications on specific workspaces
|
||||
assign [class="Bitwarden"] 1
|
||||
assign [class="Discord"] 1
|
||||
assign [class="Firefox"] 2
|
||||
assign [class="Geary"] 3
|
||||
assign [class="Signal"] 8
|
||||
#assign [class="Signal"] $ws99
|
||||
#assign [class="Discord"] $ws99
|
||||
#assign [class="Geary"] $ws98
|
||||
#assign [class="Bitwarden"] $ws97
|
||||
#assign [class="Firefox"] $ws96
|
||||
exec --no-startup-id i3-msg 'exec geary'
|
||||
for_window [class="Geary"] move to workspace number $ws98
|
||||
for_window [class="Geary"] floating enable
|
||||
for_window [class="Geary"] resize set width 500
|
||||
for_window [class="Geary"] move position center
|
||||
|
||||
################################################################
|
||||
exec --no-startup-id i3-msg 'exec signal-desktop'
|
||||
assign [class="Signal"] $ws99
|
||||
|
||||
exec --no-startup-id i3-msg 'exec discord'
|
||||
assign [class="discord"] $ws99
|
||||
|
||||
exec --no-startup-id i3-msg 'exec bitwarden'
|
||||
for_window [class="Bitwarden"] move to workspace number $ws97
|
||||
for_window [class="Bitwarden"] floating enable
|
||||
for_window [class="Bitwarden"] resize set width 1000
|
||||
for_window [class="Bitwarden"] resize set height 700
|
||||
for_window [class="Bitwarden"] move position center
|
||||
|
||||
# 'xprop' and click the window to get window information output to terminal
|
||||
exec --no-startup-id i3-msg 'exec firefox'
|
||||
for_window [class="Firefox"] move to workspace number $ws96
|
||||
|
||||
# Passing -n to urxvt forces Xorg to default the WM_NAME to tmux
|
||||
# Only this instance of urxvt will have that WM_NAME
|
||||
# Prevents for_window from acting on new terminals
|
||||
exec_always --no-startup-id i3-msg 'exec urxvt -n sterm -e tmux -u'
|
||||
for_window [title="tmux"] move to workspace number $ws95
|
||||
for_window [title="tmux"] floating enable
|
||||
for_window [title="tmux"] resize set height 700
|
||||
for_window [title="tmux"] resize set width 1000
|
||||
for_window [title="tmux"] move position center
|
||||
|
||||
# Enable popup calendar floating window for polybar
|
||||
for_window [class="Yad"] floating enable
|
||||
|
||||
###############################################################
|
||||
### Window / App Settings ######################################
|
||||
################################################################
|
||||
|
||||
|
@ -99,11 +163,11 @@ for_window [urgent=latest] focus
|
|||
# Initialize display settings
|
||||
exec --no-startup-id autorandr.sh --change --default ~/.autorandr/kapp/config
|
||||
# Startup apps
|
||||
exec --no-startup-id signal-desktop
|
||||
exec --no-startup-id discord
|
||||
exec --no-startup-id geary
|
||||
exec --no-startup-id bitwarden
|
||||
exec --no-startup-id firefox
|
||||
#exec --no-startup-id signal-desktop
|
||||
#exec --no-startup-id discord
|
||||
#exec --no-startup-id geary
|
||||
#exec --no-startup-id bitwarden
|
||||
#exec --no-startup-id firefox
|
||||
# i3 default execs
|
||||
exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
|
||||
exec --no-startup-id nitrogen --restore; sleep 1; compton -b
|
||||
|
@ -365,15 +429,6 @@ bindsym $mod+u border none
|
|||
bindsym $mod+y border pixel 1
|
||||
bindsym $mod+n border normal
|
||||
|
||||
# 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
|
||||
# Move focused container to workspace
|
||||
bindsym $mod+Ctrl+1 move container to workspace $ws1
|
||||
bindsym $mod+Ctrl+2 move container to workspace $ws2
|
||||
|
|
|
@ -456,6 +456,8 @@ format = <label-state> <label-mode>
|
|||
label-mode = %mode%
|
||||
label-mode-padding = 2
|
||||
label-mode-background = #e60053
|
||||
|
||||
|
||||
; ws-icon-[0-9]+ = label;icon
|
||||
; NOTE: The label needs to match the name of the i3 workspace
|
||||
ws-icon-0 = 1;
|
||||
|
@ -467,7 +469,12 @@ ws-icon-5 = 6;
|
|||
ws-icon-6 = 7;
|
||||
ws-icon-7 = 8;
|
||||
ws-icon-8 = 9;
|
||||
;ws-icon-default =
|
||||
ws-icon-9 = 99;
|
||||
ws-icon-10 = 98;
|
||||
ws-icon-11 = 97;
|
||||
ws-icon-12 = 96;爵
|
||||
ws-icon-13 = 95;
|
||||
ws-icon-default =
|
||||
; NOTE: You cannot skip icons, e.g. to get a ws-icon-6
|
||||
; you must also define a ws-icon-5.
|
||||
; NOTE: Icon will be available as the %icon% token inside label-*
|
||||
|
|
Loading…
Reference in New Issue