disable emac 2

This commit is contained in:
ponymushama 2024-07-23 16:41:06 +08:00
parent 1e18ba1bd5
commit a74ddd2ee8
9 changed files with 16 additions and 32 deletions

View file

@ -48,7 +48,6 @@ in
exec-once = hyprprofile Default
exec-once = emacs --daemon
exec-once = pypr
exec-once = ydotoold
#exec-once = STEAM_FRAME_FORCE_CLOSE=1 steam -silent
@ -513,15 +512,7 @@ in
#!/bin/sh
if pgrep -x nixos-rebuild > /dev/null || pgrep -x home-manager > /dev/null || pgrep -x kdenlive > /dev/null || pgrep -x FL64.exe > /dev/null || pgrep -x blender > /dev/null || pgrep -x flatpak > /dev/null;
then echo "Shouldn't suspend"; sleep 10; else echo "Should suspend"; systemctl suspend; fi
'')
(pkgs.makeDesktopItem {
name = "emacsclientnewframe";
desktopName = "Emacs Client New Frame";
exec = "emacsclient -c -a emacs";
terminal = false;
icon = "emacs";
type = "Application";
})])
'')])
++
(with pkgs-hyprland; [ hyprlock ])
++ (with pkgs-nwg-dock-hyprland; [
@ -572,7 +563,6 @@ in
home.file.".config/nwg-dock-pinned".text = ''
nwggrid
Alacritty
emacsclientnewframe
qutebrowser
brave-browser
librewolf

View file

@ -1,5 +1,4 @@
#!/bin/sh
hyprctl keyword unbind SUPER,S;
hyprctl keyword bind SUPER,S,exec,container-open Bard;
emacsclient --eval '(org-roam-switch-db "Bard.p" t)'
hyprctl keyword unbind SUPER,S
hyprctl keyword bind SUPER,S,exec,container-open Bard

View file

@ -1,5 +1,4 @@
#!/bin/sh
hyprctl keyword unbind SUPER,S;
hyprctl keyword bind SUPER,S,exec,qutebrowser;
emacsclient --eval '(org-roam-switch-db "Personal.p" t)'
hyprctl keyword unbind SUPER,S
hyprctl keyword bind SUPER,S,exec,qutebrowser

View file

@ -1,5 +1,4 @@
#!/bin/sh
hyprctl keyword unbind SUPER,S;
hyprctl keyword bind SUPER,S,exec,container-open Gamedev;
emacsclient --eval '(org-roam-switch-db "Gamedev.s" t)'
hyprctl keyword unbind SUPER,S
hyprctl keyword bind SUPER,S,exec,container-open Gamedev

View file

@ -1,5 +1,4 @@
#!/bin/sh
hyprctl keyword unbind SUPER,S;
hyprctl keyword bind SUPER,S,exec,container-open Teaching;
emacsclient --eval '(org-roam-switch-db "Teaching.p" t)'
hyprctl keyword unbind SUPER,S
hyprctl keyword bind SUPER,S,exec,container-open Teaching

View file

@ -1,5 +1,4 @@
#!/bin/sh
hyprctl keyword unbind SUPER,S;
hyprctl keyword bind SUPER,S,exec,container-open Tech;
emacsclient --eval '(org-roam-switch-db "Producer.p\/LibrePhoenix.p" t)'
hyprctl keyword unbind SUPER,S
hyprctl keyword bind SUPER,S,exec,container-open Tech