dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit eb799678084cc262526b1996b5c3ba67c11b5409
parent 3eb0c4d44ff488447194d6937f5842e3ab00fd2a
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Mon,  4 Mar 2019 18:56:59 +0100

Generalize color configuration

Diffstat:
Mlinks/.Xresources | 1-
Dlinks/.colors/LICENSE.md | 24------------------------
Mlinks/.config/i3/config | 41++++++++++++++++++++++++-----------------
Mlinks/bin/colortheme | 2++
4 files changed, 26 insertions(+), 42 deletions(-)

diff --git a/links/.Xresources b/links/.Xresources @@ -6,7 +6,6 @@ Xcursor.size: 16 ! see https://ciembor.github.io/4bit !TomorrowNight - *.foreground: #c5c8c6 !*.background: #1d1f21 *.background: #000000 diff --git a/links/.colors/LICENSE.md b/links/.colors/LICENSE.md @@ -1,24 +0,0 @@ -# LICENSE - -Base16 Builder is released under the MIT License: - -> Copyright (C) 2013 [Chris Kempson](http://chriskempson.com) -> -> Permission is hereby granted, free of charge, to any person obtaining -> a copy of this software and associated documentation files (the -> "Software"), to deal in the Software without restriction, including -> without limitation the rights to use, copy, modify, merge, publish, -> distribute, sublicense, and/or sell copies of the Software, and to -> permit persons to whom the Software is furnished to do so, subject to -> the following conditions: -> -> The above copyright notice and this permission notice shall be -> included in all copies or substantial portions of the Software. -> -> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -> EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -> MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -> NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -> LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -> OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -> WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/links/.config/i3/config b/links/.config/i3/config @@ -1,4 +1,4 @@ -for_window [class="^.*"] border pixel 2 +for_window [class="^.*"] border pixel 4 set $gaps_inner 15 set $gaps_outer 10 @@ -75,12 +75,20 @@ set_from_resource $darkwhite color7 #000000 set_from_resource $white color15 #000000 set $transparent #00000000 -# color class border backgr. text indicator -client.focused $red $red $magenta $darkmagenta $darkblue -client.unfocused $transparent $blue $white $darkblue $darkblack -client.focused_inactive $transparent $blue $white $darkblue $darkblack -client.urgent $darkred $darkred $black $darkred $darkred -client.background $black +set_from_resource $c_active color12 +set_from_resource $c_active_txt color15 +set_from_resource $c_inactive color0 +set_from_resource $c_inactive_txt color15 +set_from_resource $c_urgent color9 +set_from_resource $c_urgent_txt color8 +set_from_resource $background color0 + +# colorclass border backgr. text indicator child_border +client.focused $c_active $c_active $c_active_txt $darkblue $darkblue +client.unfocused $c_inactive $c_inactive $white $blue $c_inactive +client.focused_inactive $c_inactive $c_inactive $white $c_inactive $c_inactive +client.urgent $c_urgent $c_urgent $c_urgent_txt $c_urgent $c_urgent +client.background $background # Use Mouse+$mod to drag floating windows to their wanted position floating_modifier $mod @@ -160,7 +168,7 @@ bindsym $mod+Control+Shift+s exec --no-startup-id mpc stop && pkill -RTMIN+14 i3 # screen capture bindsym Print exec --no-startup-id maim ~/tmp/pic-full-"$(date '+%y%m%d-%H%M-%S').png" bindsym Shift+Print exec --no-startup-id maimpick -bindsym $mod+Scroll_Lock exec --no-startup-id "killall screenkey || screenkey --font-color red" +bindsym $mod+Scroll_Lock exec --no-startup-id "killall screenkey || screenkey --position bottom --font-size small --no-systray --font PragmataPro" # move focused window bindsym $mod+Shift+h move left @@ -227,20 +235,20 @@ bindsym $mod+Shift+o exec --no-startup-id i3resize right bar { status_command i3blocks -c ~/.config/i3/i3blocks position top - mode dock + mode dock # dock or hide workspace_buttons yes colors { - background $darkblack + background $background statusline $darkwhite - separator $cyan + separator $black - # colorclass <border> <backgr.> <text> - focused_workspace $blue $darkblue $darkblack - active_workspace $darkblue $darkblack $darkwhite - inactive_workspace $darkblack $darkblack $white - urgent_workspace $darkblack $darkred $darkblack + # colorclass <border> <backgr.> <text> + focused_workspace $c_active $c_active $c_active_txt + active_workspace $c_inactive $c_inactive $c_inactive_txt + inactive_workspace $c_inactive $c_inactive $c_inactive_txt + urgent_workspace $c_urgent $c_urgent $c_urgent_txt } } @@ -248,5 +256,4 @@ bar { exec --no-startup-id unclutter exec --no-startup-id dunst exec --no-startup-id compton -exec --no-startup-id calcurse --daemon exec --no-startup-id calcurse_reminders.py 15 diff --git a/links/bin/colortheme b/links/bin/colortheme @@ -36,6 +36,8 @@ function set_colors { ! [ -f $path ] && die "Error: Could not find $path" echo "setting $path" + + xrdb -merge ~/.Xresources }