added polybar config as wpg template

This commit is contained in:
Harri Lahtinen 2019-01-05 19:17:16 +02:00
parent 0c77e18ce9
commit 792bf963ab
6 changed files with 24 additions and 21 deletions

View File

@ -81,14 +81,14 @@ exec_always --no-startup-id ~/.config/polybar/launch.sh
#exec --no-startup-id python ~/.config/Scripts/offlineimap-daemon.py #exec --no-startup-id python ~/.config/Scripts/offlineimap-daemon.py
#Start udiskie #Start udiskie
exec --no-startup-id udiskie & exec --no-startup-id udiskie &
#Start wal #Restore wpg
exec --no-startup-id wal -R & exec --no-startup-id ~/.config/wpg/wp-init.sh
#Add wallpaper: #Add wallpaper:
exec --no-startup-id systemctl --user start wallpaper.service exec --no-startup-id systemctl --user start wallpaper.service
#Unclutter makes the mouse invisible after a brief period #Unclutter makes the mouse invisible after a brief period
exec --no-startup-id unclutter exec --no-startup-id unclutter
# set desktop background with custom effect # set desktop background with custom effect
bindsym $mod+Shift+x exec betterlockscreen -l dim bindsym $mod+Shift+g exec betterlockscreen -l dim
exec --no-startup-id betterlockscreen -w dim exec --no-startup-id betterlockscreen -w dim
#Twmn Gmail notifier #Twmn Gmail notifier
exec --no-startup-id python ~/.config/Scripts/gmail_notifier.py exec --no-startup-id python ~/.config/Scripts/gmail_notifier.py

View File

@ -10,15 +10,16 @@ background = #00FFFFFF
;background = #8a8061 ;background = #8a8061
background-alt = ${xrdb:color2:#7B8349} background-alt = ${xrdb:color2:#7B8349}
;foreground = ${xrdb:color7} ;foreground = ${xrdb:color7}
foreground = ${xrdb:color15:#2A1A17} foreground = #8FBCBB
foreground-alt = ${xrdb:color15:#2A1A17} foreground-alt = #5E81AC
highlight = ${xrdb:color6:#E1B959} highlight = #BF616A
error = ${xrdb:color9:#DD712E} ;error = ${xrdb:color9:#DD712E}
red = #CC6666 error = #BF616A
yellow = #F0C674 red = #BF616A
green = #B3BB67 yellow = #EBCB8B
blue = #7FA0BC green = #A3BE8C
alert = #bd2c40 blue = #5E81AC
alert = #BF616A
[bar/top] [bar/top]
monitor = ${env:MONITOR:eDP-1} monitor = ${env:MONITOR:eDP-1}
@ -72,6 +73,7 @@ exec = ~/.config/Scripts/backlight.sh
scroll-up = exec light -A 5 scroll-up = exec light -A 5
scroll-down = exec light -U 5 scroll-down = exec light -U 5
format-prefix = " " format-prefix = " "
format-prefix-foreground = ${colors.foreground-alt}
label = %output% label = %output%
label-foreground = ${colors.foreground} label-foreground = ${colors.foreground}
format-padding = 1 format-padding = 1
@ -132,6 +134,7 @@ exec = "~/.config/Scripts/arch-updates.sh -s"
tail = true tail = true
format = <label> format = <label>
format-prefix = " " format-prefix = " "
format-prefix-foreground = ${colors.foreground-alt}
;click-right = "~/.config/Scripts/arch-updates.sh -u&" ;click-right = "~/.config/Scripts/arch-updates.sh -u&"
click-left = urxvt -e yay --noconfirm -Syu click-left = urxvt -e yay --noconfirm -Syu
click-right = "~/.config/Scripts/arch-updates.sh -c&" click-right = "~/.config/Scripts/arch-updates.sh -c&"
@ -331,7 +334,7 @@ interval = 60
exec = echo "$(date +%a) $(date +%d) $(date +%b)" exec = echo "$(date +%a) $(date +%d) $(date +%b)"
format = <label> format = <label>
format-prefix = " " format-prefix = " "
format-prefix-foreground = ${colors.highlight} format-prefix-foreground = ${colors.foreground-alt}
label = %{A1:gsimplecal &:}%output%%{A} label = %{A1:gsimplecal &:}%output%%{A}
[module/clock] [module/clock]
@ -340,7 +343,7 @@ interval = 5
exec = echo "$(date +%R)" exec = echo "$(date +%R)"
format = <label> format = <label>
;format-prefix = " " ;format-prefix = " "
format-foreground = ${colors.highlight} format-foreground = ${colors.foreground-alt}
label = %{A1:gsimplecal &:}%output%%{A} label = %{A1:gsimplecal &:}%output%%{A}
[module/volume] [module/volume]

View File

@ -502,10 +502,10 @@ map ya shell yadm add %f
#Image commands #Image commands
map bk shell cp %f ~/.config/wall.png && feh --bg-scale %f map bk shell cp %f ~/.config/wall.png && feh --bg-scale %f
map bg shell wpg -an %f && wpg -s %f map bg shell wpg -an %f && wpg -s %f
map bt shell wal -g -f %f map bt shell wpg --pywal %f
map bc shell wal --backend colorz -g -i %f && systemctl --user restart wallpaper.service map bc shell wal --backend colorz -i %f && systemctl --user restart wallpaper.service
map bw shell wal -c -a "90" -g -i %f && cp %f ~/.config/wall.png && ~/.config/Scripts/wal-set map bw shell wal -a "90" -i %f && cp %f ~/.config/wall.png && ~/.config/Scripts/wal-set
map bv shell wal -c -a "90" -g -l -i %f && cp %f ~/.config/wall.png && ~/.config/Scripts/wal-set map bv shell wal -c -a "90" -l -i %f && cp %f ~/.config/wall.png && ~/.config/Scripts/wal-set
map C shell killall w3mimgdisplay && convert -rotate 90 %s %s map C shell killall w3mimgdisplay && convert -rotate 90 %s %s
map F shell killall w3mimgdisplay && convert -flop %s %s map F shell killall w3mimgdisplay && convert -flop %s %s
map bl shell killall w3mimgdisplay && convert %s -resize 1920x1080\> bl_%s map bl shell killall w3mimgdisplay && convert %s -resize 1920x1080\> bl_%s

View File

@ -0,0 +1 @@
/home/hate/.config/polybar/config

View File

@ -1,6 +1,5 @@
#!/bin/bash #!/bin/bash
[[ -f ~/.Xresources ]] && xrdb -merge ~/.Xresources [[ -f ~/.Xresources ]] && xrdb -merge ~/.Xresources
wal -R
xset +fp ~/.local/share/fonts & xset +fp ~/.local/share/fonts &
xset fp rehash & xset fp rehash &
exec i3 exec i3

4
.zshrc
View File

@ -137,10 +137,10 @@ export ARCHFLAGS="-arch x86_64"
# Import colorscheme from 'wal' asynchronously # Import colorscheme from 'wal' asynchronously
# & # Run the process in the background. # & # Run the process in the background.
# ( ) # Hide shell job control messages. # ( ) # Hide shell job control messages.
(cat ~/.cache/wal/sequences &) #(cat ~/.cache/wal/sequences &)
# Wpg restore on terminals # Wpg restore on terminals
#(cat $HOME/.config/wpg/sequences &) (cat $HOME/.config/wpg/sequences &)
# To add support for TTYs this line can be optionally added. # To add support for TTYs this line can be optionally added.
#source ~/.cache/wal/colors-tty.sh #source ~/.cache/wal/colors-tty.sh