Upload files to ".xmonad"
parent
16d551960f
commit
9508579513
|
@ -17,10 +17,10 @@ import XMonad.Util.Ungrab
|
||||||
import XMonad.Layout.Magnifier
|
import XMonad.Layout.Magnifier
|
||||||
import XMonad.Layout.ThreeColumns
|
import XMonad.Layout.ThreeColumns
|
||||||
import XMonad.Layout.Spacing
|
import XMonad.Layout.Spacing
|
||||||
|
import XMonad.Util.SpawnOnce
|
||||||
|
import XMonad.Actions.SpawnOn
|
||||||
|
|
||||||
import XMonad.Hooks.EwmhDesktops
|
import XMonad.Hooks.EwmhDesktops
|
||||||
import XMonad.Util.SpawnOnce (spawnOnce)
|
|
||||||
|
|
||||||
|
|
||||||
-- run or raise
|
-- run or raise
|
||||||
import XMonad.Actions.WindowGo (raiseMaybe, runOrRaise)
|
import XMonad.Actions.WindowGo (raiseMaybe, runOrRaise)
|
||||||
|
@ -40,7 +40,6 @@ import XMonad.StackSet
|
||||||
import XMonad.Layout
|
import XMonad.Layout
|
||||||
import XMonad.Layout.Reflect
|
import XMonad.Layout.Reflect
|
||||||
import XMonad.Layout.WindowArranger
|
import XMonad.Layout.WindowArranger
|
||||||
|
|
||||||
-- Window Rearragement
|
-- Window Rearragement
|
||||||
import Data.List (find)
|
import Data.List (find)
|
||||||
import XMonad.Actions.EasyMotion (selectWindow)
|
import XMonad.Actions.EasyMotion (selectWindow)
|
||||||
|
@ -64,32 +63,39 @@ myConfig = def
|
||||||
, focusedBorderColor = "#000000"
|
, focusedBorderColor = "#000000"
|
||||||
, manageHook = myManageHook -- Match on certain windows
|
, manageHook = myManageHook -- Match on certain windows
|
||||||
, startupHook = do
|
, startupHook = do
|
||||||
spawnOnce "/files/scripts/music.sh"
|
spawnOnce "bash /files/scripts/music.sh"
|
||||||
spawnOnce "/files/scripts/git.sh"
|
spawnOnce "bash /files/scripts/git.sh"
|
||||||
spawnOnce "/files/scripts/bg.sh"
|
spawnOnce "bash /files/scripts/bg.sh"
|
||||||
spawnOnce "/home/berkeley/git/cleanall/clearner.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
|
-- other startup commands
|
||||||
spawnOnce "xrandr --dpi 4096"
|
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 "xrdb /home/berkeley/.Xresources"
|
||||||
spawnOnce "picom -b"
|
spawnOnce "picom -b"
|
||||||
spawnOnce "tor"
|
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 "polybar top-monitor-1"
|
||||||
spawnOnce "fcitx5 -d -r"
|
spawnOnce "fcitx5 -d -r"
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
`additionalKeysP`
|
`additionalKeysP`
|
||||||
[ ("M-d", spawn "rofi -show run")
|
[ ("M-d", spawn "rofi -show run")
|
||||||
, ("M-0", runOrRaise "alacritty" (className =? "alacritty"))
|
, ("M-0", runOrRaise "alacritty" (className =? "alacritty"))
|
||||||
, ("M-C-s", unGrab *> spawn "scrot -s")
|
, ("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-e", runOrRaise "icecat" (className =? "GNU IceCat"))
|
||||||
, ("M-p", runOrRaise "openshot-qt" (className =? "openshot"))
|
, ("M-p", runOrRaise "openshot-qt" (className =? "openshot"))
|
||||||
, ("M-o", runOrRaise "obs" (className =? "obs"))
|
, ("M-o", runOrRaise "obs" (className =? "obs"))
|
||||||
, ("M-t", withFocused $ windows . W.sink) -- Toggle float for the focused window
|
, ("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-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-q", kill) -- Change the keybinding for closing windows to Mod + Q
|
||||||
, ("M-m", spawn "alacritty -e sh -c 'cd /files/music/ && cmus'")
|
, ("M-m", spawn "alacritty -e sh -c 'cd /files/music/ && cmus'")
|
||||||
|
@ -98,9 +104,11 @@ myConfig = def
|
||||||
, ("M-a", runOrRaise "torbrowser" (className =? "TorBrowser"))
|
, ("M-a", runOrRaise "torbrowser" (className =? "TorBrowser"))
|
||||||
, ("M-l", sendToEmptyWorkspace) -- View an empty workspace
|
, ("M-l", sendToEmptyWorkspace) -- View an empty workspace
|
||||||
, ("M-f", viewEmptyWorkspace) -- 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-w", spawn "~/.local/bin/copy_image.sh")
|
||||||
, ("M-v", easySwap)
|
, ("M-v", easySwap)
|
||||||
|
, ("M-k", spawn "bash /files/scripts/tmp.sh")
|
||||||
|
, ("M-ç", spawn "bash /files/scripts/mullvad.sh")
|
||||||
]
|
]
|
||||||
|
|
||||||
easySwap :: X ()
|
easySwap :: X ()
|
||||||
|
|
Loading…
Reference in New Issue