Commit b93a6930 authored by Jay Ta'ala's avatar Jay Ta'ala
Browse files

Refactor to make it easier to set theme colors (which can be referenced globally).

parent 73c48eba
# i3 config file (v4)
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
# SETTERS
# MISC. SETTERS
# Set mod key (Mod1=<Alt>, Mod4=<Super>)
set $mod Mod4
set $border_no_name border pixel 5
set $border_normal border normal 5
set $con_title focus parent; title_format "<span foreground='pink'><b> 📦 %title</b></span>"; focus child; title_format " %title"
set $con_title focus parent; title_format "<span foreground='#ff8c85'><b> 📦 %title</b></span>"; focus child; title_format " %title"
# Theme colors
# set variable for main accent color
set $acolor #eb564d
# set other colors
set $bdrcolor #4d4949
set $bgicolor #373737
set $bgucolor #6a6868
set $txtacolor #F9FAF9
set $txtucolor #bdbbbb
set $indcolor #00ff00
# set default desktop layout (default is tiling) <stacking|tabbed>
workspace_layout tabbed
......@@ -170,7 +181,7 @@ bindsym $mod+a focus parent
bindsym $mod+Shift+a focus child
# dynamic renaming of parent container
bindsym $mod+slash exec "answer=$(zenity --title=\\"i3-msg title_format\\" --text \\"Change %TITLE for parent container\\" --entry); if [ -n \\"$answer\\" ]; then i3-msg focus parent, title_format \\"<span foreground='pink'><b> 📦 $answer</b></span>\\", focus child; else i3-msg focus parent, title_format \\"<span foreground='pink'><b> 📦 %title</b></span>\\", focus child; fi"
bindsym $mod+slash exec "answer=$(zenity --title=\\"i3-msg title_format\\" --text \\"Change %TITLE for parent container\\" --entry); if [ -n \\"$answer\\" ]; then i3-msg focus parent, title_format \\"<span foreground='#ff8c85'><b> 📦 $answer</b></span>\\", focus child; else i3-msg focus parent, title_format \\"<span foreground='#ff8c85'><b> 📦 %title</b></span>\\", focus child; fi"
# move the currently focused window to the scratchpad
bindsym $mod+Shift+minus move scratchpad
......@@ -400,9 +411,6 @@ set_from_resource $term_color13 color13
set_from_resource $term_color14 color14
set_from_resource $term_color15 color15
# set variable for main accent color
set $acolour #eb564d
# Start i3bar to display a workspace bar (plus the system information i3status if available)
bar {
i3bar_command i3bar
......@@ -424,27 +432,19 @@ bar {
separator #454947
# border backgr. text
focused_workspace #F9FAF9 $acolour #F9FAF9
focused_workspace #F9FAF9 $acolor #F9FAF9
active_workspace #595B5B #353836 #FDF6E3
inactive_workspace #595B5B #283339 #EEE8D5
binding_mode $acolour #2C2C2C #F9FAF9
urgent_workspace $acolour #FDF6E3 #E5201D
binding_mode $acolor #2C2C2C #F9FAF9
urgent_workspace $acolor #FDF6E3 #E5201D
}
}
# hide/unhide i3status bar
bindsym $mod+m bar mode toggle
# Theme colors
set $bdrcolor #4d4949
set $bgicolor #373737
set $bgucolor #6a6868
set $txtacolor #F9FAF9
set $txtucolor #bdbbbb
set $indcolor #00ff00
# class border backgr. text indic. child_border
client.focused $bdrcolor $acolour $txtacolor $indcolor
client.focused $bdrcolor $acolor $txtacolor $indcolor
client.focused_inactive $bdrcolor $bgicolor $txtacolor $indcolor
client.unfocused $bdrcolor $bgucolor $txtucolor $indcolor
client.urgent #CB4B16 #FDF6E3 #CB4B16 $indcolor
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment