Add initial dotfiles
This commit is contained in:
commit
f748e588ae
11 changed files with 1182 additions and 0 deletions
12
scripts/audio/get-sink-name.sh
Normal file
12
scripts/audio/get-sink-name.sh
Normal file
|
@ -0,0 +1,12 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
SINK=$(pactl get-default-sink)
|
||||
|
||||
if [ $SINK = "alsa_output.pci-0000_1f_00.3.analog-stereo" ]; then
|
||||
echo "Speakers"
|
||||
elif [ $SINK = "alsa_output.usb-C-Media_Electronics_Inc._USB_Audio_Device-00.analog-stereo" ]; then
|
||||
echo "Headphones"
|
||||
else
|
||||
echo "-"
|
||||
fi
|
||||
|
18
scripts/system/power.sh
Normal file
18
scripts/system/power.sh
Normal file
|
@ -0,0 +1,18 @@
|
|||
#!/bin/bash
|
||||
|
||||
option=$(printf "sleep\nlogout\nshutdown\nrestart" | rofi -dmenu -theme Arc-Dark -font 'hack 18')
|
||||
|
||||
if [ "$option" = "sleep" ];
|
||||
then
|
||||
i3lock-fancy -g -t "System Locked" -f Hack-Regular
|
||||
systemctl suspend
|
||||
elif [ "$option" = "logout" ];
|
||||
then
|
||||
i3-msg exit
|
||||
elif [ "$option" = "shutdown" ];
|
||||
then
|
||||
poweroff
|
||||
elif [ "$option" = "restart" ];
|
||||
then
|
||||
reboot
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue