diff options
| author | Kumar Damani <damani.kumar@gmail.com> | 2019-05-03 15:26:10 +0000 |
|---|---|---|
| committer | Kumar Damani <damani.kumar@gmail.com> | 2019-05-03 15:26:10 +0000 |
| commit | ec0e4c4a6a0c3b464e1da1f8ca98fb1740c28813 (patch) | |
| tree | 560a7953b49738a761c0922e8dbd6b93afb260f6 /Scripts/.config | |
| parent | 492068e287319ba764cfac016979bed2197259d2 (diff) | |
dwm stuff
Diffstat (limited to 'Scripts/.config')
| -rwxr-xr-x | Scripts/.config/Scripts/launch_polybar.sh | 20 | ||||
| -rwxr-xr-x | Scripts/.config/Scripts/lock.sh | 2 | ||||
| -rwxr-xr-x | Scripts/.config/Scripts/startdwm | 44 | ||||
| -rwxr-xr-x | Scripts/.config/Scripts/suckmerge | 9 | ||||
| -rw-r--r-- | Scripts/.config/lock.png | bin | 0 -> 5016 bytes |
5 files changed, 65 insertions, 10 deletions
diff --git a/Scripts/.config/Scripts/launch_polybar.sh b/Scripts/.config/Scripts/launch_polybar.sh index 9ef7345..245a8bb 100755 --- a/Scripts/.config/Scripts/launch_polybar.sh +++ b/Scripts/.config/Scripts/launch_polybar.sh @@ -8,13 +8,15 @@ killall -q polybar while pgrep -x polybar >/dev/null; do sleep 1; done # Launch in all monitors -MONS=$(polybar -m | sed -e 's/:.*$//g') -for MON in ${MONS[@]} -do - #echo $MON - MONITOR=$MON polybar mybar -q -c ~/.config/polybar/mybar & - echo $MONITOR - #polybar example -done +#MONS=$(polybar -m | sed -e 's/:.*$//g') +#for MON in ${MONS[@]} +#do +# #echo $MON +# MONITOR=$MON polybar mybar -q -c ~/.config/polybar/mybar & +# echo $MONITOR +# #polybar example +#done -echo "Bar launched..." +#echo "Bar launched..." + +MONITOR="LVDS-1" polybar mybar -q -c ~/.config/polybar/mybar & diff --git a/Scripts/.config/Scripts/lock.sh b/Scripts/.config/Scripts/lock.sh index b812302..adaf31a 100755 --- a/Scripts/.config/Scripts/lock.sh +++ b/Scripts/.config/Scripts/lock.sh @@ -3,6 +3,6 @@ scrot /tmp/screen.png #convert /tmp/screen.png -scale 10% -scale 1000% /tmp/screen.png #convert /tmp/screen.png -paint 3 -modulate 80 /tmp/screen.png convert /tmp/screen.png -paint 3 /tmp/screen.png -[[ -f ~/.config/$1/lock.png ]] && convert /tmp/screen.png ~/.config/$1/lock.png -gravity center -composite -matte /tmp/screen.png +[[ -f ~/.config/lock.png ]] && convert /tmp/screen.png ~/.config/lock.png -gravity center -composite -matte /tmp/screen.png mocp -P i3lock -u -e -i /tmp/screen.png diff --git a/Scripts/.config/Scripts/startdwm b/Scripts/.config/Scripts/startdwm new file mode 100755 index 0000000..8bf41c5 --- /dev/null +++ b/Scripts/.config/Scripts/startdwm @@ -0,0 +1,44 @@ +#!/bin/bash + +function run { + SERVICE="$@" + RUNNING=$(ps aux | grep -v grep | grep "$SERVICE") + if [ "${RUNNING:-null}" = null ]; + then + $@ & + fi +} + + +setxkbmap -layout us -variant altgr-intl -option caps:escape +xmodmap -e "keycode 135 = Super_R" +run mpd +run nm-applet +run compton +run wal -i ~/.config/wall1.jpg +run synclient TouchpadOff=1 +run /usr/bin/xflux -l 43.6404 -g -79.3995 +run ~/.config/Scripts/screen.sh d +run st -c email -e neomutt +run firefox +run keepassxc +amixer -c 0 set Headphone 100% unmute +#run dropbox + +disk_used=$(df -hl --total / | awk '{print $5}' | sed -n 2p) + +while true; do + disk_used=$(df -hl --total / | awk '{print $5}' | sed -n 2p) + sleep 60s +done & +while true; do + vol=$(pamixer --get-volume) + xsetroot -name "/: ${disk_used} || V:${vol} || $(date)" + sleep 3 +done & +while true; do + # Log stderror to a file + dwm 2> ~/.dwm.log + # No error logging + #dwm >/dev/null 2>&1 +done diff --git a/Scripts/.config/Scripts/suckmerge b/Scripts/.config/Scripts/suckmerge new file mode 100755 index 0000000..ccb4f62 --- /dev/null +++ b/Scripts/.config/Scripts/suckmerge @@ -0,0 +1,9 @@ +#!/usr/bin/env bash +#suckdiff && +git reset --hard origin/master && +for branch in $(git for-each-ref --format='%(refname)' refs/heads/ | cut -d'/' -f3); do + if [ "$branch" != "master" ];then + git merge $branch -m $branch + fi +done +make && sudo make clean install diff --git a/Scripts/.config/lock.png b/Scripts/.config/lock.png Binary files differnew file mode 100644 index 0000000..cd8b228 --- /dev/null +++ b/Scripts/.config/lock.png |
