Clean dotfiles

This commit is contained in:
Smirnov Alexandr 2021-03-03 18:37:06 +02:00
parent 5c2b55f13c
commit 197750ffa3
32 changed files with 123 additions and 579 deletions

View file

@ -1,6 +1,4 @@
#!/bin/sh
setxkbmap "us,ua" ",winkeys" "grp:alt_shift_toggle" -option "ctrl:nocaps" &
feh --randomize --bg-scale ~/Pictures/wallp &
lxsession &
picom -b &
tint2 -c ~/.config/openbox/tint2rc &
picom -b &

17
config/openbox/script/volume Executable file
View file

@ -0,0 +1,17 @@
#!/bin/sh
CHK_MUTE() { amixer -D pulse get Master | grep '%' | grep -oE '[^ ]+$' | grep off; }
VOLUME="$(amixer -D pulse get Master | grep '%' | head -n 1 | awk -F'[' '{print $2}' | awk -F'%' '{print $1}';)"
case $1 in
percent)
if CHK_MUTE &> /dev/null
then
echo ""
else
echo " $VOLUME%"
fi
;;
up) amixer sset Master 2%+ ;;
down) amixer sset Master 2%- ;;
mute) amixer sset Master toggle ;;
esac

View file

@ -0,0 +1,3 @@
#!/bin/sh
SIGNAL="$(cat /proc/net/wireless | grep "wlp3s0" | awk '{print $4}' | grep -o '[0-9]*')"
echo " $SIGNAL%"

View file

@ -224,11 +224,11 @@ execp_has_icon = 0
execp_cache_icon = 1
execp_continuous = 0
execp_markup = 1
execp_lclick_command = $HOME/.script/volume mute
execp_lclick_command = $HOME/.config/openbox/script/volume mute
execp_rclick_command =
execp_mclick_command =
execp_uwheel_command = $HOME/.script/volume up
execp_dwheel_command = $HOME/.script/volume down
execp_uwheel_command = $HOME/.config/openbox/.script/volume up
execp_dwheel_command = $HOME/.config/openbox/.script/volume down
execp_font = Droid Sans Bold 8
execp_font_color = #d1d1d1 100
execp_padding = 8 0
@ -240,7 +240,7 @@ execp_icon_h = 0
#-------------------------------------
# Executor 2
execp = new
execp_command = $HOME/.script/wifi-signal
execp_command = $HOME/.config/openbox/script/wifi-signal
execp_interval = 5
execp_has_icon = 0
execp_cache_icon = 1