Add power menu
This commit is contained in:
parent
4aa43b965b
commit
ed776c9b0c
0
arch-config/.config/polybar/.gitkeep
Normal file → Executable file
0
arch-config/.config/polybar/.gitkeep
Normal file → Executable file
0
arch-config/.config/polybar/colors.ini
Normal file → Executable file
0
arch-config/.config/polybar/colors.ini
Normal file → Executable file
2
arch-config/.config/polybar/i3config.ini
Normal file → Executable file
2
arch-config/.config/polybar/i3config.ini
Normal file → Executable file
@ -82,7 +82,7 @@ font-5 = Iosevka:style=bold:size=16;3
|
|||||||
;font-4 = Iosevka Nerd Font:style=Medium:size=7;3
|
;font-4 = Iosevka Nerd Font:style=Medium:size=7;3
|
||||||
|
|
||||||
|
|
||||||
modules-left = full i3 full left-top right-bot full xwindow full left-top
|
modules-left = full sysmenu full i3 full left-top right-bot full xwindow full left-top
|
||||||
modules-center =
|
modules-center =
|
||||||
modules-right = right-top full date battery full left-bot right-top
|
modules-right = right-top full date battery full left-bot right-top
|
||||||
|
|
||||||
|
0
arch-config/.config/polybar/modules/.gitkeep
Normal file → Executable file
0
arch-config/.config/polybar/modules/.gitkeep
Normal file → Executable file
0
arch-config/.config/polybar/modules/battery.ini
Normal file → Executable file
0
arch-config/.config/polybar/modules/battery.ini
Normal file → Executable file
0
arch-config/.config/polybar/modules/date.ini
Normal file → Executable file
0
arch-config/.config/polybar/modules/date.ini
Normal file → Executable file
0
arch-config/.config/polybar/modules/i3.ini
Normal file → Executable file
0
arch-config/.config/polybar/modules/i3.ini
Normal file → Executable file
12
arch-config/.config/polybar/modules/modules.ini
Normal file → Executable file
12
arch-config/.config/polybar/modules/modules.ini
Normal file → Executable file
@ -84,6 +84,18 @@ format-underline = #7D49B6
|
|||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
|
|
||||||
|
[module/sysmenu]
|
||||||
|
type = custom/text
|
||||||
|
content = " ▶ "
|
||||||
|
content-background = ${colors.modbackground}
|
||||||
|
content-foreground = ${colors.foreground}
|
||||||
|
|
||||||
|
click-left = ~/.config/polybar/scripts/powermenu
|
||||||
|
|
||||||
|
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
|
||||||
[module/backlight]
|
[module/backlight]
|
||||||
;https://github.com/jaagr/polybar/wiki/Module:-backlight
|
;https://github.com/jaagr/polybar/wiki/Module:-backlight
|
||||||
|
|
||||||
|
0
arch-config/.config/polybar/modules/volume.ini
Normal file → Executable file
0
arch-config/.config/polybar/modules/volume.ini
Normal file → Executable file
0
arch-config/.config/polybar/modules/weather.ini
Normal file → Executable file
0
arch-config/.config/polybar/modules/weather.ini
Normal file → Executable file
0
arch-config/.config/polybar/modules/xwindow.ini
Normal file → Executable file
0
arch-config/.config/polybar/modules/xwindow.ini
Normal file → Executable file
0
arch-config/.config/polybar/scripts/.gitkeep
Normal file → Executable file
0
arch-config/.config/polybar/scripts/.gitkeep
Normal file → Executable file
14
arch-config/.config/polybar/scripts/powermenu
Executable file
14
arch-config/.config/polybar/scripts/powermenu
Executable file
@ -0,0 +1,14 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
## Created By Aditya Shakya
|
||||||
|
|
||||||
|
MENU="$(rofi -sep "|" -dmenu -i -p 'System' -location 7 -xoffset 5 -yoffset -31 -width 10 -hide-scrollbar -line-padding 4 -padding 20 -lines 6 <<< "Lock|Logout|Reboot|Shutdown|Suspend|Hibernate")"
|
||||||
|
#MENU="$(rofi -sep "|" -dmenu -i -p 'System' -location 3 -xoffset -10 -yoffset 32 -width 10 -hide-scrollbar -line-padding 4 -padding 20 -lines 4 <<< " Lock| Logout| Reboot| Shutdown|Suspend|Hibernate")"
|
||||||
|
case "$MENU" in
|
||||||
|
*Lock) betterlockscreen -l ;;
|
||||||
|
*Logout) i3-msg exit ;;
|
||||||
|
*Reboot) systemctl reboot ;;
|
||||||
|
*Shutdown) systemctl poweroff ;;
|
||||||
|
*Suspend) betterlockscreen -s ;;
|
||||||
|
*Hibernate) systemctl hibernate
|
||||||
|
esac
|
0
arch-config/.config/polybar/scripts/weather.py
Normal file → Executable file
0
arch-config/.config/polybar/scripts/weather.py
Normal file → Executable file
Loading…
Reference in New Issue
Block a user