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 = ./extra.conf
monitor=,preferred,auto,auto
@ -96,21 +96,21 @@
bind = SUPER ALT, S, exec, [workspace 5] alacritty -e ncspot
# 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
# Sound
bindl=,XF86AudioMute,exec,pamixer -t
bindl=,XF86AudioMicMute,exec,pamixer --default-source -t
binde=,XF86AudioRaiseVolume,exec,pamixer -i 5
binde=,XF86AudioLowerVolume,exec,pamixer -d 5
bindl=,XF86AudioMute,exec,${pkgs.pamixer}/bin/pamixer -t
bindl=,XF86AudioMicMute,exec,${pkgs.pamixer}/bin/pamixer --default-source -t
binde=,XF86AudioRaiseVolume,exec,${pkgs.pamixer}/bin/pamixer -i 5
binde=,XF86AudioLowerVolume,exec,${pkgs.pamixer}/bin/pamixer -d 5
# Brightness
binde=,XF86MonBrightnessUp,exec,brightnessctl s +5%
binde=,XF86MonBrightnessDown,exec,brightnessctl s 5%-
binde=,XF86MonBrightnessUp,exec,${pkgs.brightnessctl}/bin/brightnessctl s +5%
binde=,XF86MonBrightnessDown,exec,${pkgs.brightnessctl}/bin/brightnessctl s 5%-
# Playback
binde=,XF86AudioPlay,exec,playerctl play-pause
binde=,XF86AudioStop,exec,playerctl play-pause
binde=,XF86AudioPrev,exec,playerctl previous
binde=,XF86AudioNext,exec,playerctl next
binde=,XF86AudioPlay,exec,${pkgs.playerctl}/bin/playerctl play-pause
binde=,XF86AudioStop,exec,${pkgs.playerctl}/bin/playerctl play-pause
binde=,XF86AudioPrev,exec,${pkgs.playerctl}/bin/playerctl previous
binde=,XF86AudioNext,exec,${pkgs.playerctl}/bin/playerctl next
bind = SUPER, H, movefocus, l
bind = SUPER, L, movefocus, r
@ -219,10 +219,9 @@
bindm = SUPER, mouse:272, movewindow
bindm = SUPER, mouse:273, resizewindow
exec-once = polkit-kde-authentication-agent-1
exec-once = waybar
exec-once = swaync
exec-once = hyprpaper
exec-once = protonmail-bridge -n
exec-once = davmail -notray
exec-once = ${pkgs.waybar}/bin/waybar
exec-once = ${pkgs.swaynotificationcenter}/bin/swaync
exec-once = ${pkgs.hyprpaper}/bin/hyprpaper
exec-once = ${pkgs.protonmail-bridge}/bin/protonmail-bridge -n
exec-once = ${pkgs.davmail}/bin/davmail -notray
''

View file

@ -1,5 +1,7 @@
{ 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 {
home.packages = with pkgs; [ rofi-power-menu libqalculate ];
programs.rofi = {
@ -8,7 +10,7 @@ in {
pass.enable = true;
plugins = with pkgs; [ rofi-calc ];
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";
sort = true;
sorting-method = "fzf";