From 580753a0b16ede3d9d7198e4c217c8a66af79eeb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=83=E4=BD=8F=E6=9F=B1=E9=96=93?= Date: Mon, 15 Apr 2024 20:06:54 +0000 Subject: [PATCH] add journaling workflow --- xmonad/xmonad.hs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/xmonad/xmonad.hs b/xmonad/xmonad.hs index aaa91c3..193b9fb 100644 --- a/xmonad/xmonad.hs +++ b/xmonad/xmonad.hs @@ -65,19 +65,20 @@ myConfig = def , manageHook = myManageHook -- Match on certain windows , startupHook = do -- other startup commands - spawnOnce "xrandr --output DisplayPort-0 --mode 1366x768 --pos 1366x0 --rotate left --output HDMI-A-0 --primary --mode 1366x768 --pos 0x0 --rotate normal --output DVI-D-0 --off" + -- spawnOnce "xrandr --output DisplayPort-0 --mode 1366x768 --pos 1366x0 --rotate left --output HDMI-A-0 --primary --mode 1366x768 --pos 0x0 --rotate normal --output DVI-D-0 --off" + spawnOnce "xrandr --output HDMI-A-0 --mode 1366x768 --pos 0x0 --rotate normal" spawnOnce "xrdb /home/hashirama/.Xresources" spawnOnce "/home/hashirama/.local/bin/rotate_wallpapers.sh" spawnOnce "picom -b" spawnOnce "polybar top-monitor-1" spawnOnce "fcitx5 -d -r" - + spawnOnce "emacs --daemon" } `additionalKeysP` [ ("M-d", spawn "rofi -show run") , ("M-s", spawn "bash -c dictpopup") - , ("M-C-s", unGrab *> spawn "scrot -s" ) + , ("M-S-e", spawn "flameshot full --path=/mnt/Data/mpv-screenshots/screenshots/light_novels") , ("M-e", runOrRaise "goldendict" (className =? "GoldenDict-ng")) , ("M-p", runOrRaise "nyxt" (className =? "Nyxt")) , ("M-t", withFocused $ windows . W.sink) -- Toggle float for the focused window @@ -86,7 +87,10 @@ myConfig = def , ("M-q", kill) -- Change the keybinding for closing windows to Mod + Q , ("M-m", spawn "alacritty -e sh -c 'cd /mnt/Data/Music/ && cmus'") , ("M-S-r", spawn "~/.local/bin/run_anki.sh") + , ("M-S-v", spawn "emacsclient --eval '(org-roam-dailies-capture-today)' -d=$DISPLAY") + , ("M-S-d", spawn "~/.local/bin/recent_journal.py | popup") , ("M-r", runOrRaise "~/.local/bin/run_anki.sh" (className =? "Anki")) + , ("M-g", runOrRaise "foliate" (className =? "com.github.johnfactotum.Foliate")) , ("M-S-f", sendToEmptyWorkspace) -- View an empty workspace , ("M-f", viewEmptyWorkspace) -- View an empty workspace , ("M-S-w", spawn "flameshot gui --path=/mnt/Data/mpv-screenshots/screenshots")