Compare commits
27 Commits
185c00e861
...
64de56b9fe
Author | SHA1 | Date | |
---|---|---|---|
64de56b9fe | |||
c48c68db9f | |||
641b6eacf3 | |||
3718566863 | |||
237e0e2f19 | |||
865517b876 | |||
508c74512c | |||
1f382aaad3 | |||
e430e873a3 | |||
8aeecf0c42 | |||
9e21a713d9 | |||
4c083277e4 | |||
85b7e621a2 | |||
7df7532d68 | |||
e5df68d0dd | |||
5d5c97b993 | |||
c2251eab55 | |||
a1f9cbc462 | |||
fd1297e625 | |||
283fa7c767 | |||
53b4c63d24 | |||
fdaa67ef9b | |||
0638af581d | |||
542cb7759e | |||
8292193561 | |||
57a7d45b02 | |||
aca4f62f28 |
@ -2,22 +2,19 @@
|
||||
|
||||
sudo ryzenadj-service &
|
||||
|
||||
# Enable Tear Free
|
||||
xrandr --output eDP --set TearFree on
|
||||
# disbale laptop monitor if external is connected
|
||||
external-monitor.sh
|
||||
|
||||
# toggle tear-free on
|
||||
toggle-xrandr on
|
||||
|
||||
# Set disable screensaver and set dmps to 0
|
||||
xset dpms 0 0 0
|
||||
xset s off
|
||||
xset s noblank
|
||||
|
||||
# set scaling to 1.25
|
||||
xrandr --dpi 120
|
||||
|
||||
# Load xresources
|
||||
xrdb $HOME/.config/X11/xresources
|
||||
|
||||
# Disable mouse acceleration and change sensitivity
|
||||
mouse-settings
|
||||
xrdb "$HOME"/.config/X11/xresources
|
||||
|
||||
# Hide the mouse after 5 seconds
|
||||
unclutter --timeout 5 &
|
||||
@ -29,15 +26,15 @@ xsetroot -cursor_name left_ptr
|
||||
setxkbmap -option caps:escape
|
||||
|
||||
# Use the xresources settings
|
||||
xrdb -merge $HOME/.Xresources
|
||||
xrdb -merge "$HOME"/.Xresources
|
||||
|
||||
# Recompile xmonad
|
||||
xmonad --recompile
|
||||
|
||||
# Set wallpaper
|
||||
xwallpaper --stretch $HOME/pics/wallpapers/wawe.jpg
|
||||
xwallpaper --stretch "$HOME"/pics/wallpapers/wawe.jpg
|
||||
|
||||
[ -f "$HOME/.cache/gaming.lock" ] && rm $HOME/.cache/gaming.lock
|
||||
[ -f "$HOME/.cache/gaming.lock" ] && rm "$HOME"/.cache/gaming.lock
|
||||
|
||||
# Run xmonad with dbus
|
||||
exec dbus-launch --exit-with-session xmonad
|
||||
|
@ -1,9 +1,9 @@
|
||||
! 1.25 dpi
|
||||
Xft.dpi: 120
|
||||
! Xft.dpi: 120
|
||||
|
||||
URxvt.*font: xft:CaskaydiaCove Nerd Font:size=11,xft:Noto Sans:size=11,xft:Noto Color Emoji:size=11,xft:IPAGothic:size=11
|
||||
|
||||
URxvt.letterSpace: -1
|
||||
URxvt.letterSpace: -1
|
||||
|
||||
! special
|
||||
URxvt.background: #303446
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -1 +0,0 @@
|
||||
(setq package-enable-at-startup nil)
|
@ -24,7 +24,7 @@ softrealtime=auto
|
||||
|
||||
; GameMode can renice game processes. You can put any value between 0 and 20 here, the value
|
||||
; will be negated and applied as a nice value (0 means no change). Defaults to 0.
|
||||
renice=10
|
||||
renice=15
|
||||
|
||||
; By default, GameMode adjusts the iopriority of clients to BE/0, you can put any value
|
||||
; between 0 and 7 here (with 0 being highest priority), or one of the special values
|
||||
@ -89,10 +89,12 @@ inhibit_screensaver=1
|
||||
[custom]
|
||||
; Custom scripts (executed using the shell) when gamemode starts and ends
|
||||
start=notify-send "Gamemode" "Started"
|
||||
nvidia-settings -a '[gpu:0]/GPUPowerMizerMode=1'
|
||||
; wlr-randr --output eDP-1 --scale 1
|
||||
; /home/me/bin/stop_ethmining.sh
|
||||
|
||||
end=notify-send "Gamemode" "Stoped"
|
||||
nvidia-settings -a '[gpu:0]/GPUPowerMizerMode=2'
|
||||
; wlr-randr --output eDP-1 --scale 1.25
|
||||
; /home/me/bin/start_ethmining.sh
|
||||
|
||||
|
@ -23,7 +23,7 @@ c.colors.webpage.preferred_color_scheme = "dark"
|
||||
c.colors.webpage.darkmode.enabled = True
|
||||
c.colors.webpage.bg = "black"
|
||||
c.colors.webpage.darkmode.algorithm = "lightness-cielab"
|
||||
c.colors.webpage.darkmode.threshold.text = 150
|
||||
c.colors.webpage.darkmode.threshold.foreground = 150
|
||||
c.colors.webpage.darkmode.threshold.background = 100
|
||||
c.colors.webpage.darkmode.policy.images = "never"
|
||||
# c.colors.webpage.darkmode.grayscale.images = 0.35
|
||||
@ -114,7 +114,7 @@ config.bind("B", "buku open -t")
|
||||
config.bind(",ba", "buku add")
|
||||
config.bind(",be", "buku edit")
|
||||
config.bind(",bd", "buku delete")
|
||||
config.bind(",bfa", "hint links spawn --userscript buku add")
|
||||
config.bind(",bfa", "hint links spawn --userscript buku add {hint-url}")
|
||||
|
||||
# yt-dlp
|
||||
config.bind(",y", "spawn --userscript yt-dlp")
|
||||
|
@ -3,6 +3,9 @@
|
||||
// @match https://monkeytype.com/*
|
||||
// @match https://nc.cronyakatsuki.xyz/*
|
||||
// @match https://company-mode.github.io/*
|
||||
// @match https://adventofcode.com/*
|
||||
// @match https://cronyakatsuki.xyz/qbt/*
|
||||
// @match https://www.keybr.com/*
|
||||
// ==/UserScript==
|
||||
|
||||
const meta = document.createElement("meta");
|
||||
|
@ -53,6 +53,7 @@ edit() {
|
||||
main() {
|
||||
case "$1" in
|
||||
"add")
|
||||
[ -n "$2" ] && QUTE_URL=$2
|
||||
add
|
||||
exit
|
||||
;;
|
||||
|
@ -29,7 +29,7 @@ bind-key -T copy-mode-vi v send-keys -X begin-selection
|
||||
bind-key -T copy-mode-vi C-v send-keys -X rectangle-toggle
|
||||
bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancel
|
||||
|
||||
bind '"' split-window -v -c "#{pane_current_path}"
|
||||
bind "'" split-window -v -c "#{pane_current_path}"
|
||||
bind '\' split-window -h -c "#{pane_current_path}"
|
||||
|
||||
# Floating popup keybindings
|
||||
@ -83,4 +83,4 @@ set -g @plugin 'catppuccin/tmux'
|
||||
set -g @plugin 'tmux-plugins/tmux-battery'
|
||||
set -g @plugin 'wfxr/tmux-fzf-url'
|
||||
|
||||
run '~/.tmux/plugins/tpm/tpm'
|
||||
run '~/.local/share/tmux/plugins/tpm/tpm'
|
||||
|
@ -1,9 +1,10 @@
|
||||
Config { lowerOnStart = True
|
||||
, overrideRedirect = True
|
||||
, font = "xft:IBMPlex Mono:size=10:antialias=true,IpaGothic:size=11:antialias=true,Symbols Nerd Font:size=10:antialias=true"
|
||||
, font = "CaskaydiaCove Nerd Font 10"
|
||||
, additionalFonts = ["IpaGothic Bold 11"]
|
||||
, bgColor = "#303446"
|
||||
, fgColor = "#c6d0f5"
|
||||
, position = TopSize L 100 27
|
||||
, position = TopSize L 100 24
|
||||
, commands = [ Run Cpu
|
||||
[ "--template", " <total>%"] 90
|
||||
, Run Com "sb-cpu-temp" [] "cpu-temp" 100
|
||||
|
@ -89,7 +89,7 @@ myStartupHook = do
|
||||
spawnOnce "dunst"
|
||||
spawnOnce "keepassxc"
|
||||
spawnOnce "/usr/libexec/polkit-gnome-authentication-agent-1"
|
||||
spawn ("sleep 2 && trayer-srg --edge top --align right --widthtype request --padding 6 --iconspacing 7 --SetDockType true --SetPartialStrut true --expand true --monitor 1 --transparent true --alpha 0 --tint 0x303446 --height 27 -l")
|
||||
spawn ("sleep 2 && trayer-srg --edge top --align right --widthtype request --padding 6 --iconspacing 7 --SetDockType true --SetPartialStrut true --expand true --monitor 1 --transparent true --alpha 0 --tint 0x303446 --height 24 -l")
|
||||
setWMName "LG3D" -- Fix java programs
|
||||
|
||||
-- My scratchpads
|
||||
@ -146,11 +146,11 @@ mySpacing' i = spacingRaw True (Border i i i i) True (Border i i i i) True
|
||||
-- My layouts
|
||||
tall = renamed [Replace "tall"]
|
||||
$ withBorder myBorderWidth
|
||||
$ mySpacing 7
|
||||
$ mySpacing 4
|
||||
$ ResizableTall 1 (3/100) (1/2) []
|
||||
monocle = renamed [Replace "monocle"]
|
||||
$ withBorder myBorderWidth
|
||||
$ mySpacing 7
|
||||
$ mySpacing 4
|
||||
$ Full
|
||||
floats = renamed [Replace "floats"]
|
||||
$ withBorder myBorderWidth
|
||||
@ -170,8 +170,7 @@ myLayoutHook = lessBorders OnlyScreenFloat
|
||||
-- My manage hook
|
||||
myManageHook :: ManageHook
|
||||
myManageHook = composeAll
|
||||
[ className =? "librewolf" --> doShiftAndGo ( myWorkspaces !! 0)
|
||||
, className =? "qutebrowser" --> doShiftAndGo ( myWorkspaces !! 0)
|
||||
[ className =? "qutebrowser" --> doShiftAndGo ( myWorkspaces !! 0)
|
||||
, className =? "newsboat" --> doShiftAndGo ( myWorkspaces !! 3)
|
||||
, className =? "videos" --> doShiftAndGo ( myWorkspaces !! 3)
|
||||
, className =? "ytfzf" --> doShiftAndGo ( myWorkspaces !! 3)
|
||||
@ -186,6 +185,7 @@ myManageHook = composeAll
|
||||
, className =? "cartridges" --> doShiftAndGo ( myWorkspaces !! 5)
|
||||
, className =? "Cemu" --> doShiftAndGo ( myWorkspaces !! 5)
|
||||
, className =? "xemu" --> doShiftAndGo ( myWorkspaces !! 5)
|
||||
, className =? "librewolf" --> doShiftAndGo ( myWorkspaces !! 8)
|
||||
, isDialog --> doCenterFloat <+> doF W.swapUp
|
||||
, className =? "Gimp" --> doFloat <+> doF W.swapUp
|
||||
, className =? "confirm" --> doFloat <+> doF W.swapUp
|
||||
|
@ -1,14 +1,15 @@
|
||||
export QT_QPA_PLATFORMTHEME=qt5ct
|
||||
|
||||
# Path exprt (.zshenv method doesn't work with gentoo for no real reason)
|
||||
# Path export (.zshenv method doesn't work with gentoo for no real reason)
|
||||
typeset -U PATH path
|
||||
path=("$HOME/.local/bin" "$HOME/bin/dmenu" "$HOME/bin/misc" "$HOME/bin/statusbar" "$HOME/bin/tmux" "$path[@]")
|
||||
path=("$HOME/.local/bin" "$HOME/.local/share/go/bin" "$HOME/bin/dmenu" "$HOME/bin/misc" "$HOME/bin/statusbar" "$HOME/bin/tmux" "$path[@]")
|
||||
export PATH
|
||||
|
||||
export SXHKD_SHELL='/bin/sh'
|
||||
|
||||
[[ $(fgconsole 2>/dev/null) == 1 ]] && exec startx $HOME/.config/X11/xinitrc &> /dev/null
|
||||
# [[ $(fgconsole 2>/dev/null) == 1 ]] && exec start-dwl &> /dev/null
|
||||
# [[ $(fgconsole 2>/dev/null) == 1 ]] && exec start-hyprland &> /dev/null
|
||||
|
||||
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
|
||||
}
|
||||
|
@ -11,15 +11,14 @@ eval "$(zoxide init zsh)"
|
||||
|
||||
# Plugins
|
||||
plug "kutsan/zsh-system-clipboard"
|
||||
plug "hlissner/zsh-autopair"
|
||||
plug "zap-zsh/supercharge"
|
||||
plug "xPMo/zsh-toggle-command-prefix"
|
||||
plug "zap-zsh/completions"
|
||||
plug "zap-zsh/vim"
|
||||
plug "zsh-users/zsh-autosuggestions"
|
||||
plug "zsh-users/zsh-completions"
|
||||
plug "chivalryq/git-alias"
|
||||
plug "zap-zsh/fzf"
|
||||
plug "zap-zsh/magic-enter"
|
||||
plug "zdharma-continuum/fast-syntax-highlighting"
|
||||
plug "zsh-users/zsh-history-substring-search"
|
||||
plug "MichaelAquilina/zsh-you-should-use"
|
||||
@ -67,7 +66,3 @@ trap nnn_cd EXIT
|
||||
if [ ! -z "$TMUX" ] && [ -d "./env" ]; then
|
||||
. ./env/bin/activate
|
||||
fi
|
||||
|
||||
# Magic enter settings
|
||||
MAGIC_ENTER_GIT_COMMAND='gst -u'
|
||||
MAGIC_ENTER_OTHER_COMMAND='ls'
|
||||
|
@ -17,13 +17,13 @@ alias less='less -R'
|
||||
alias vi='nvim'
|
||||
alias nnn='LC_COLLATE="C" nnn -xeaG'
|
||||
|
||||
# Installing packages
|
||||
alias i='sudo emerge -av $(EIX_LIMIT=0 eix --only-names | fzf --multi | tr "\n" " ")'
|
||||
|
||||
# Humna readable + better output
|
||||
alias df='df -h -x devtmpfs -x tmpfs -x usbfs -x loop'
|
||||
alias free='free -m -h'
|
||||
|
||||
# speed up
|
||||
alias spotdl='spotdl --format mp3 --output "{artist}/{artists} - {title}" --threads 16 --sponsor-block'
|
||||
|
||||
# Just cause I can't remember the command at all
|
||||
alias update-grub='sudo grub-mkconfig -o /boot/grub/grub.cfg'
|
||||
|
||||
@ -57,3 +57,6 @@ alias irssi="tmux attach -t irssi || tmux new -s irssi irssi"
|
||||
alias xboxdrv='tmux attach -t xboxdrv ||\
|
||||
tmux new -s xboxdrv xboxdrv --config $HOME/.config/xboxdrv/hyperx-clutch.conf\
|
||||
--type xbox --detach-kernel-driver --silent'
|
||||
|
||||
# config cleanup
|
||||
alias mbsync='mbsync -c "$XDG_CONFIG_HOME"/isync/mbsyncrc'
|
||||
|
@ -1,31 +1,4 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Cd into a directory using fzf
|
||||
fcd () {
|
||||
dir=$(fd -a --type d --hidden --exclude ".git|.github" --color=never | fzf --prompt "Choose directory: ")
|
||||
[ -z $dir ] && return 1
|
||||
cd $dir
|
||||
}
|
||||
|
||||
# Cd into specific repo
|
||||
fr () {
|
||||
dir=$(fd . ~/repos --maxdepth 1 -a --type d --hidden --exclude ".git|.github" --color=never | fzf --prompt "Choose directory: ")
|
||||
[ -z $dir ] && return 1
|
||||
cd $dir
|
||||
}
|
||||
|
||||
# Remove choosed stuff
|
||||
frm () {
|
||||
remove=$(fd --hidden --maxdepth 1 --color=never | fzf -m --prompt "Choose to delete: ")
|
||||
[ -z $remove ] && return 1
|
||||
rm -rf $(printf '%s' $remove)
|
||||
}
|
||||
|
||||
# Quicly choose stuff to add using fzf
|
||||
fga () {
|
||||
git add $(git status -s | awk '{ print $2 }' | fzf -m)
|
||||
}
|
||||
|
||||
# Open a script in path with vim quicly
|
||||
vish () {
|
||||
nvim $(which $1)
|
||||
@ -40,7 +13,7 @@ md () {
|
||||
mvln () {
|
||||
from=$(readlink -f $1)
|
||||
to="$2"
|
||||
[ ! -d "$(dirname $to)" ] && mkdir "$(dirname $to)"
|
||||
[ ! -d "$(dirname $to)" ] && mkdir -p "$(dirname $to)"
|
||||
mv $from $to
|
||||
ln -s $to $from
|
||||
}
|
||||
@ -67,11 +40,6 @@ vf(){
|
||||
--preview 'bat --color=always --style=plain --pager=never {}' | xargs -r $EDITOR
|
||||
}
|
||||
|
||||
# history search
|
||||
h() {
|
||||
print -z $( ([ -n "$ZSH_NAME" ] && fc -l 1 || history) | fzf +s --tac | sed -E 's/ *[0-9]*\*? *//' | sed -E 's/\\/\\\\/g')
|
||||
}
|
||||
|
||||
# Copy current working directory
|
||||
cpdir() {
|
||||
pwd | tr -d "\r\n" | xclip -sel c
|
||||
@ -82,11 +50,6 @@ cf() {
|
||||
cat $1 | xclip -sel c
|
||||
}
|
||||
|
||||
# Open a bookmark from buku in browser
|
||||
fb() {
|
||||
buku --nostdin -p -f5 | fzf | cut -f1 | xargs -r buku --nostdin -o
|
||||
}
|
||||
|
||||
# Extract all archive in current path and remove the archive
|
||||
erm() {
|
||||
for file in *.zip; do
|
||||
@ -141,6 +104,7 @@ mnew () {
|
||||
mbsync -V $profile
|
||||
mlist -s "$maildir"/INBOX | msort -dr | mseq -S
|
||||
fi
|
||||
minc "$maildir/INBOX" > /dev/null
|
||||
}
|
||||
|
||||
# Get full mail for current profile including threads
|
||||
@ -154,4 +118,11 @@ mall () {
|
||||
mbsync -V $profile
|
||||
mlist "$maildir"/INBOX | mthread -r -S "$sent" | mseq -S
|
||||
fi
|
||||
minc "$maildir/INBOX" > /dev/null
|
||||
}
|
||||
|
||||
# Set mail as read
|
||||
mread() {
|
||||
mflag -S $1
|
||||
mseq -f : | mseq -S
|
||||
}
|
||||
|
2
.zshenv
2
.zshenv
@ -62,6 +62,8 @@ export PARALLEL_HOME="$XDG_CONFIG_HOME/parallel"
|
||||
export XCURSOR_PATH=/usr/share/icons:$XDG_DATA_HOME/icons
|
||||
export MYPY_CACHE_DIR="$XDG_CACHE_HOME"/mypy
|
||||
export INPUTRC="$XDG_CONFIG_HOME"/readline/inputrc
|
||||
export ANDROID_HOME="$XDG_DATA_HOME"/android
|
||||
export W3M_DIR="$XDG_DATA_HOME"/w3m
|
||||
|
||||
# fzf catppuccin theme
|
||||
export FZF_DEFAULT_OPTS=" \
|
||||
|
Loading…
Reference in New Issue
Block a user