Compare commits

...

27 Commits

Author SHA1 Message Date
64de56b9fe General update. 2024-01-08 16:21:00 +01:00
c48c68db9f Fix urxvt spacing. 2024-01-08 16:19:05 +01:00
641b6eacf3 Remove dpi, have new monitor 2024-01-08 16:18:49 +01:00
3718566863 Cleanup $HOME even more. 2024-01-08 16:18:35 +01:00
237e0e2f19 Turn on and off performance mode for nvidia. 2024-01-08 16:18:26 +01:00
865517b876 Make renice be higher. 2024-01-08 16:18:10 +01:00
508c74512c More mblaze function's and fixes for some. 2024-01-08 16:17:48 +01:00
1f382aaad3 Fix up the mvln script. 2024-01-08 16:17:06 +01:00
e430e873a3 Remove unneded function's. 2024-01-08 16:16:56 +01:00
8aeecf0c42 Cleanup that $HOME dir. 2024-01-08 16:16:21 +01:00
9e21a713d9 Remove unneeded alias 2024-01-08 16:16:12 +01:00
4c083277e4 fzf search package to install. 2024-01-08 16:15:55 +01:00
85b7e621a2 Got annoying real fast. 2024-01-08 16:15:17 +01:00
7df7532d68 Toggle that prefix. 2024-01-08 16:15:09 +01:00
e5df68d0dd Remove autopair's, they are more annoying that useful. 2024-01-08 16:15:01 +01:00
5d5c97b993 Fix x11 autostart, fucking borked tmux. 2024-01-08 16:14:44 +01:00
c2251eab55 Update path. 2024-01-08 16:14:25 +01:00
a1f9cbc462 Fix typo. 2024-01-08 16:14:19 +01:00
fd1297e625 General update. 2024-01-08 16:14:01 +01:00
283fa7c767 Update config. 2024-01-08 16:13:44 +01:00
53b4c63d24 Move the path. 2024-01-08 16:13:29 +01:00
fdaa67ef9b Simplify. 2024-01-08 16:13:23 +01:00
0638af581d Fix binding. 2024-01-08 16:13:02 +01:00
542cb7759e Update fix. 2024-01-08 16:12:55 +01:00
8292193561 Fix a bug. 2024-01-08 15:57:34 +01:00
57a7d45b02 Disable darkmode on more websites. 2024-01-08 15:56:58 +01:00
aca4f62f28 Moved emacs config to another repo. 2024-01-08 15:55:18 +01:00
16 changed files with 55 additions and 1169 deletions

View File

@ -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

View File

@ -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

View File

@ -1 +0,0 @@
(setq package-enable-at-startup nil)

View File

@ -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

View File

@ -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")

View File

@ -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");

View File

@ -53,6 +53,7 @@ edit() {
main() {
case "$1" in
"add")
[ -n "$2" ] && QUTE_URL=$2
add
exit
;;

View File

@ -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'

View File

@ -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

View File

@ -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

View File

@ -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
}

View File

@ -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'

View File

@ -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'

View File

@ -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
}

View File

@ -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=" \