summaryrefslogtreecommitdiff
path: root/dwm
diff options
context:
space:
mode:
authorJulian T <julian@jtle.dk>2019-04-13 18:37:09 +0200
committerJulian T <julian@jtle.dk>2019-04-13 18:37:09 +0200
commit6656c7e3dcc597232512c1def8a8b3e4ee3f2e4a (patch)
treec48fa75ed72c710c8e678b3ebef876a07f9e4402 /dwm
parentd1cc04a52c66ee197378d7354a1aba6281e8b32c (diff)
Added lots of stuff
Diffstat (limited to 'dwm')
-rwxr-xr-xdwm/.dwmSession.sh15
-rw-r--r--dwm/.xinitrc2
-rwxr-xr-xdwm/lc17
3 files changed, 25 insertions, 9 deletions
diff --git a/dwm/.dwmSession.sh b/dwm/.dwmSession.sh
index 3274e7a..fdb0fad 100755
--- a/dwm/.dwmSession.sh
+++ b/dwm/.dwmSession.sh
@@ -9,12 +9,13 @@ fi
echo $$ > $PIDFILE
-while true; do
-
- BATT=$( acpi -b | sed 's/.*[charging|unknown], \([0-9]*\)%.*/\1/gi' )
- TIME=$(/bin/date +"%H:%M")
- IP=$(ip -4 a | grep "inet " | sed "s:inet \(.*\)/.*:\1:" | tr -d " " | tr "\n" " ")
+for file in /home/julian/Scripts/enMenuScripts/*
+do
+ sh $file &
+done
- xsetroot -name "$IP $TIME $BATT%"
- sleep 10
+while true; do
+ xsetroot -name "$(cat /tmp/dsb* | tr -d '\n')"
+ sleep 1
+ inotifywait -q -e modify /tmp/dsb*
done
diff --git a/dwm/.xinitrc b/dwm/.xinitrc
index ecf13e1..3ac0572 100644
--- a/dwm/.xinitrc
+++ b/dwm/.xinitrc
@@ -14,7 +14,6 @@ xcape -e "Control_R=Escape"
nm-applet &
xscreensaver &
xss-lock -- xscreensaver-command --lock &
-dunst &
xcompmgr &
if ! pgrep -u "$USER" ssh-agent > /dev/null; then
@@ -28,5 +27,6 @@ while true; do
dwm
done &
+play ~/Winsounds/login.wav -q &
exec sh /home/julian/.dwmSession.sh
diff --git a/dwm/lc b/dwm/lc
index 9aef69c..dadf470 100755
--- a/dwm/lc
+++ b/dwm/lc
@@ -1,6 +1,7 @@
#!/bin/bash
-Commands="update poweroff suspend set-keyboard caps-lock battery cups-website vim emacs htop scrot overleaf-render overleaf"
+Commands="update poweroff suspend set-keyboard caps-lock battery cups-website vim emacs htop scrot overleaf-render overleaf win pass wall stat"
+statScripts="ram.sh status.sh net.sh mathiasServerPlayers.sh"
handle_stuff() {
if [ "$1" = "--dmenu" ]; then
@@ -45,6 +46,13 @@ handle_stuff() {
xdotool key Caps_Lock
fi
+ if [ "$1" = "win" ]; then
+ vboxmanage startvm "Windows xp"
+ fi
+ if [ "$1" = "wall" ]; then
+ feh --bg-fill Pictures/defaultWall.*
+ fi
+
# Launch
if [ "$1" = "vi" ] || [ "$1" = "vim" ]; then
st -e nvim
@@ -61,6 +69,13 @@ handle_stuff() {
if [ "$1" = "overleaf" ]; then
firefox -p Sharelatex --no-remote
fi
+ if [ "$1" = "pass" ]; then
+ sh ~/Scripts/passmenu --type
+ fi
+
+ if [ "$1" = "stat" ]; then
+ sh /home/julian/Scripts/$(echo $statScripts | tr " " "\n" | dmenu -i -p "stat")
+ fi
# Calc
if [ "$(echo $1 | head -c 1)" = "=" ]; then