From 8b2cb792ff16225d4871fc8f979ebf1aa153bf85 Mon Sep 17 00:00:00 2001 From: Uyanide Date: Mon, 13 Oct 2025 01:35:32 +0200 Subject: [PATCH] update keybinds --- README.md | 6 +++--- niri/config.kdl | 5 +++-- niri/config.kdl.template | 5 +++-- quickshell/Services/IPCService.qml | 8 ++++++++ 4 files changed, 17 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 657b7e9..9868463 100644 --- a/README.md +++ b/README.md @@ -23,8 +23,8 @@ - **Colorscheme**: Catppuccin Mocha - **App Launcher**: Rofi - **Logout Screen**: Wlogout -- **Desktop Widgets**: Eww | Quickshell -- **Wallpaper Daemon**: SWWW +- **Desktop Widgets**: Eww | **Quickshell** +- **Wallpaper Daemon**: Swww - **Notification Daemon**: Mako ## Hyprland & friends @@ -45,7 +45,7 @@ Not based on, but heavily depends on modules from [noctalia-shell](https://githu - `lyrics`, scrolling lyrics player, depends on [a small program](https://github.com/Uyanide/spotify-lyrics) from myself (which also happens to be my frist Golang program :D). - `lyrics-single`, similar to `lyrics`, but only with a single line and can be easily embeded into the status bar. -## SWWW +## Swww In Niri, the wallpaper will be automatically blurred when there are windows in focus. And the backdrop also has a blurred wallpaper applied to it. These are implemented in [wallpaper-daemon](https://github.com/Uyanide/dotfiles/blob/main/.scripts/wallpaper-daemon). diff --git a/niri/config.kdl b/niri/config.kdl index 904f147..6c5b185 100644 --- a/niri/config.kdl +++ b/niri/config.kdl @@ -284,8 +284,9 @@ binds { Mod+Space { spawn-sh "qs ipc call panels toggleControlCenter"; } Mod+Shift+L { spawn-sh "qs ipc call lyrics toggleBarLyrics"; } - // Waybar - Mod+Shift+K { spawn-sh "waybar-toggle"; } + // Quickshell + Mod+Shift+K { spawn-sh "pkill quickshell || quickshell"; } + Mod+I { spawn-sh "qs ipc call idleInhibitor toggleInhibitor"; } // Rofi Mod+D { spawn-sh "pkill rofi || rofi -show run"; } diff --git a/niri/config.kdl.template b/niri/config.kdl.template index 7376d22..3b6b24c 100644 --- a/niri/config.kdl.template +++ b/niri/config.kdl.template @@ -284,8 +284,9 @@ binds { Mod+Space { spawn-sh "qs ipc call panels toggleControlCenter"; } Mod+Shift+L { spawn-sh "qs ipc call lyrics toggleBarLyrics"; } - // Waybar - Mod+Shift+K { spawn-sh "waybar-toggle"; } + // Quickshell + Mod+Shift+K { spawn-sh "pkill quickshell || quickshell"; } + Mod+I { spawn-sh "qs ipc call idleInhibitor toggleInhibitor"; } // Rofi Mod+D { spawn-sh "pkill rofi || rofi -show run"; } diff --git a/quickshell/Services/IPCService.qml b/quickshell/Services/IPCService.qml index 66a5425..25e2ea8 100644 --- a/quickshell/Services/IPCService.qml +++ b/quickshell/Services/IPCService.qml @@ -32,4 +32,12 @@ Item { target: "lyrics" } + IpcHandler { + function toggleInhibitor() { + Caffeine.manualToggle(); + } + + target: "idleInhibitor" + } + }