aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorNikita Langer <nikitalanger@icloud.com>2026-04-06 21:07:39 +0200
committerNikita Langer <nikitalanger@icloud.com>2026-04-06 21:07:39 +0200
commit703bc5124519189b308345aad056e42c06d5dc8b (patch)
tree7936ec51511f861455ed7c485fb8c585546c9280 /scripts
downloaddwm-703bc5124519189b308345aad056e42c06d5dc8b.tar.gz
dwm-703bc5124519189b308345aad056e42c06d5dc8b.tar.bz2
dwm-703bc5124519189b308345aad056e42c06d5dc8b.tar.xz
dwm-703bc5124519189b308345aad056e42c06d5dc8b.zip
commit
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/bright.sh5
-rwxr-xr-xscripts/choose-brightness.sh7
-rwxr-xr-xscripts/power.sh18
-rwxr-xr-xscripts/screenshot.sh30
-rwxr-xr-xscripts/scripts.sh5
-rwxr-xr-xscripts/tabbed.sh14
6 files changed, 79 insertions, 0 deletions
diff --git a/scripts/bright.sh b/scripts/bright.sh
new file mode 100755
index 0000000..21c86e1
--- /dev/null
+++ b/scripts/bright.sh
@@ -0,0 +1,5 @@
+#!/bin/bash
+current=$(ddcutil get 10 | sed "s/ /\n/g" | grep , | sed "s/,//g")
+new=$current
+((new+=$1))
+ddcutil set 10 $new
diff --git a/scripts/choose-brightness.sh b/scripts/choose-brightness.sh
new file mode 100755
index 0000000..b1cd7ba
--- /dev/null
+++ b/scripts/choose-brightness.sh
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+current=$(ddcutil get 10 | sed "s/ /\n/g" | grep , | sed "s/,//g")
+
+new=$(seq 0 100 | dmenu -c -l 10 -g 10 -p "$current new:")
+
+ddcutil set 10 $new
diff --git a/scripts/power.sh b/scripts/power.sh
new file mode 100755
index 0000000..9abe314
--- /dev/null
+++ b/scripts/power.sh
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+target=$(printf "%s\n" \
+"reboot" \
+"lock" \
+"poweroff" | dmenu -p "Power" -c -l 6)
+
+case "$target" in
+ "poweroff")
+ st -e "bash -c \"sudo poweroff\""
+ ;;
+ "reboot")
+ st -e "bash -c \"sudo reboot\""
+ ;;
+ "lock")
+ slock -m "$(cowsay "$(fortune)" | lolcat -ft)"
+ ;;
+esac
diff --git a/scripts/screenshot.sh b/scripts/screenshot.sh
new file mode 100755
index 0000000..5f0db0b
--- /dev/null
+++ b/scripts/screenshot.sh
@@ -0,0 +1,30 @@
+#!/bin/bash
+
+target=$(printf "%s\n" \
+"Ganzer Bildschirm - save" \
+"Teil Bildschirm - save" \
+"Ganzer Bildschirm - clip" \
+"Teil Bildschirm - clip" \
+"Allgemein" \
+"Config" | dmenu -p "Screenshot" -c -l 6)
+
+case "$target" in
+ "Ganzer Bildschirm - save")
+ flameshot full
+ ;;
+ "Teil Bildschirm - save")
+ flameshot gui
+ ;;
+ "Ganzer Bildschirm - clip")
+ flameshot full -c
+ ;;
+ "Teil Bildschirm - clip")
+ flameshot gui -c
+ ;;
+ "Allgemein")
+ flameshot launcher
+ ;;
+ "Config")
+ flameshot config
+ ;;
+esac
diff --git a/scripts/scripts.sh b/scripts/scripts.sh
new file mode 100755
index 0000000..6b230e6
--- /dev/null
+++ b/scripts/scripts.sh
@@ -0,0 +1,5 @@
+#/bin/bash
+
+target=$(ls /usr/local/bin/dwm-scripts/ | dmenu -p "Scripts" -c -l 6)
+
+exec /usr/local/bin/dwm-scripts/$target
diff --git a/scripts/tabbed.sh b/scripts/tabbed.sh
new file mode 100755
index 0000000..2082b67
--- /dev/null
+++ b/scripts/tabbed.sh
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+target=$(printf "%s\n" \
+"st" \
+"Zathura" | dmenu -p "tabbed" -c -l 6)
+
+case "$target" in
+ "Zathura")
+ tabbed zathura -e
+ ;;
+ "st")
+ tabbed -r 2 st -w ''
+ ;;
+esac