i3 color from .Xresources, firefox default browser, border for terminal window, fix for new i3lock-color version

clean_emacs
Tuan-Dat Tran 2018-05-20 19:38:00 +02:00
parent dfea422cfc
commit c12494cdb4
No known key found for this signature in database
GPG Key ID: 0DA1B0B23302CA72
4 changed files with 34 additions and 59 deletions

View File

@ -90,7 +90,7 @@ for_window [class="Thus"] floating enable border normal
for_window [class="Timeset-gui"] floating enable border normal for_window [class="Timeset-gui"] floating enable border normal
for_window [class="(?i)virtualbox"] floating enable border normal for_window [class="(?i)virtualbox"] floating enable border normal
for_window [title="KeePassX$"] floating enable border normal for_window [title="KeePassX$"] floating enable border normal
for_window [title="(?i)termite"] border pixel 3
# switch to workspace with urgent window automatically # switch to workspace with urgent window automatically
for_window [urgent=latest] focus for_window [urgent=latest] focus
@ -153,7 +153,7 @@ bindsym XF86AudioPlay exec "if [ `cat /home/$USER/.scripts/playstate` = 0 ]; the
bindsym XF86AudioStop exec "playerctl stop && echo '0'>/home/$USER/.scripts/playstate" bindsym XF86AudioStop exec "playerctl stop && echo '0'>/home/$USER/.scripts/playstate"
# Application Shortcuts # Application Shortcuts
bindsym $mod+b exec env GTK_THEME=Materia:light waterfox bindsym $mod+b exec firefox
bindsym $mod+e exec source ~/.zshrc && termite -e 'ranger' bindsym $mod+e exec source ~/.zshrc && termite -e 'ranger'
bindsym $mod+m exec thunderbird bindsym $mod+m exec thunderbird
@ -236,58 +236,34 @@ bindsym $mod+0 exec --no-startup-id "python ~/.scripts/i3lock.py"
# to: # to:
# background $term_background # background $term_background
# Same logic applied to everything else. # Same logic applied to everything else.
# set_from_resource $term_background background set_from_resource $term_background background
# set_from_resource $term_foreground foreground set_from_resource $term_foreground foreground
# set_from_resource $term_color0 color0 set_from_resource $term_color0 color0
# set_from_resource $term_color1 color1 set_from_resource $term_color1 color1
# set_from_resource $term_color2 color2 set_from_resource $term_color2 color2
# set_from_resource $term_color3 color3 set_from_resource $term_color3 color3
# set_from_resource $term_color4 color4 set_from_resource $term_color4 color4
# set_from_resource $term_color5 color5 set_from_resource $term_color5 color5
# set_from_resource $term_color6 color6 set_from_resource $term_color6 color6
# set_from_resource $term_color7 color7 set_from_resource $term_color7 color7
# set_from_resource $term_color8 color8 set_from_resource $term_color8 color8
# set_from_resource $term_color9 color9 set_from_resource $term_color9 color9
# set_from_resource $term_color10 color10 set_from_resource $term_color10 color10
# set_from_resource $term_color11 color11 set_from_resource $term_color11 color11
# set_from_resource $term_color12 color12 set_from_resource $term_color12 color12
# set_from_resource $term_color13 color13 set_from_resource $term_color13 color13
# set_from_resource $term_color14 color14 set_from_resource $term_color14 color14
# set_from_resource $term_color15 color15 set_from_resource $term_color15 color15
# Color palette used for i3
# Variables are set based on the documentation:
# https://i3wm.org/dovs/userguide.html#variables
# Changing the value of one of the variables will
# effect all the areas with the same color.
set $i3_color1 #f9faf9
set $i3_color2 #595b5b
set $i3_color3 #353836
set $i3_color4 #16a085
set $i3_color5 #fdf6e3
set $i3_color6 #eee8d5
set $i3_color7 #e5201d
set $i3_color8 #808380
set $i3_color9 #434745
set $i3_color10 #454948
set $i3_color11 #80fff9
set $i3_color12 #fdf6e3
set $i3_color13 #cb4b16
set $i3_color14 #268bd2
set $i3_color15 #000000
set $i3_color16 #ffffff
set $i3_color17 #0c0c0c
# Theme colors # Theme colors
# class border backgr. text indic. child_border # class backgr. border text indic. child_border
client.focused $i3_color4 $i3_color8 $i3_color11 $i3_color12 client.focused $term_color4 $term_color4 $term_color15 $term_color12
client.focused_inactive $i3_color9 $i3_color9 $i3_color4 $i3_color10 client.focused_inactive $term_color8 $term_color8 $term_color15 $term_color10
client.unfocused $i3_color9 $i3_color9 $i3_color4 $i3_color10 client.unfocused $term_color8 $term_color8 $term_color15 $term_color10
client.urgent $i3_color13 $i3_color12 $i3_color4 $i3_color14 client.urgent $term_color13 $term_color12 $term_color15 $term_color14
client.placeholder $i3_color15 $i3_color17 $i3_color16 $i3_color15 $i3_color17 client.placeholder $term_color15 $term_color15 $term_color15 $term_color15
client.background $i3_color10 client.background $term_color10
############################# #############################
### settings for i3-gaps: ### ### settings for i3-gaps: ###

View File

@ -1,6 +1,6 @@
[colors] [colors]
background = ${xrdb:color0:#223} background = ${xrdb:color0:#22300}
background-alt = ${xrdb:color8:#fa4} background-alt = ${xrdb:color8:#fa400}
foreground = ${xrdb:color7:#cdd} foreground = ${xrdb:color7:#cdd}
foreground-alt = ${xrdb:color15:#eef} foreground-alt = ${xrdb:color15:#eef}
black = ${xrdb:color0:#233} black = ${xrdb:color0:#233}

View File

@ -49,7 +49,7 @@ def lock_config():
# clock pos # clock pos
clock_x = left_margin clock_x = left_margin
clock_y = int(res_y * (83 / 100)) clock_y = int(res_y * (90 / 100))
date_x = left_margin date_x = left_margin
date_y = clock_y + default_fontsize date_y = clock_y + default_fontsize
@ -98,11 +98,10 @@ def lock_config():
# Wrong Text # Wrong Text
lock_wrong_text = '--wrongtext="Noope"' lock_wrong_text = '--wrongtext="Noope"'
# Text Size # Text Size
lock_text_size = '--textsize=20' # lock_text_size = '--textsize=20'
# Ring Position # Ring Position
lock_texts = '{} {} {}'.format(lock_right_text, lock_wrong_text, lock_texts = '{} {}'.format(lock_right_text, lock_wrong_text)
lock_text_size) lock_pos = '--indpos={}:{}'.format(int(clock_x)+370, int(clock_y))
lock_pos = '--indpos={}:{}'.format(int(clock_x)+380, int(clock_y+90))
# Ring size # Ring size
ring_size = 40 ring_size = 40
lock_radius = '--radius {}'.format(ring_size) lock_radius = '--radius {}'.format(ring_size)

View File

@ -88,7 +88,7 @@ Powerline for Emacs
'((".*" . "~/.emacs-saves/"))) '((".*" . "~/.emacs-saves/")))
(setq auto-save-file-name-transforms (setq auto-save-file-name-transforms
'((".*" "~/.emacs-saves/" t))) '((".*" "~/.emacs-saves/" t)))
(setq custom-file "~/.emacs.d/config.el")
#+END_SRC #+END_SRC
* Functions * Functions