add polybar powermenu

This commit is contained in:
azpsen 2024-01-28 16:47:26 -06:00
parent 9d7b3706e9
commit 5183836de3
2 changed files with 8 additions and 3 deletions

View File

@ -52,7 +52,7 @@ font-0 = "JetBrainsMonoNL Nerd Font Mono:pixelsize=12;2"
modules-left = bspwm xwindow
modules-center = date
modules-right = music filesystem memory cpu wlan
modules-right = music filesystem memory cpu wlan powermenu
cursor-click = pointer
cursor-scroll = ns-resize
@ -93,7 +93,7 @@ font-0 = "JetBrainsMonoNL Nerd Font Mono:pixelsize=12;2"
modules-left = bspwm xwindow
modules-center = date
modules-right = music filesystem memory cpu wlan
modules-right = music filesystem memory cpu wlan powermenu
cursor-click = pointer
cursor-scroll = ns-resize
@ -129,7 +129,6 @@ label-urgent = " %name% "
label-dimmed = " %name% "
label-dimmed-foreground = ${colors.foreground}
label-dimmed-underline = ${bar/top.background}
label-dimmed-focused = " %name% "
label-dimmed-focused-background = ${colors.secondary}
@ -252,6 +251,11 @@ date-alt = %Y-%m-%d %H:%M:%S
label = %date%
label-foreground = ${colors.primary}
[module/powermenu]
type = custom/text
content =
click-left = rofi -show p -modi p:'~/.config/rofi/scripts/rofi-power-menu --symbols-font "JetBrainsMonoNL Nerd Font Mono"' -font "JetBrainsMonoNL Nerd Font Mono" -monitor -5
[settings]
screenchange-reload = true
pseudo-transparency = true

View File

@ -17,6 +17,7 @@ super + v
# power menu
super + p
rofi -show p -modi p:'~/.config/rofi/scripts/rofi-power-menu --symbols-font "JetBrainsMonoNL Nerd Font Mono"' -font "JetBrainsMonoNL Nerd Font Mono" -monitor -1
# print screen
Print
path="$HOME/pictures/screenshots/$(date +"%s - %Y-%m-%d")" && maim "$path" && xclip -selection clipboard -t image/png "$path"