aboutsummaryrefslogtreecommitdiff
path: root/Scripts
diff options
context:
space:
mode:
authorKumar Damani <damani.kumar@gmail.com>2019-05-24 13:24:01 +0000
committerKumar Damani <damani.kumar@gmail.com>2019-05-24 13:24:01 +0000
commit23c83773c9030ce83000d1f5d995be25d089bad9 (patch)
tree0b2abe011748e59a1a1568bccccc6d8936c07499 /Scripts
parentd28cdd9028808993565f4aef8599373a3eb46821 (diff)
latest updates
Diffstat (limited to 'Scripts')
-rwxr-xr-xScripts/.config/Scripts/autostart.sh36
-rwxr-xr-xScripts/.config/Scripts/startdwm37
2 files changed, 43 insertions, 30 deletions
diff --git a/Scripts/.config/Scripts/autostart.sh b/Scripts/.config/Scripts/autostart.sh
new file mode 100755
index 0000000..9987401
--- /dev/null
+++ b/Scripts/.config/Scripts/autostart.sh
@@ -0,0 +1,36 @@
+#!/bin/sh
+
+function run {
+ SERVICE="$@"
+ RUNNING=$(ps aux | grep -v grep | grep "$SERVICE")
+ if [ "${RUNNING:-null}" = null ];
+ then
+ $@ &
+ fi
+}
+
+# Common programs
+~/.config/Scripts/screen.sh d
+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 st -c email -e neomutt
+run vivaldi-stable
+run keepassxc
+amixer -c 0 set Headphone 100% unmute
+#run dropbox
+
+# WM specific
+if [ $GDMSESSION == "dwm" ];
+then
+ run stalonetray
+else
+ run ~/.config/Scripts/launch_polybar.sh
+ run st -c dropdown -e tmux -f ~/.config/tmux/tmux_start.conf attach
+ run st -c math -e R
+fi
diff --git a/Scripts/.config/Scripts/startdwm b/Scripts/.config/Scripts/startdwm
index 60c140c..226ba0e 100755
--- a/Scripts/.config/Scripts/startdwm
+++ b/Scripts/.config/Scripts/startdwm
@@ -1,30 +1,4 @@
-#!/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
-run stalonetray
+#!/bin/sh
disk_used=$(df -hl --total / | awk '{print $5}' | sed -n 2p)
@@ -37,9 +11,12 @@ while true; do
xsetroot -name "/: ${disk_used} || V:${vol} || $(date)"
sleep 3
done &
-while true; do
+#while true; do
# Log stderror to a file
- dwm 2> ~/.dwm.log
+ # dwm 2> ~/.dwm.log
# No error logging
#dwm >/dev/null 2>&1
-done
+#done
+
+$HOME/.config/Scripts/autostart.sh
+exec dwm