dotfiles

andersuno
git clone git://git.andersuno.nu/dotfiles.git
Log | Files | Refs | README

commit 888d91a53156a908b59dc0804abfdea785f0379e
parent 073f3a7947032be84f43609ebf68884af97989c0
Author: andersuno <anders.hedman01@gmail.com>
Date:   Thu,  9 Jan 2020 01:51:33 +0100

 Changes to be committed:
	modified:   .config/polybar/config
	modified:   .config/sxhkd/sxhkdrc

Diffstat:
M.config/polybar/config | 84++++++++++++++++++++-----------------------------------------------------------
M.config/sxhkd/sxhkdrc | 2+-
2 files changed, 22 insertions(+), 64 deletions(-)

diff --git a/.config/polybar/config b/.config/polybar/config @@ -55,60 +55,7 @@ radius = 0.0 fixed-center = false bottom = true -background = ${colors.background} -foreground = ${colors.foreground} - -line-size = 0 -line-color = #f00 - -border-size = 0 -border-color = #00000000 - -padding-left = 0 -padding-right = 2 - -module-margin-left = 1 -module-margin-right = 2 - -font-0 = fixed:pixelsize=10;1 -font-1 = unifont:fontformat=truetype:size=8:antialias=false;0 -font-2 = siji:pixelsize=10;1 -font-3 = FontAwesome:size=8 - -modules-left = bspwm -;modules-center = xwindow -modules-right = wlan eth updates filesystem xbacklight pulseaudio memory cpu temperature battery date powermenu - -tray-position = right -tray-padding = 0 -tray-background = ${colors.background} -tray-detached = false -tray-maxsize = 16 - - -wm-restack = bspwm -;wm-restack = i3 - -;override-redirect = true - -;scroll-up = bspwm-desknext -;scroll-down = bspwm-deskprev - -;scroll-up = i3wm-wsnext -;scroll-down = i3wm-wsprev - -cursor-click = pointer -cursor-scroll = ns-resize - -[bar/mybarvga] -monitor = ${env:MONITOR:DP1} -width = 100% -height = 20 -;offset-x = 1% -;offset-y = 1% -radius = 0.0 -fixed-center = false -bottom = true +enable-ipc = true background = ${colors.background} foreground = ${colors.foreground} @@ -123,19 +70,20 @@ padding-left = 0 padding-right = 2 module-margin-left = 1 -module-margin-right = 2 +module-margin-right = 1 -font-0 = fixed:pixelsize=10;1 +font-0 = fixed:pixelsize=10;2 font-1 = unifont:fontformat=truetype:size=8:antialias=false;0 font-2 = siji:pixelsize=10;1 -font-3 = FontAwesome:size=8 +font-3 = FontAwesome:size=8;2 +font-4 = NotoColorEmoji:fontformat=truetype:scale=12:antialias=false;2 modules-left = bspwm ;modules-center = xwindow -modules-right = wlan eth updates filesystem xbacklight pulseaudio memory cpu temperature battery date powermenu +modules-right = wlan eth updates2 xbacklight pulseaudio cpu temperature battery date powermenu tray-position = right -tray-padding = 0 +tray-padding = 2 tray-background = ${colors.background} tray-detached = false tray-maxsize = 16 @@ -155,7 +103,6 @@ wm-restack = bspwm cursor-click = pointer cursor-scroll = ns-resize - [module/xwindow] type = internal/xwindow label = %title:0:30:...% @@ -280,7 +227,7 @@ interval = 3.0 format-connected = <ramp-signal> <label-connected> format-connected-underline = #9f78e1 -label-connected = %essid% | %local_ip% +label-connected = %essid% | %local_ip% | 📥:%downspeed% 📤:%upspeed% format-disconnected = ;format-disconnected = <label-disconnected> @@ -304,7 +251,7 @@ interval = 3.0 format-connected-underline = #55aa55 format-connected-prefix = " " format-connected-prefix-foreground = ${colors.lime} -label-connected = %local_ip% +label-connected = %local_ip% | 📥:%downspeed% 📤:%upspeed% format-disconnected = ;format-disconnected = <label-disconnected> @@ -487,7 +434,8 @@ menu-2-1-exec = menu-open-0 [module/updates] type = custom/script -exec = ~/Scripts/pacmanupdates.sh +#exec = ~/Scripts/pacmanupdates.sh +exec = sleep 30; ~/Scripts/pacmanupdates.sh interval = 3600 format = : <label> @@ -496,6 +444,16 @@ format-foreground = ${colors.foreground} format-prefix = " " format-prefix-foreground = ${colors.teal} +[module/updates2] +type = custom/ipc +hook-0 = echo "📦" +hook-1 = "~/Scripts/pacmanupdates.sh" +hook-2 = "~/Scripts/pacmanupdates.sh -a" +initial = 1 +click-left = polybar-msg -p %pid% hook updates2 2 +click-right = polybar-msg -p %pid% hook updates2 3 +double-click-left = polybar-msg -p %pid% hook updates2 1 + [settings] screenchange-reload = true ;compositing-background = xor diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc @@ -141,7 +141,7 @@ super + {grave,Tab} bspc {node,desktop} -f last # focus the older or newer node in the focus history -super + {i,o} +super + {o,i} bspc wm -h off; \ bspc node {older,newer} -f; \ bspc wm -h on