Upload files to ".xmonad"

main
berkeley 2024-08-25 16:08:08 +00:00
parent 16d551960f
commit 9508579513
1 changed files with 21 additions and 13 deletions

View File

@ -17,10 +17,10 @@ import XMonad.Util.Ungrab
import XMonad.Layout.Magnifier
import XMonad.Layout.ThreeColumns
import XMonad.Layout.Spacing
import XMonad.Util.SpawnOnce
import XMonad.Actions.SpawnOn
import XMonad.Hooks.EwmhDesktops
import XMonad.Util.SpawnOnce (spawnOnce)
-- run or raise
import XMonad.Actions.WindowGo (raiseMaybe, runOrRaise)
@ -40,7 +40,6 @@ import XMonad.StackSet
import XMonad.Layout
import XMonad.Layout.Reflect
import XMonad.Layout.WindowArranger
-- Window Rearragement
import Data.List (find)
import XMonad.Actions.EasyMotion (selectWindow)
@ -64,32 +63,39 @@ myConfig = def
, focusedBorderColor = "#000000"
, manageHook = myManageHook -- Match on certain windows
, startupHook = do
spawnOnce "/files/scripts/music.sh"
spawnOnce "/files/scripts/git.sh"
spawnOnce "/files/scripts/bg.sh"
spawnOnce "/home/berkeley/git/cleanall/clearner.sh"
spawnOnce "bash /files/scripts/music.sh"
spawnOnce "bash /files/scripts/git.sh"
spawnOnce "bash /files/scripts/bg.sh"
spawnOnce "bash /files/scripts/forge.sh"
spawnOnce "bash /files/scripts/forgejo.sh"
spawnOnce "bash /files/scripts/flacss.sh"
spawnOnce "bash /home/berkeley/git/cleanall/clearner.sh"
-- other startup commands
spawnOnce "xrandr --dpi 4096"
spawnOnce ""xrandr --output HDMI-A-0 --mode 1920x1080 --rate 60.00"
spawnOnce "xrandr --output HDMI-A-0 --mode 1920x1080 --rate 60.00"
spawnOnce "xrdb /home/berkeley/.Xresources"
spawnOnce "picom -b"
spawnOnce "tor"
spawnOnce "icecat"
spawnOnce "feh --bg-fill /virt/pv/xxx.png"
spawnOnce "qutebrowser"
spawnOn "2" "alacritty"
spawnOn "3" "icecat"
spawnOn "4" "steam"
spawnOn "9" "pavucontrol"
spawnOnce "polybar top-monitor-1"
spawnOnce "fcitx5 -d -r"
}
`additionalKeysP`
[ ("M-d", spawn "rofi -show run")
, ("M-0", runOrRaise "alacritty" (className =? "alacritty"))
, ("M-C-s", unGrab *> spawn "scrot -s")
, ("M-i", runOrRaise "chromium" (className =? "Chromium-browser"))
, ("M-i", runOrRaise "qutebrowser" (className =? "Chromium-browser"))
, ("M-e", runOrRaise "icecat" (className =? "GNU IceCat"))
, ("M-p", runOrRaise "openshot-qt" (className =? "openshot"))
, ("M-o", runOrRaise "obs" (className =? "obs"))
, ("M-t", withFocused $ windows . W.sink) -- Toggle float for the focused window
, ("M-ç", runOrRaise "torbrowser" (className =? "Tor Browser"))
, ("M-x", runOrRaise "torbrowser" (className =? "Tor Browser"))
, ("M-S-q", return ()) -- Unbind Mod + Shift + Q, to avoid quiting the wm.
, ("M-q", kill) -- Change the keybinding for closing windows to Mod + Q
, ("M-m", spawn "alacritty -e sh -c 'cd /files/music/ && cmus'")
@ -98,9 +104,11 @@ myConfig = def
, ("M-a", runOrRaise "torbrowser" (className =? "TorBrowser"))
, ("M-l", sendToEmptyWorkspace) -- View an empty workspace
, ("M-f", viewEmptyWorkspace) -- View an empty workspace
, ("M-z", spawn "flameshot gui --path=/tmp/")
, ("M-z", spawn "flameshot gui")
, ("M-w", spawn "~/.local/bin/copy_image.sh")
, ("M-v", easySwap)
, ("M-k", spawn "bash /files/scripts/tmp.sh")
, ("M-ç", spawn "bash /files/scripts/mullvad.sh")
]
easySwap :: X ()