Косметические изменения
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
*******************************************************/
|
*******************************************************/
|
||||||
|
|
||||||
configuration {
|
configuration {
|
||||||
font: "Ubuntu Bold 13";
|
font: "JetBrainsMono NF Medium 13";
|
||||||
show-icons: false;
|
show-icons: false;
|
||||||
icon-theme: "Arc-X-D";
|
icon-theme: "Arc-X-D";
|
||||||
scroll-method: 0;
|
scroll-method: 0;
|
||||||
@@ -19,7 +19,7 @@ window {
|
|||||||
border: 2;
|
border: 2;
|
||||||
padding: 10;
|
padding: 10;
|
||||||
transparency: "real";
|
transparency: "real";
|
||||||
width: 210px;
|
width: 240px;
|
||||||
location: northwest;
|
location: northwest;
|
||||||
y-offset: 30;
|
y-offset: 30;
|
||||||
/*x-offset: 850;*/
|
/*x-offset: 850;*/
|
||||||
|
|||||||
@@ -1,39 +1,30 @@
|
|||||||
#!/bin/env bash
|
#!/bin/env bash
|
||||||
|
|
||||||
# Options for powermenu
|
# Options for powermenu
|
||||||
lock=".....Заблокировать"
|
lock=" .....Заблокировать "
|
||||||
logout="....Выход"
|
logout=" ....Выход "
|
||||||
shutdown="....Выключить"
|
shutdown=" ....Выключить "
|
||||||
reboot="....Перегрузить"
|
reboot=" ....Перегрузить "
|
||||||
|
|
||||||
# Get answer from user via rofi
|
# Get answer from user via rofi
|
||||||
selected_option=$(echo "$lock
|
selected_option=$(echo "$lock
|
||||||
$logout
|
$logout
|
||||||
$reboot
|
$reboot
|
||||||
$shutdown" | rofi -dmenu\
|
$shutdown" | rofi -dmenu -i -p "Power" \
|
||||||
-i\
|
-config "~/.config/rofi/powermenu.rasi" \
|
||||||
-p "Power"\
|
-font "JetBrainsMono NF Medium 13" \
|
||||||
-config "~/.config/rofi/powermenu.rasi"\
|
-width "15" \
|
||||||
-font "Symbols Nerd Font 14"\
|
-lines 5 -line-margin 3 -line-padding 10 -scrollbar-width "0")
|
||||||
-width "15"\
|
|
||||||
-lines 5\
|
|
||||||
-line-margin 3\
|
|
||||||
-line-padding 10\
|
|
||||||
-scrollbar-width "0" )
|
|
||||||
|
|
||||||
# Do something based on selected option
|
# Do something based on selected option
|
||||||
if [ "$selected_option" == "$lock" ]
|
if [ "$selected_option" == "$lock" ]; then
|
||||||
then
|
/home/$USER/.config/bspwm/scripts/i3lock-fancy/i3lock-fancy.sh
|
||||||
/home/$USER/.config/bspwm/scripts/i3lock-fancy/i3lock-fancy.sh
|
elif [ "$selected_option" == "$logout" ]; then
|
||||||
elif [ "$selected_option" == "$logout" ]
|
bspc quit
|
||||||
then
|
elif [ "$selected_option" == "$shutdown" ]; then
|
||||||
bspc quit
|
systemctl poweroff
|
||||||
elif [ "$selected_option" == "$shutdown" ]
|
elif [ "$selected_option" == "$reboot" ]; then
|
||||||
then
|
systemctl reboot
|
||||||
systemctl poweroff
|
|
||||||
elif [ "$selected_option" == "$reboot" ]
|
|
||||||
then
|
|
||||||
systemctl reboot
|
|
||||||
else
|
else
|
||||||
echo "No match"
|
echo "No match"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user