Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Jay Ta'ala
jt-config-repo
Commits
b93a6930
Commit
b93a6930
authored
Feb 17, 2019
by
Jay Ta'ala
Browse files
Refactor to make it easier to set theme colors (which can be referenced globally).
parent
73c48eba
Changes
1
Show whitespace changes
Inline
Side-by-side
i3/config
View file @
b93a6930
# 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 $acolo
u
r #F9FAF9
focused_workspace #F9FAF9 $acolor #F9FAF9
active_workspace #595B5B #353836 #FDF6E3
inactive_workspace #595B5B #283339 #EEE8D5
binding_mode $acolo
u
r #2C2C2C #F9FAF9
urgent_workspace $acolo
u
r #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 $acolo
u
r $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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment