[DSiR v0.90]

- Initial import.
This commit is contained in:
2020-12-21 16:31:14 +00:00
commit 1c6132bfd5
25 changed files with 900 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
configuration {
theme: "/home/dunestorm/.local/share/rofi/themes/flat-orange.rasi";
}
+13
View File
@@ -0,0 +1,13 @@
#!/usr/bin/bash
# choose pulseaudio sink via rofi or dmenu
# changes default sink and moves all streams to that sink
sink=$(ponymix -t sink list|awk '/^sink/ {s=$1" "$2;getline;gsub(/^ +/,"",$0);print s" "$0}'|rofi -dmenu -p 'pulseaudio sink:' |grep -Po '[0-9]+(?=:)') &&
# alternate version using dmenu:
# sink=$(ponymix -t sink list|awk '/^sink/ {s=$1" "$2;getline;gsub(/^ +/,"",$0);print s" "$0}'|dmenu -p 'pulseaudio sink:'|grep -Po '[0-9]+(?=:)') &&
ponymix set-default -d $sink &&
for input in $(ponymix list -t sink-input|grep -Po '[0-9]+(?=:)');do
echo "$input -> $sink"
ponymix -t sink-input -d $input move $sink
done
+28
View File
@@ -0,0 +1,28 @@
#!/bin/bash
# Simple script to handle a DIY shutdown menu. When run you should see a bunch of options (shutdown, reboot etc.)
#
# Requirements:
# - rofi
# - systemd, but you can replace the commands for OpenRC or anything else
#
# Instructions:
# - Save this file as power.sh or anything
# - Give it exec priviledge, or chmod +x /path/to/power.sh
# - Run it
chosen=$(echo -e "Lock\nLogout\nShutdown\nReboot\nSuspend" | rofi -dmenu -i)
# Info about some states are available here:
# https://www.freedesktop.org/software/systemd/man/systemd-sleep.conf.html#Description
if [[ $chosen = "Lock" ]]; then
i3lock-fancy --greyscale && sleep 3 && systemctl suspend
elif [[ $chosen = "Logout" ]]; then
i3-msg exit
elif [[ $chosen = "Shutdown" ]]; then
systemctl poweroff
elif [[ $chosen = "Reboot" ]]; then
systemctl reboot
elif [[ $chosen = "Suspend" ]]; then
systemctl suspend
fi