Added XF86 audio controls
This commit is contained in:
parent
ea261287b5
commit
2570055671
2 changed files with 31 additions and 2 deletions
|
|
@ -44,8 +44,9 @@ $bwd = ~/.config/rofi/launcher/type-1/bwd.sh
|
||||||
### AUTOSTART ###
|
### AUTOSTART ###
|
||||||
#################
|
#################
|
||||||
|
|
||||||
exec-once = hyprpaper
|
#exec-once = hyprpaper
|
||||||
exec-once = hyprpanel
|
#exec-once = hyprpanel
|
||||||
|
exec-once = dms run
|
||||||
exec-once = hypridle
|
exec-once = hypridle
|
||||||
exec-once = nextcloud
|
exec-once = nextcloud
|
||||||
exec-once = systemctl --user start hyprpolkitagent
|
exec-once = systemctl --user start hyprpolkitagent
|
||||||
|
|
|
||||||
|
|
@ -156,6 +156,7 @@ spawn-at-startup "kitty"
|
||||||
spawn-at-startup "app.zen_browser.zen"
|
spawn-at-startup "app.zen_browser.zen"
|
||||||
spawn-at-startup "nextcloud"
|
spawn-at-startup "nextcloud"
|
||||||
spawn-at-startup "element-desktop"
|
spawn-at-startup "element-desktop"
|
||||||
|
spawn-at-startup "Jan"
|
||||||
|
|
||||||
xwayland-satellite {
|
xwayland-satellite {
|
||||||
path "/run/current-system/sw/bin/xwayland-satellite"
|
path "/run/current-system/sw/bin/xwayland-satellite"
|
||||||
|
|
@ -258,6 +259,16 @@ window-rule {
|
||||||
open-maximized false
|
open-maximized false
|
||||||
open-floating true
|
open-floating true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
window-rule {
|
||||||
|
match app-id="Jan"
|
||||||
|
open-maximized false
|
||||||
|
open-floating true
|
||||||
|
default-column-width { proportion 0.2; }
|
||||||
|
default-window-height { proportion 1.0; }
|
||||||
|
default-floating-position x=0 y=0 relative-to="bottom-left"
|
||||||
|
open-on-workspace "special"
|
||||||
|
}
|
||||||
window-rule {
|
window-rule {
|
||||||
match app-id=r#"^org\.telegram\.desktop$"# title="^Media viewer$"
|
match app-id=r#"^org\.telegram\.desktop$"# title="^Media viewer$"
|
||||||
open-fullscreen false
|
open-fullscreen false
|
||||||
|
|
@ -326,6 +337,7 @@ workspace "generic1"
|
||||||
workspace "generic2"
|
workspace "generic2"
|
||||||
workspace "music"
|
workspace "music"
|
||||||
workspace "windows"
|
workspace "windows"
|
||||||
|
workspace "special"
|
||||||
|
|
||||||
binds {
|
binds {
|
||||||
// === System & Overview ===
|
// === System & Overview ===
|
||||||
|
|
@ -333,6 +345,10 @@ binds {
|
||||||
Mod+Tab repeat=false { toggle-overview; }
|
Mod+Tab repeat=false { toggle-overview; }
|
||||||
Mod+Shift+Slash { show-hotkey-overlay; }
|
Mod+Shift+Slash { show-hotkey-overlay; }
|
||||||
|
|
||||||
|
// === AI toggle ===
|
||||||
|
Mod+A { spawn "~/.config/niri/scripts/toggleai.sh"; }
|
||||||
|
|
||||||
|
|
||||||
// === Application Launchers ===
|
// === Application Launchers ===
|
||||||
Mod+Return hotkey-overlay-title="Open Terminal" { spawn "kitty"; }
|
Mod+Return hotkey-overlay-title="Open Terminal" { spawn "kitty"; }
|
||||||
Mod+E { spawn "nautilus"; }
|
Mod+E { spawn "nautilus"; }
|
||||||
|
|
@ -374,6 +390,18 @@ binds {
|
||||||
XF86AudioMicMute allow-when-locked=true {
|
XF86AudioMicMute allow-when-locked=true {
|
||||||
spawn "dms" "ipc" "call" "audio" "micmute";
|
spawn "dms" "ipc" "call" "audio" "micmute";
|
||||||
}
|
}
|
||||||
|
XF86AudioNext allow-when-locked=true {
|
||||||
|
spawn "playerctl" "next";
|
||||||
|
}
|
||||||
|
XF86AudioPrev allow-when-locked=true {
|
||||||
|
spawn "playerctl" "previous";
|
||||||
|
}
|
||||||
|
XF86AudioPause allow-when-locked=true {
|
||||||
|
spawn "playerctl" "play-pause";
|
||||||
|
}
|
||||||
|
XF86AudioPlay allow-when-locked=true {
|
||||||
|
spawn "playerctl" "play-pause";
|
||||||
|
}
|
||||||
|
|
||||||
XF86KbdBrightnessUp allow-when-locked=true {
|
XF86KbdBrightnessUp allow-when-locked=true {
|
||||||
spawn "kbdbrite.sh" "up";
|
spawn "kbdbrite.sh" "up";
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue