Optimized i3 setup: clipboard manager, scratchpad terminal, workspace assignments, media keys with dunstify, thunar, autotiling, system info notification

This commit is contained in:
2026-02-15 10:30:28 +01:00
parent 464339629a
commit 25d3169728
9 changed files with 168 additions and 19 deletions

View File

@@ -0,0 +1,14 @@
#!/bin/bash
# Brightness control with dunst notification
case "$1" in
up)
brightnessctl set +5%
;;
down)
brightnessctl set 5%-
;;
esac
BRIGHTNESS=$(brightnessctl -m | awk -F, '{print $4}' | tr -d '%')
dunstify -a "brightness" -u low -r 9998 -h int:value:${BRIGHTNESS} " ${BRIGHTNESS}%"

View File

@@ -0,0 +1,4 @@
#!/bin/bash
# Rofi-based clipboard manager using greenclip
rofi -modi "clipboard:greenclip print" -show clipboard -run-command '{cmd}'

View File

@@ -0,0 +1,15 @@
#!/bin/bash
# Show system info notification on login
sleep 3
IP=$(ip route get 1.1.1.1 2>/dev/null | grep -o 'src [0-9.]*' | awk '{print $2}')
MEM_TOTAL=$(free -h | grep Mem | awk '{print $2}')
MEM_AVAIL=$(free -h | grep Mem | awk '{print $7}')
DISK_AVAIL=$(df -h / | tail -1 | awk '{print $4}')
BATTERY=$(cat /sys/class/power_supply/BAT0/capacity 2>/dev/null || echo "N/A")
UPTIME=$(uptime -p | sed 's/up //')
dunstify -a "sysinfo" -u normal -r 9997 -t 8000 \
"System Info" \
"IP: ${IP:-nicht verbunden}\nRAM frei: ${MEM_AVAIL}/${MEM_TOTAL}\nDisk frei: ${DISK_AVAIL}\nAkku: ${BATTERY}%\nUptime: ${UPTIME}"

View File

@@ -0,0 +1,24 @@
#!/bin/bash
# Volume control with dunst notification
case "$1" in
up)
pactl set-sink-volume @DEFAULT_SINK@ +5%
;;
down)
pactl set-sink-volume @DEFAULT_SINK@ -5%
;;
mute)
pactl set-sink-mute @DEFAULT_SINK@ toggle
;;
esac
VOLUME=$(pactl get-sink-volume @DEFAULT_SINK@ | grep -o '[0-9]*%' | head -1)
MUTE=$(pactl get-sink-mute @DEFAULT_SINK@ | awk '{print $2}')
if [[ "${MUTE}" == "yes" ]]; then
dunstify -a "volume" -u low -r 9999 -h int:value:0 " MUTE"
else
VOL_NUM=${VOLUME%\%}
dunstify -a "volume" -u low -r 9999 -h int:value:${VOL_NUM} " ${VOLUME}"
fi