Small emacs service

This commit is contained in:
Aleksandr Lebedev 2025-11-10 00:27:20 +01:00
parent 4db81bbde7
commit 54ff0cc3ae
5 changed files with 1141 additions and 24 deletions

View file

@ -274,7 +274,7 @@ layout {
spawn-sh-at-startup "emacs --daemon"
// To run a shell command (with variables, pipes, etc.), use spawn-sh-at-startup:
spawn-sh-at-startup "dms run"
spawn-sh-at-startup "qs -c dms"
spawn-sh-at-startup "wl-paste --watch cliphist store &"
spawn-sh-at-startup "nextcloud --background"
@ -382,38 +382,38 @@ binds {
// Use spawn-sh to run a shell command. Do this if you need pipes, multiple commands, etc.
Mod+Space hotkey-overlay-title="Application Launcher" {
spawn "dms" "ipc" "call" "spotlight" "toggle";
spawn-sh "qs -c dms ipc call spotlight toggle";
}
Mod+V hotkey-overlay-title="Clipboard Manager" {
spawn "dms" "ipc" "call" "clipboard" "toggle";
spawn-sh "qs -c dms ipc call clipboard toggle";
}
Mod+M hotkey-overlay-title="Task Manager" {
spawn "dms" "ipc" "call" "processlist" "toggle";
spawn-sh "qs -c dms ipc call processlist toggle";
}
Super+L hotkey-overlay-title="Lock Screen" {
spawn "dms" "ipc" "call" "lock" "lock";
spawn-sh "qs -c dms ipc call lock lock";
}
Mod+Y hotkey-overlay-title="Browse Wallpapers" {
spawn "dms" "ipc" "call" "dankdash" "wallpaper";
spawn-sh "qs -c dms ipc call dankdash wallpaper";
}
XF86AudioRaiseVolume allow-when-locked=true {
spawn "dms" "ipc" "call" "audio" "increment" "3";
spawn-sh "qs -c dms ipc call audio increment 3";
}
XF86AudioLowerVolume allow-when-locked=true {
spawn "dms" "ipc" "call" "audio" "decrement" "3";
spawn-sh "qs -c dms ipc call audio decrement 3";
}
XF86AudioMute allow-when-locked=true {
spawn "dms" "ipc" "call" "audio" "mute";
spawn-sh "qs -c dms ipc call audio mute";
}
XF86AudioMicMute allow-when-locked=true {
spawn "dms" "ipc" "call" "audio" "micmute";
spawn-sh "qs -c dms ipc call audio micmute";
}
XF86MonBrightnessUp allow-when-locked=true {
spawn "dms" "ipc" "call" "brightness" "increment" "5" "";
spawn-sh "qs -c dms ipc call brightness increment 5 ''";
}
// You can override the default device for e.g. keyboards by adding the device name to the last param
XF86MonBrightnessDown allow-when-locked=true {
spawn "dms" "ipc" "call" "brightness" "decrement" "5" "";
spawn-sh "qs -c dms ipc call brightness decrement 5 ''";
}
// Night mode toggle
Mod+Shift+N allow-when-locked=true {