Fix rofi-power-menu

This commit is contained in:
Evie Litherland-Smith 2023-09-11 13:46:52 +01:00
parent 9191b14637
commit 524db89061
2 changed files with 22 additions and 21 deletions

View file

@ -1,6 +1,6 @@
{ config, pkgs, theme, ... }: { config, pkgs, theme, ... }: ''
exec-once = ${pkgs.libsForQt5.polkit-kde-agent}/bin/polkit-kde-authentication-agent-1
''
source = ${theme} source = ${theme}
source = ./extra.conf source = ./extra.conf
monitor=,preferred,auto,auto monitor=,preferred,auto,auto
@ -96,21 +96,21 @@
bind = SUPER ALT, S, exec, [workspace 5] alacritty -e ncspot bind = SUPER ALT, S, exec, [workspace 5] alacritty -e ncspot
# Misc useful binds # Misc useful binds
bind=,Print,exec,grim -g "$(slurp)" bind=,Print,exec,${pkgs.grim}/bin/grim -g "$(${pkgs.slurp}/bin/slurp)"
bind=,XF86Calculator,exec,pkill rofi || rofi -show calc bind=,XF86Calculator,exec,pkill rofi || rofi -show calc
# Sound # Sound
bindl=,XF86AudioMute,exec,pamixer -t bindl=,XF86AudioMute,exec,${pkgs.pamixer}/bin/pamixer -t
bindl=,XF86AudioMicMute,exec,pamixer --default-source -t bindl=,XF86AudioMicMute,exec,${pkgs.pamixer}/bin/pamixer --default-source -t
binde=,XF86AudioRaiseVolume,exec,pamixer -i 5 binde=,XF86AudioRaiseVolume,exec,${pkgs.pamixer}/bin/pamixer -i 5
binde=,XF86AudioLowerVolume,exec,pamixer -d 5 binde=,XF86AudioLowerVolume,exec,${pkgs.pamixer}/bin/pamixer -d 5
# Brightness # Brightness
binde=,XF86MonBrightnessUp,exec,brightnessctl s +5% binde=,XF86MonBrightnessUp,exec,${pkgs.brightnessctl}/bin/brightnessctl s +5%
binde=,XF86MonBrightnessDown,exec,brightnessctl s 5%- binde=,XF86MonBrightnessDown,exec,${pkgs.brightnessctl}/bin/brightnessctl s 5%-
# Playback # Playback
binde=,XF86AudioPlay,exec,playerctl play-pause binde=,XF86AudioPlay,exec,${pkgs.playerctl}/bin/playerctl play-pause
binde=,XF86AudioStop,exec,playerctl play-pause binde=,XF86AudioStop,exec,${pkgs.playerctl}/bin/playerctl play-pause
binde=,XF86AudioPrev,exec,playerctl previous binde=,XF86AudioPrev,exec,${pkgs.playerctl}/bin/playerctl previous
binde=,XF86AudioNext,exec,playerctl next binde=,XF86AudioNext,exec,${pkgs.playerctl}/bin/playerctl next
bind = SUPER, H, movefocus, l bind = SUPER, H, movefocus, l
bind = SUPER, L, movefocus, r bind = SUPER, L, movefocus, r
@ -219,10 +219,9 @@
bindm = SUPER, mouse:272, movewindow bindm = SUPER, mouse:272, movewindow
bindm = SUPER, mouse:273, resizewindow bindm = SUPER, mouse:273, resizewindow
exec-once = polkit-kde-authentication-agent-1 exec-once = ${pkgs.waybar}/bin/waybar
exec-once = waybar exec-once = ${pkgs.swaynotificationcenter}/bin/swaync
exec-once = swaync exec-once = ${pkgs.hyprpaper}/bin/hyprpaper
exec-once = hyprpaper exec-once = ${pkgs.protonmail-bridge}/bin/protonmail-bridge -n
exec-once = protonmail-bridge -n exec-once = ${pkgs.davmail}/bin/davmail -notray
exec-once = davmail -notray
'' ''

View file

@ -1,5 +1,7 @@
{ pkgs, config, ... }: { pkgs, config, ... }:
let icon-theme = config.gtk.iconTheme.name; let
icon-theme = config.gtk.iconTheme.name;
power-menu = "power-menu:${pkgs.rofi-power-menu}/bin/rofi-power-menu";
in { in {
home.packages = with pkgs; [ rofi-power-menu libqalculate ]; home.packages = with pkgs; [ rofi-power-menu libqalculate ];
programs.rofi = { programs.rofi = {
@ -8,7 +10,7 @@ in {
pass.enable = true; pass.enable = true;
plugins = with pkgs; [ rofi-calc ]; plugins = with pkgs; [ rofi-calc ];
extraConfig = { extraConfig = {
modi = "window,run,drun,ssh,filebrowser,calc,combi"; modi = "window,run,drun,ssh,filebrowser,calc,${power-menu},combi";
combi-modi = "window,drun,ssh,filebrowser"; combi-modi = "window,drun,ssh,filebrowser";
sort = true; sort = true;
sorting-method = "fzf"; sorting-method = "fzf";