lightmode
E. Almqvist 4 years ago
parent d479034a4d
commit 3ee75e0a67
  1. 6
      polybar/config
  2. 20
      polybar/scripts/updates.sh
  3. 3
      termite/config
  4. 4
      vimrc

@ -174,6 +174,12 @@ click-left = ~/.config/polybar/scripts/pavolume.sh --togmute
scroll-up = ~/.config/polybar/scripts/pavolume.sh --up
scroll-down = ~/.config/polybar/scripts/pavolume.sh --down
[module/updates]
type = custom/script
exec = ~/.config/polybar/scripts/updates.sh
interval = 300
label = %output%
[module/date]
type = internal/date
label = %date%

@ -0,0 +1,20 @@
#!/bin/sh
#source https://github.com/x70b1/polybar-scripts
if ! updates_arch=$(checkupdates 2> /dev/null | wc -l ); then
updates_arch=0
fi
# if ! updates_aur=$(cower -u 2> /dev/null | wc -l); then
if ! updates_aur=$(yay -Su --aur --quiet | wc -l); then
updates_aur=0
fi
updates=$(("$updates_arch" + "$updates_aur"))
if [ "$updates" -gt 0 ]; then
echo " $updates"
else
echo "0"
fi

@ -1,5 +1,6 @@
[options]
font = Source Code Pro 10
font = Ubuntu Mono 12
# font = Source Code Pro 11
size_hints = true
[colors]

@ -58,10 +58,10 @@ vnoremap <C-r> "hy:%s/<C-r>h//gc<left><left><left>
" Theme
set t_Co=256
colorscheme base16-default-dark
color hybrid_material
" color hybrid_material
let &showbreak = '↳ '
" hi Normal guibg=NONE ctermbg=NONE
hi Normal guibg=NONE ctermbg=NONE
highlight clear LineNr
highlight LineNr ctermfg=grey ctermbg=NONE

Loading…
Cancel
Save