This commit is contained in:
Geoffrey Frogeye 2018-08-19 11:29:59 +02:00
parent 27a817fff3
commit 9f65e9b248
12 changed files with 75 additions and 28 deletions

View file

@ -1,4 +1,9 @@
#!/usr/bin/env sh
#!/usr/bin/env bash
# Remove SSH and GPG keys from keystores
ssh-add -D
echo RELOADAGENT | gpg-connect-agent
dm-tool lock
if [ $? -ne 0 ]; then

3
config/nvim/init.vim Normal file
View file

@ -0,0 +1,3 @@
set runtimepath^=~/.vim runtimepath+=~/.vim/after
let &packpath = &runtimepath
source ~/.vimrc

View file

@ -1,12 +1,18 @@
#!/usr/bin/env bash
state="$(grep -o '\w\+$' /proc/acpi/bbswitch)"
if [ "$state" == "ON" ]
if [ -f /proc/acpi/bbswitch ]
then
echo ""
elif [ "$state" == "OFF" ]
then
echo ""
echo -n 
state="$(grep -o '\w\+$' /proc/acpi/bbswitch)"
if [ "$state" == "ON" ]
then
echo ""
elif [ "$state" == "OFF" ]
then
echo ""
else
echo "?"
fi
else
echo "?"
echo
fi

View file

@ -84,7 +84,7 @@ tray-transparent = false
[bar/secondary]
inherit = bar/base
modules-right = cpu memory temperature vpncheck ethMore wlanMore filesystem linuxmismatch bbswitch xbacklight volume date
modules-right = cpu memory temperature keystore vpncheck ethMore wlanMore filesystem linuxmismatch bbswitch xbacklight volume date
[module/filesystem]
@ -177,9 +177,7 @@ toggle-off-foreground = #55
[module/bbswitch]
type = custom/script
exec = ~/.config/polybar/bbswitch
exec-if = test -f /proc/acpi/bbswitch
interval = 5
format-prefix = 
format-foreground = ${theme.redF}
[module/todo]
@ -242,6 +240,13 @@ interval = 1
format-foreground = ${theme.greenF}
label =  %gb_free%
[module/keystore]
type = custom/script
exec = ~/.config/polybar/keystore
; exec-if = pgrep openvpn
interval = 5
format-foreground = ${theme.greenF}
[module/vpncheck]
type = custom/script
exec = echo 

9
config/polybar/keystore Executable file
View file

@ -0,0 +1,9 @@
#!/usr/bin/env bash
output="$(ssh-add -l)"
if [ $? -ne 0 ]; then
echo
else
echo -n " "
echo "$output" | wc -l
fi

3
config/rofi/.gitignore vendored Normal file
View file

@ -0,0 +1,3 @@
theme.config
theme.rasi

8
config/rofi/config Normal file
View file

@ -0,0 +1,8 @@
#include "theme.config"
rofi.theme: theme
rofi.cycle: true
rofi.case-sensitive: false
rofi.scroll-method: 0
rofi.show-match: true
rofi.lazy-grab: false
rofi.matching: fuzzy