Compare commits
6 Commits
cb0e70d04e
...
a5d6c5e56b
Author | SHA1 | Date | |
---|---|---|---|
a5d6c5e56b | |||
ac3e8edb51 | |||
def66dc28a | |||
a613c33712 | |||
1cbeb01cbc | |||
c478fc36c2 |
@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
sudo ryzenadj-service &
|
||||
ryzenctl normal
|
||||
|
||||
# disbale laptop monitor if external is connected
|
||||
external-monitor.sh
|
||||
@ -35,6 +35,9 @@ xmonad --recompile
|
||||
xwallpaper --stretch "$HOME"/pics/wallpapers/wawe.jpg
|
||||
|
||||
[ -f "$HOME/.cache/gaming.lock" ] && rm "$HOME"/.cache/gaming.lock
|
||||
[ -f "$HOME/.cache/dk.lock" ] && rm "$HOME"/.cache/dk.lock
|
||||
|
||||
# Run xmonad with dbus
|
||||
exec dbus-launch --exit-with-session xmonad
|
||||
# Run dk with dbus
|
||||
# exec dbus-launch --exit-with-session dk
|
||||
|
@ -20,6 +20,8 @@ REDIRECT_MAP = {
|
||||
"www.tiktok.com": operator.methodcaller("setHost", "proxytok.cronyakatsuki.xyz"),
|
||||
"imgur.com": operator.methodcaller("setHost", "rimgo.cronyakatsuki.xyz"),
|
||||
"www.imgur.com": operator.methodcaller("setHost", "rimgo.cronyakatsuki.xyz"),
|
||||
"github.com": operator.methodcaller("setHost", "gh.cronyakatsuki.xyz"),
|
||||
"gist.github.com": operator.methodcaller("setHost", "gh.cronyakatsuki.xyz/gist"),
|
||||
}
|
||||
|
||||
|
||||
|
@ -51,7 +51,7 @@ super + p; {g,e,t,u,w,d,k,l,b}
|
||||
|
||||
# Regular binding some other one's
|
||||
super + {d,F12,c}
|
||||
{dmenu_run, dmenu-ryzenadj, clipmenu -l 10}
|
||||
{dmenu_run, dmenu-ryzenctl, clipmenu -l 10}
|
||||
|
||||
Print
|
||||
dmenu-screenshot
|
||||
|
@ -6,6 +6,7 @@ import qualified XMonad.StackSet as W
|
||||
-- Actions
|
||||
import XMonad.Actions.CycleWS (toggleWS')
|
||||
import XMonad.Actions.MouseResize
|
||||
import XMonad.Actions.SinkAll (sinkAll)
|
||||
|
||||
-- Data
|
||||
import qualified Data.Map as M
|
||||
@ -98,6 +99,7 @@ myScratchPads = [ NS "terminal" spawnTerm findTerm manageTerm
|
||||
, NS "wiki" spawnWiki findWiki manageWiki
|
||||
, NS "notes" spawnNotes findNotes manageNotes
|
||||
, NS "profanity" spawnProfanity findProfanity manageProfanity
|
||||
, NS "godot" spawnGodot findGodot manageGodot
|
||||
]
|
||||
where
|
||||
spawnTerm = myTerminal ++ " --class scratchpad,scratchpad"
|
||||
@ -132,6 +134,14 @@ myScratchPads = [ NS "terminal" spawnTerm findTerm manageTerm
|
||||
w = 0.8
|
||||
t = 0.9 -h
|
||||
l = 0.9 -w
|
||||
spawnGodot = myTerminal ++ " --class godot,godot -e nvim --listen /tmp/godot.pipe"
|
||||
findGodot = className =? "godot"
|
||||
manageGodot = customFloating $ W.RationalRect l t w h
|
||||
where
|
||||
h = 0.8
|
||||
w = 0.8
|
||||
t = 0.9 -h
|
||||
l = 0.9 -w
|
||||
|
||||
|
||||
--Makes setting the spacingRaw simpler to write. The spacingRaw module adds a configurable amount of space around windows.
|
||||
@ -227,6 +237,7 @@ myKeys = \c -> mkKeymap c $
|
||||
, ("M-s w", namedScratchpadAction myScratchPads "wiki") -- Toggle scratchpad
|
||||
, ("M-s n", namedScratchpadAction myScratchPads "notes") -- Toggle scratchpad
|
||||
, ("M-s p", namedScratchpadAction myScratchPads "profanity") -- Toggle scratchpad
|
||||
, ("M-s g", namedScratchpadAction myScratchPads "godot") -- Toggle scratchpad
|
||||
, ("M-1", viewDesktop 0) -- Check workspace 1
|
||||
, ("M-2", viewDesktop 1) -- Check workspace 2
|
||||
, ("M-3", viewDesktop 2) -- Check workspace 3
|
||||
@ -254,6 +265,7 @@ myKeys = \c -> mkKeymap c $
|
||||
, ("M-C-7", shiftAndView 6) -- Send window and check workspace 7
|
||||
, ("M-C-8", shiftAndView 7) -- Send window and check workspace 8
|
||||
, ("M-C-9", shiftAndView 8) -- Send window and check workspace 9
|
||||
, ("M-f", sinkAll) -- Nuke solution for simplestFloat layout
|
||||
]
|
||||
where
|
||||
toggleFloat w = windows (\s -> if M.member w (W.floating s)
|
||||
|
@ -12,4 +12,5 @@ eval "$(ssh-agent -s)" &> /dev/null
|
||||
if [[ -z $DISPLAY ]] && (( $EUID != 0 )) {
|
||||
[[ ${TTY/tty} != $TTY ]] && (( ${TTY:8:1} == 1 )) &&
|
||||
exec startx $HOME/.config/X11/xinitrc 1> ~/.local/share/logs/xsession-errors 2>&1
|
||||
# exec startx $HOME/bin/misc/start-dwl 1> ~/.local/share/logs/dwl-errors 2>&1
|
||||
}
|
||||
|
@ -17,12 +17,20 @@ alias less='less -R'
|
||||
alias vi='nvim'
|
||||
alias nnn='LC_COLLATE="C" nnn -xeaG'
|
||||
|
||||
# Installing packages
|
||||
# Nice emerge aliases
|
||||
alias i='sudo emerge -av $(EIX_LIMIT=0 eix --only-names | fzf --multi | tr "\n" " ")'
|
||||
alias genlop='watch -cn 5 genlop -ci'
|
||||
alias tefetch='tail -f /var/log/emerge-fetch.log'
|
||||
|
||||
# Humna readable + better output
|
||||
alias df='df -h -x devtmpfs -x tmpfs -x usbfs -x loop'
|
||||
alias free='free -m -h'
|
||||
alias free='free -mht'
|
||||
|
||||
# nicer ps look
|
||||
alias ps='ps auxf'
|
||||
|
||||
# continue download by default
|
||||
alias wget='wget -c'
|
||||
|
||||
# Just cause I can't remember the command at all
|
||||
alias update-grub='sudo grub-mkconfig -o /boot/grub/grub.cfg'
|
||||
@ -43,9 +51,9 @@ alias b='buku --suggest'
|
||||
|
||||
# ntfy aliases
|
||||
alias ntfy='curl -u ":$(cat .config/ntfy/access_token)"'
|
||||
alias update_done='curl -u ":$(cat .config/ntfy/access_token)" -H "t: System update" -d "System update is finished" ntfy.cronyakatsuki.xyz/portage'
|
||||
alias update_failed='curl -u ":$(cat .config/ntfy/access_token)" -H "t: System update" -H "p:4" -d "System update failed" ntfy.cronyakatsuki.xyz/portage'
|
||||
alias sync_done='curl -u ":$(cat .config/ntfy/access_token)" -H "t: System sync" -d "System sync is finished" ntfy.cronyakatsuki.xyz/portage'
|
||||
alias update_done='curl -u ":$(cat .config/ntfy/access_token)" -H "t: System update" -d "System update is finished" https://ntfy.cronyakatsuki.xyz/portage'
|
||||
alias update_failed='curl -u ":$(cat .config/ntfy/access_token)" -H "t: System update" -H "p:4" -d "System update failed" https://ntfy.cronyakatsuki.xyz/portage'
|
||||
alias sync_done='curl -u ":$(cat .config/ntfy/access_token)" -H "t: System sync" -d "System sync is finished" https://ntfy.cronyakatsuki.xyz/portage'
|
||||
|
||||
# cryptography
|
||||
alias rot13="tr 'A-Za-z' 'N-ZA-Mn-za-m'"
|
||||
|
Loading…
Reference in New Issue
Block a user