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

@ -65,8 +65,8 @@ ext x?html?, has w3m, terminal = w3m "$@"
# Misc # Misc
#------------------------------------------- #-------------------------------------------
# Define the "editor" for text files as first action # Define the "editor" for text files as first action
ext org, has emacsclient, X, flag f = emacsclient -c "$@" ext org, has nvim, X, flag f = nvim -c "$@"
mime ^text, has emacsclient, X, flag f = emacsclient -c "$@" mime ^text, has nvim, X, flag f = nvim -c "$@"
ext 1 = man "$1" ext 1 = man "$1"
ext s[wmf]c, has zsnes, X = zsnes "$1" ext s[wmf]c, has zsnes, X = zsnes "$1"

View file

@ -48,7 +48,6 @@ in
exec-once = hyprprofile Default exec-once = hyprprofile Default
exec-once = emacs --daemon
exec-once = pypr exec-once = pypr
exec-once = ydotoold exec-once = ydotoold
#exec-once = STEAM_FRAME_FORCE_CLOSE=1 steam -silent #exec-once = STEAM_FRAME_FORCE_CLOSE=1 steam -silent
@ -513,15 +512,7 @@ in
#!/bin/sh #!/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; 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 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-hyprland; [ hyprlock ])
++ (with pkgs-nwg-dock-hyprland; [ ++ (with pkgs-nwg-dock-hyprland; [
@ -572,7 +563,6 @@ in
home.file.".config/nwg-dock-pinned".text = '' home.file.".config/nwg-dock-pinned".text = ''
nwggrid nwggrid
Alacritty Alacritty
emacsclientnewframe
qutebrowser qutebrowser
brave-browser brave-browser
librewolf librewolf

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -10,9 +10,9 @@ killall xmobar
killall nm-applet killall nm-applet
# Launch necessary desktop applications # Launch necessary desktop applications
autorandr; autorandr
picom --animations --animation-window-mass 1 --animation-for-open-window zoom --animation-stiffness 200 --experimental-backends && # requires picom-pijulius picom --animations --animation-window-mass 1 --animation-for-open-window zoom --animation-stiffness 200 --experimental-backends && # requires picom-pijulius
xset r rate 350 50 & xset r rate 350 50 &
setxkbmap -option caps:escape & setxkbmap -option caps:escape &
~/.fehbg-stylix & ~/.fehbg-stylix &
~/.config/xmobar/xmobar-st-check.sh & ~/.config/xmobar/xmobar-st-check.sh &
@ -21,6 +21,5 @@ alttab -w 1 -t 240x160 -i 64x64 -sc 1 -bg $colorBg -fg $colorFg -frame $colorSec
nm-applet & nm-applet &
GOMAXPROCS=1 syncthing --no-browser & GOMAXPROCS=1 syncthing --no-browser &
protonmail-bridge --noninteractive & protonmail-bridge --noninteractive &
emacs --daemon &
gnome-keyring-daemon --daemonize --login & gnome-keyring-daemon --daemonize --login &
gnome-keyring-daemon --start --components=secrets & gnome-keyring-daemon --start --components=secrets &

View file

@ -191,7 +191,7 @@ myKeys conf@(XConfig {XMonad.modMask = modm}) =
-- launch a terminal -- launch a terminal
((modm, xK_Return), spawn $ XMonad.terminal conf), ((modm, xK_Return), spawn $ XMonad.terminal conf),
-- launch emacsclient -- launch editor
((modm, xK_a), spawn mySpawnEditor), ((modm, xK_a), spawn mySpawnEditor),
-- launch browser -- launch browser