mirror of
https://github.com/RGBCube/ncc
synced 2025-07-30 11:37:44 +00:00
Move fuzzel hyprland config into fuzzel.nix
This commit is contained in:
parent
ac373c9b75
commit
fcd7ce9933
2 changed files with 17 additions and 15 deletions
|
@ -1,6 +1,23 @@
|
|||
{ config, lib, ... }: with lib;
|
||||
|
||||
desktopUserHomeConfiguration {
|
||||
wayland.windowManager.hyprland.settings = {
|
||||
bindl = [(replaceStrings [ "\n;" "\n" ] [ ";" "" ] ''
|
||||
,XF86PowerOff,exec,
|
||||
pkill fuzzel;
|
||||
echo -en "Suspend\0icon\x1fsystem-suspend\nHibernate\0icon\x1fsystem-suspend-hibernate-alt2\nPower Off\0icon\x1fsystem-shutdown\nReboot\0icon\x1fsystem-reboot"
|
||||
| fuzzel --dmenu
|
||||
| tr --delete " "
|
||||
| tr '[:upper:]' '[:lower:]'
|
||||
| ifne xargs systemctl
|
||||
'')];
|
||||
|
||||
bind = [
|
||||
"SUPER, SPACE, exec, pkill fuzzel; fuzzel"
|
||||
"SUPER, V , exec, pkill fuzzel; cliphist list | fuzzel --dmenu | cliphist decode | wl-copy"
|
||||
];
|
||||
};
|
||||
|
||||
programs.fuzzel = with config.theme; enabled {
|
||||
settings.main = {
|
||||
dpi-aware = false;
|
||||
|
|
|
@ -44,18 +44,6 @@ in desktopSystemConfiguration {
|
|||
|
||||
exec = [ "pkill swaybg; swaybg --image ${./wallpaper.png}" ];
|
||||
|
||||
bindl = [
|
||||
(replaceStrings [ "\n;" "\n" ] [ ";" "" ] ''
|
||||
,XF86PowerOff,exec,
|
||||
pkill fuzzel;
|
||||
echo -en "Suspend\0icon\x1fsystem-suspend\nHibernate\0icon\x1fsystem-suspend-hibernate-alt2\nPower Off\0icon\x1fsystem-shutdown\nReboot\0icon\x1fsystem-reboot"
|
||||
| fuzzel --dmenu
|
||||
| tr --delete " "
|
||||
| tr '[:upper:]' '[:lower:]'
|
||||
| ifne xargs systemctl
|
||||
'')
|
||||
];
|
||||
|
||||
bindle = [
|
||||
",XF86AudioRaiseVolume , exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+ --limit 1.5"
|
||||
",XF86AudioLowerVolume , exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"
|
||||
|
@ -137,9 +125,6 @@ in desktopSystemConfiguration {
|
|||
"SUPER , T , exec, thunar"
|
||||
"SUPER , C , exec, hyprpicker --autocopy"
|
||||
|
||||
"SUPER, SPACE, exec, pkill fuzzel; fuzzel"
|
||||
"SUPER, V , exec, pkill fuzzel; cliphist list | fuzzel --dmenu | cliphist decode | wl-copy"
|
||||
|
||||
" , PRINT, exec, pkill grim; grim -g \"$(slurp -w 0)\" - | swappy -f - -o - | wl-copy --type image/png"
|
||||
"ALT, PRINT, exec, pkill grim; grim - | swappy -f - -o - | wl-copy --type image/png"
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue