mirror of
https://github.com/starr-dusT/dotfiles.git
synced 2025-05-19 02:46:06 -07:00
some small changes, mostly org tangle with xmonad.hs
This commit is contained in:
parent
64ee89dcff
commit
eb7c0c0241
12
.bashrc
12
.bashrc
@ -8,13 +8,21 @@ alias update-grub="sudo grub-mkconfig -o /boot/grub/grub.cfg"
|
|||||||
alias update-xmonad="yay -S xmonad-git xmonad-contrib-git xmobar-git"
|
alias update-xmonad="yay -S xmonad-git xmonad-contrib-git xmobar-git"
|
||||||
alias git-python='/usr/bin/git --git-dir=$HOME/devel/python/python-bits-and-bobs --work-tree=$HOME/devel/python'
|
alias git-python='/usr/bin/git --git-dir=$HOME/devel/python/python-bits-and-bobs --work-tree=$HOME/devel/python'
|
||||||
|
|
||||||
|
alias rm='echo "This is not the command you are looking for."; false'
|
||||||
|
alias tp='trash-put'
|
||||||
|
alias te='trash-empty'
|
||||||
|
alias tl='trash-list'
|
||||||
|
alias tre='trash-restore'
|
||||||
|
alias tpm='trash-rm'
|
||||||
|
|
||||||
|
alias mpv='mpv --title="mpv"'
|
||||||
|
|
||||||
alias dot='/usr/bin/git --git-dir=$HOME/.dots --work-tree=$HOME'
|
alias dot='/usr/bin/git --git-dir=$HOME/.dots --work-tree=$HOME'
|
||||||
dot config --local status.showUntrackedFiles no
|
dot config --local status.showUntrackedFiles no
|
||||||
|
|
||||||
|
|
||||||
export PATH="$PATH:$(ruby -e 'print Gem.user_dir')/bin"
|
#export PATH="$PATH:$(ruby -e 'print Gem.user_dir')/bin"
|
||||||
export GEM_HOME=$(ruby -e 'print Gem.user_dir')
|
#export GEM_HOME=$(ruby -e 'print Gem.user_dir')
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# Speed up scrolling for the document viewer
|
# Speed up scrolling for the document viewer
|
||||||
"^brave-browser$"
|
"^firefox$"
|
||||||
None, Up, Button4, 4
|
None, Up, Button4, 4
|
||||||
None, Down, Button5, 4
|
None, Down, Button5, 4
|
||||||
|
|
||||||
|
@ -24,6 +24,8 @@ import XMonad.Util.Run (runProcessWithInput, safeSpawn, spawnPipe)
|
|||||||
import XMonad.Util.SpawnOnce
|
import XMonad.Util.SpawnOnce
|
||||||
import XMonad.Util.EZConfig
|
import XMonad.Util.EZConfig
|
||||||
import XMonad.Util.NamedScratchpad
|
import XMonad.Util.NamedScratchpad
|
||||||
|
import XMonad.Actions.CopyWindow
|
||||||
|
|
||||||
-- Actions
|
-- Actions
|
||||||
import XMonad.Actions.DynamicProjects
|
import XMonad.Actions.DynamicProjects
|
||||||
import XMonad.Actions.DynamicWorkspaces
|
import XMonad.Actions.DynamicWorkspaces
|
||||||
@ -87,11 +89,22 @@ myStartupHook = do
|
|||||||
------------------------------------------------------------------------
|
------------------------------------------------------------------------
|
||||||
-- KEYBINDS
|
-- KEYBINDS
|
||||||
------------------------------------------------------------------------
|
------------------------------------------------------------------------
|
||||||
|
|
||||||
|
-- Toggle global window
|
||||||
|
toggleGlobal :: X ()
|
||||||
|
toggleGlobal = do
|
||||||
|
ws <- wsContainingCopies
|
||||||
|
if null ws
|
||||||
|
then windows copyToAll
|
||||||
|
else killAllOtherCopies
|
||||||
|
|
||||||
myKeys conf@(XConfig {XMonad.modMask = modm}) = M.fromList $
|
myKeys conf@(XConfig {XMonad.modMask = modm}) = M.fromList $
|
||||||
-- launch a terminal
|
-- launch a terminal
|
||||||
[ ((modm, xK_Return), spawn $ XMonad.terminal conf)
|
[ ((modm, xK_Return), spawn $ XMonad.terminal conf)
|
||||||
-- Launch emacs
|
-- Launch emacs
|
||||||
, ((modm, xK_e), spawn "emacsclient -c")
|
, ((modm, xK_e), spawn "emacsclient -c")
|
||||||
|
-- Make focused window always visible
|
||||||
|
, ((modm, xK_a ), toggleGlobal)
|
||||||
-- Launch emacs
|
-- Launch emacs
|
||||||
, ((modm .|. shiftMask, xK_e), spawn "emacsclient -e '(save-buffers-kill-emacs)'")
|
, ((modm .|. shiftMask, xK_e), spawn "emacsclient -e '(save-buffers-kill-emacs)'")
|
||||||
-- Launch emacs
|
-- Launch emacs
|
||||||
@ -119,9 +132,9 @@ myKeys conf@(XConfig {XMonad.modMask = modm}) = M.fromList $
|
|||||||
-- move window to project prompt
|
-- move window to project prompt
|
||||||
, ((modm .|. shiftMask, xK_BackSpace), removeWorkspace)
|
, ((modm .|. shiftMask, xK_BackSpace), removeWorkspace)
|
||||||
-- terminal scratchpad
|
-- terminal scratchpad
|
||||||
, ((modm, xK_n), namedScratchpadAction myScratchPads "newsboat")
|
, ((modm, xK_n), namedScratchpadAction myScratchPads "scr-mpv")
|
||||||
-- discord scrathpad
|
-- discord scrathpad
|
||||||
, ((modm, xK_d), namedScratchpadAction myScratchPads "discord-canary")
|
, ((modm, xK_d), namedScratchpadAction myScratchPads "discord")
|
||||||
-- terminal scrathpad
|
-- terminal scrathpad
|
||||||
, ((modm .|. shiftMask, xK_d), namedScratchpadAction myScratchPads "terminal")
|
, ((modm .|. shiftMask, xK_d), namedScratchpadAction myScratchPads "terminal")
|
||||||
-- start gamemode
|
-- start gamemode
|
||||||
@ -129,7 +142,7 @@ myKeys conf@(XConfig {XMonad.modMask = modm}) = M.fromList $
|
|||||||
-- start gamemode
|
-- start gamemode
|
||||||
, ((modm .|. shiftMask, xK_g), spawn "killall gamemoded")
|
, ((modm .|. shiftMask, xK_g), spawn "killall gamemoded")
|
||||||
-- launch firefox
|
-- launch firefox
|
||||||
, ((modm, xK_F1), spawn "brave")
|
, ((modm, xK_F1), spawn "firefox")
|
||||||
-- launch discord
|
-- launch discord
|
||||||
, ((modm, xK_F2), spawn "discord")
|
, ((modm, xK_F2), spawn "discord")
|
||||||
-- launch lutris
|
-- launch lutris
|
||||||
@ -218,8 +231,8 @@ myLayout = spacing 2 $ smartBorders (tiled ||| Mirror tiled ||| Full ||| ThreeCo
|
|||||||
------------------------------------------------------------------------
|
------------------------------------------------------------------------
|
||||||
myScratchPads :: [NamedScratchpad]
|
myScratchPads :: [NamedScratchpad]
|
||||||
myScratchPads = [ NS "terminal" spawnTerm findTerm manageTerm
|
myScratchPads = [ NS "terminal" spawnTerm findTerm manageTerm
|
||||||
, NS "newsboat" spawnNews findNews manageNews
|
, NS "scr-mpv" findMpv
|
||||||
, NS "discord-canary" spawnDiscord findDiscord manageDiscord ]
|
, NS "discord" spawnDiscord findDiscord manageDiscord ]
|
||||||
where
|
where
|
||||||
spawnTerm = myTerminal ++ " -t terminal"
|
spawnTerm = myTerminal ++ " -t terminal"
|
||||||
findTerm = title =? "terminal"
|
findTerm = title =? "terminal"
|
||||||
@ -230,16 +243,9 @@ myScratchPads = [ NS "terminal" spawnTerm findTerm manageTerm
|
|||||||
t = 0.95 -h
|
t = 0.95 -h
|
||||||
l = 0.95 -w
|
l = 0.95 -w
|
||||||
|
|
||||||
spawnNews = myTerminal ++ " -t ncmpcpp -e ncmpcpp"
|
findMpv = title =? "scr-mpv"
|
||||||
findNews = title =? "ncmpcpp"
|
|
||||||
manageNews = customFloating $ W.RationalRect l t w h
|
|
||||||
where
|
|
||||||
h = 0.5
|
|
||||||
w = 0.5
|
|
||||||
t = 0.25
|
|
||||||
l = 0.25
|
|
||||||
|
|
||||||
spawnDiscord = "discord-canary"
|
spawnDiscord = "discord"
|
||||||
findDiscord = appName =? "discord"
|
findDiscord = appName =? "discord"
|
||||||
manageDiscord = customFloating $ W.RationalRect l t w h
|
manageDiscord = customFloating $ W.RationalRect l t w h
|
||||||
where
|
where
|
||||||
|
Loading…
x
Reference in New Issue
Block a user