Chama a
This commit is contained in:
10
scripts/chama
Executable file
10
scripts/chama
Executable 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
40
scripts/power
Executable 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
|
||||
@@ -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"
|
||||
|
||||
@@ -6,4 +6,4 @@ if [ "$(tabc printclass $id)" == "tabbed" ]; then
|
||||
tabc detach $id;
|
||||
else \
|
||||
tabc attach $id $(bspc query -N -n $1);
|
||||
fi
|
||||
fi
|
||||
@@ -1,2 +1,2 @@
|
||||
echo "$1"
|
||||
chromium --new-window --app="$1"
|
||||
ungoogled-chromium --new-window --app="$1"
|
||||
|
||||
Reference in New Issue
Block a user