This commit is contained in:
Dakedres
2023-11-11 03:20:01 -05:00
parent 015d8f2d20
commit 5c1270830c
47 changed files with 131 additions and 2515 deletions

10
scripts/chama Executable file
View File

@@ -0,0 +1,10 @@
BROWSER=qutebrowser
feh --bg-scale /home/dakedres/pictures/blur-pseudo-mono.png
setxkbmap -option caps:swapescape
pipewire &
tint2 &
mate-power-manager &
nm-applet &
dbus-run-session bspwm

40
scripts/power Executable file
View File

@@ -0,0 +1,40 @@
#!/bin/sh
lang_pc_shutdown="Shutdown"
lang_pc_reboot="Reboot"
lang_pc_logout="Log out"
lang_pc_lock="Lock"
lang_notification_name="Power manager"
lang_notificaton_shutdown="A power off request has been sent. The computer should shut down in a moment."
# Icons
lang_pc_shutdown="🚪 $lang_pc_shutdown"
lang_pc_reboot="🔃 $lang_pc_reboot"
lang_pc_logout="👥 $lang_pc_logout"
lang_pc_lock="🔒 $lang_pc_lock"
selected=$(
printf "%s\n%s\n%s\n%s\n" \
"$lang_pc_shutdown" "$lang_pc_reboot" "$lang_pc_logout" |
rofi -dmenu -p "powermenu" -lines 4
)
case $selected in
"$lang_pc_shutdown")
notify-send "$lang_notification_name" "$lang_notificaton_shutdown"
shutdown -h now
;;
"$lang_pc_reboot")
notify-send "$lang_notification_name" "$lang_notificaton_shutdown"
reboot
;;
"$lang_pc_logout")
bspc quit
;;
"$lang_pc_lock")
light-locker-command --lock
;;
esac

View File

@@ -1,6 +1,6 @@
#!/bin/sh
db=$HOME/.local/share/qutebrowser/history.sqlite
url=$(sqlite3 "$db" "select title,url from History" | tac | awk '!a[$0]++' | rofi -dmenu | awk -F '|' '{print $NF}')
url=$(sqlite3 "$db" "select title,url from History" | tac | rofi -dmenu | awk -F '|' '{print $NF}')
[ -z "$url" ] && exit
qutebrowser --target window "$url"

View File

@@ -6,4 +6,4 @@ if [ "$(tabc printclass $id)" == "tabbed" ]; then
tabc detach $id;
else \
tabc attach $id $(bspc query -N -n $1);
fi
fi

View File

@@ -1,2 +1,2 @@
echo "$1"
chromium --new-window --app="$1"
ungoogled-chromium --new-window --app="$1"