mirror of
				https://github.com/frebib/dotfiles.git
				synced 2024-06-14 12:57:23 +00:00 
			
		
		
		
	Compare commits
	
		
			3 Commits
		
	
	
		
			cbb44c99ee
			...
			frebib-PC
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						
						
							
						
						fea0831c13
	
				 | 
					
					
						|||
| 
						
						
							
						
						ea5f537303
	
				 | 
					
					
						|||
| 
						
						
							
						
						2907e24656
	
				 | 
					
					
						
@@ -16,8 +16,8 @@ export MOZ_USE_XINPUT2=1 # enable pixel-accurate scrolling in firefox
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# Load Xorg resources and set the DPI
 | 
			
		||||
xrdb -merge $XDG_CONFIG_HOME/X11/xresources
 | 
			
		||||
xrandr --dpi $(xrdb -query | grep -i xft.dpi | cut -d: -f2)
 | 
			
		||||
xrdb -merge "$XDG_CONFIG_HOME/X11/xresources"
 | 
			
		||||
#"$XDG_CONFIG_HOME/scripts/dpi" "$(xrdb -query | grep -i xft.dpi | cut -d: -f2 | xargs)"
 | 
			
		||||
 | 
			
		||||
setxkbmap -option caps:none
 | 
			
		||||
xset r rate 200 18
 | 
			
		||||
 
 | 
			
		||||
@@ -36,5 +36,5 @@ Xft.hinting:    true
 | 
			
		||||
Xft.hintstyle:  hintfull
 | 
			
		||||
Xft.lcdfilter:  lcddefault
 | 
			
		||||
 | 
			
		||||
Xcursor.size: 16
 | 
			
		||||
Xcursor.theme: Breeze_Obsidian
 | 
			
		||||
Xcursor.size: 28
 | 
			
		||||
Xcursor.theme: BreezeX-Black
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										2
									
								
								aliases
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								aliases
									
									
									
									
									
								
							@@ -53,7 +53,7 @@ alias scp='scp -r'
 | 
			
		||||
alias dd='dd status=progress'
 | 
			
		||||
alias wget='wget --hsts-file=$XDG_DATA_HOME/wget/hsts-file'
 | 
			
		||||
alias vi=vim
 | 
			
		||||
alias grip='grip --user=frebib --pass=$GRIP_API_KEY'
 | 
			
		||||
alias grip='grip --pass=$GRIP_API_KEY'
 | 
			
		||||
alias acme.sh='$XDG_CONFIG_HOME/acme.sh/acme.sh --home $XDG_CONFIG_HOME/acme.sh --config-home $XDG_CONFIG_HOME/acme.sh --log $XDG_CONFIG_HOME/acme.sh/acme.sh.log'
 | 
			
		||||
alias acmesh='$XDG_CONFIG_HOME/acme.sh/acme.sh --home $XDG_CONFIG_HOME/acme.sh --config-home $XDG_CONFIG_HOME/acme.sh --log $XDG_CONFIG_HOME/acme.sh/acme.sh.log'
 | 
			
		||||
alias alpine-sdk="docker run -ti --rm \
 | 
			
		||||
 
 | 
			
		||||
@@ -22,6 +22,6 @@ WEECHAT_HOME="$XDG_CONFIG_HOME/weechat"
 | 
			
		||||
XINITRC="$XDG_CONFIG_HOME/X11/xinitrc"
 | 
			
		||||
ZDOTDIR="$XDG_CONFIG_HOME/zsh"
 | 
			
		||||
 | 
			
		||||
PATH="${PATH}:${GOPATH}/bin:${GEM_HOME}/bin"
 | 
			
		||||
PATH="${PATH}:${GOPATH}/bin:${GEM_HOME}/ruby/3.0.0/bin"
 | 
			
		||||
 | 
			
		||||
# vim: ft=sh
 | 
			
		||||
 
 | 
			
		||||
@@ -5,11 +5,11 @@
 | 
			
		||||
[core]
 | 
			
		||||
	autocrlf = input
 | 
			
		||||
	excludesfile = /home/frebib/.config/git/gitignore
 | 
			
		||||
	pager = diff-highlight | $PAGER
 | 
			
		||||
	pager = delta --diff-so-fancy --color-only
 | 
			
		||||
[init]
 | 
			
		||||
	defaultBranch = master
 | 
			
		||||
[interactive]
 | 
			
		||||
	diffFilter = diff-highlight
 | 
			
		||||
	diffFilter = delta --diff-so-fancy --color-only
 | 
			
		||||
[commit]
 | 
			
		||||
	gpgsign = true
 | 
			
		||||
[fetch]
 | 
			
		||||
@@ -38,6 +38,7 @@
 | 
			
		||||
	unpushed = !git log --oneline @{u}..HEAD
 | 
			
		||||
	leaders = !git shortlog -s -n --all --no-merges
 | 
			
		||||
	defbranch = !git symbolic-ref refs/remotes/origin/HEAD | sed \"s@^refs/remotes/origin/@@\"
 | 
			
		||||
	rbranch = for-each-ref --sort='committerdate' --format="%20%20%(refname:short)" refs/heads/
 | 
			
		||||
[advice]
 | 
			
		||||
	statusHints = false
 | 
			
		||||
	pushUpdateRejected = false
 | 
			
		||||
 
 | 
			
		||||
@@ -1,8 +1,8 @@
 | 
			
		||||
gtk-theme-name="Arc-Dark"
 | 
			
		||||
gtk-icon-theme-name="Xenlism-Wildfire"
 | 
			
		||||
gtk-font-name="sans 9"
 | 
			
		||||
gtk-cursor-theme-name="Breeze_Obsidian"
 | 
			
		||||
gtk-cursor-theme-size=16
 | 
			
		||||
gtk-cursor-theme-name="BreezeX-Black"
 | 
			
		||||
gtk-cursor-theme-size=28
 | 
			
		||||
gtk-toolbar-style=GTK_TOOLBAR_BOTH
 | 
			
		||||
gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
 | 
			
		||||
gtk-button-images=1
 | 
			
		||||
 
 | 
			
		||||
@@ -3,8 +3,8 @@ gtk-theme-name=Arc-Dark
 | 
			
		||||
gtk-icon-theme-name=Xenlism-Wildfire
 | 
			
		||||
gtk-application-prefer-dark-theme=true
 | 
			
		||||
gtk-font-name=sans 9
 | 
			
		||||
gtk-cursor-theme-name=Breeze_Obsidian
 | 
			
		||||
gtk-cursor-theme-size=16
 | 
			
		||||
gtk-cursor-theme-name=BreezeX-Black
 | 
			
		||||
gtk-cursor-theme-size=28
 | 
			
		||||
gtk-toolbar-style=GTK_TOOLBAR_BOTH
 | 
			
		||||
gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
 | 
			
		||||
gtk-button-images=1
 | 
			
		||||
 
 | 
			
		||||
@@ -139,18 +139,18 @@ bindsym $mod+v                  exec systemd-run-i3 -n alacritty -e sh -c "($SHE
 | 
			
		||||
bindsym $mod+Ctrl+v             exec systemd-run-i3 -n alacritty --class floating -e sh -c "($SHELL -c $EDITOR || : ) && $SHELL"
 | 
			
		||||
bindsym $mod+l                  exec dm-tool switch-to-greeter
 | 
			
		||||
bindsym $mod+space              exec "pkill rofi; rofi -show run -sidebar-mode -terminal i3-sensible-terminal -normal-window -run-command 'systemd-run-i3 -n {cmd}'"
 | 
			
		||||
bindsym $mod+Shift+p            exec rofi-pass --root $(grep path ~/.config/gopass/config.yml | sed -E 's|^.*fs\+file://||g' | tr '\n' ':') | sed 's/:$//g'
 | 
			
		||||
bindsym $mod+Shift+p            exec systemd-run-i3 -n rofi-rbw
 | 
			
		||||
bindsym $mod+Shift+e            exec "pkill rofi; rofi -show emoji -modi emoji -normal-window"
 | 
			
		||||
bindsym $mod+Shift+i            exec rofi-fontawesome
 | 
			
		||||
bindsym --release Print         exec screenshot
 | 
			
		||||
bindsym --release $mod+Print    exec screenshot --clip
 | 
			
		||||
bindsym --release Print         exec screenshot --clip
 | 
			
		||||
bindsym --release $mod+Print    exec screenshot
 | 
			
		||||
bindsym --release Shift+Print   exec screenshot --active
 | 
			
		||||
bindsym --release $mod+Shift+Print exec screenshot --active --clip
 | 
			
		||||
bindsym $mod+Shift+x            exec systemd-run-i3 -n i3-sensible-terminal --class floating-term --hold -e /bin/echo "$(xprop -id $(xdotool getactivewindow))"
 | 
			
		||||
bindsym $mod+$alt+space         exec systemd-run-i3 -s background -n ~/.config/i3/cycleaudio.py
 | 
			
		||||
bindsym $mod+numbersign         exec systemd-run-i3 -n i3-sensible-terminal --hold -e sh -c 'xclip -o | gpg --decrypt 2>&1'
 | 
			
		||||
bindsym $mod+r                  exec bash -c 'pwgen -snc 32 1 | tee >(xargs notify-send Generated\ password\:) | xclip -i -r'
 | 
			
		||||
bindsym $mod+g                  exec systemd-run-i3 -n notify-send -c transfer "$(gist -PRpc)"
 | 
			
		||||
bindsym $mod+g                  exec systemd-run-i3 -n bash -xc 'xclip -o | gh gist create -d Paste - 2>&1 | grep -vE "^[-✓] Creat(ing|ed) gist" | tee >(xclip -i >&2 >/dev/null) | xargs -I% --null -r notify-send -c transfer -- %'
 | 
			
		||||
bindsym --release $mod+i        exec systemd-run-i3 -s background -n sh -c 'sleep 0.5 && xdotool getactivewindow type --delay 10 -- "$(xclip -o -selection clipboard)"'
 | 
			
		||||
bindsym $mod+z                  exec otp | rofi -dmenu -p otp | xargs otp
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -11,7 +11,7 @@ case $option in
 | 
			
		||||
    power\ off) systemctl poweroff;;
 | 
			
		||||
    reboot) systemctl reboot;;
 | 
			
		||||
    windows)
 | 
			
		||||
        windows=`efibootmgr | grep -Po -m1 'Boot\K(\d{4}).*Windows.*' | head -c4`
 | 
			
		||||
        windows="$(efibootmgr | grep -Po -m1 'Boot\K(\d{4}).*Windows.*' | head -c4)"
 | 
			
		||||
        sudo efibootmgr -n $windows
 | 
			
		||||
        reboot;;
 | 
			
		||||
        systemctl reboot;;
 | 
			
		||||
esac
 | 
			
		||||
 
 | 
			
		||||
@@ -6,8 +6,8 @@ log-level = "info";
 | 
			
		||||
shadow = true;
 | 
			
		||||
shadow-radius = 30;
 | 
			
		||||
shadow-offset-x = -30;
 | 
			
		||||
shadow-offset-y = -26;
 | 
			
		||||
shadow-opacity = 0.35;
 | 
			
		||||
shadow-offset-y = -24;
 | 
			
		||||
shadow-opacity = 0.4;
 | 
			
		||||
shadow-color = "#000000";
 | 
			
		||||
shadow-exclude = [
 | 
			
		||||
	"class_g = 'slop'",
 | 
			
		||||
@@ -38,7 +38,7 @@ opacity-rule = [
 | 
			
		||||
blur:
 | 
			
		||||
{
 | 
			
		||||
	method = "dual_kawase";
 | 
			
		||||
	strength = 8;
 | 
			
		||||
	strength = 12;
 | 
			
		||||
};
 | 
			
		||||
blur-background-frame = true;
 | 
			
		||||
blur-background-fixed = true;
 | 
			
		||||
@@ -79,6 +79,11 @@ focus-exclude = [
 | 
			
		||||
	"class_g = 'steam_app_271590'"
 | 
			
		||||
];
 | 
			
		||||
 | 
			
		||||
transition-length = 350;
 | 
			
		||||
transition-pow-x = 0.3;
 | 
			
		||||
transition-pow-y = 0.3;
 | 
			
		||||
size-transition = true;
 | 
			
		||||
 | 
			
		||||
# Other
 | 
			
		||||
# https://github.com/yshui/picom/blob/next/picom.sample.conf#L203
 | 
			
		||||
backend = "glx";
 | 
			
		||||
@@ -131,4 +136,17 @@ wintypes: {
 | 
			
		||||
	}
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
#animations = true;
 | 
			
		||||
#animation-clamping = false;
 | 
			
		||||
#animation-dampening = 1.0;
 | 
			
		||||
#animation-window-mass = 0.125;
 | 
			
		||||
#animation-unmap = "fade-out";
 | 
			
		||||
#animation-for-unmap-window = "zoom";
 | 
			
		||||
#animation-for-open-window = "auto";
 | 
			
		||||
#animation-workspace-in = "slide-left";
 | 
			
		||||
#animation-workspace-out = "slide-left";
 | 
			
		||||
#animation-for-workspace-switch-in = "auto";
 | 
			
		||||
#animation-for-workspace-switch-out = "auto";
 | 
			
		||||
#animation-for-transient-window = "zoom";
 | 
			
		||||
 | 
			
		||||
# vim: ft=conf noet
 | 
			
		||||
 
 | 
			
		||||
@@ -267,7 +267,7 @@ ramp-capacity-1-foreground = ${colours.warning}
 | 
			
		||||
 | 
			
		||||
[module/cputemp]
 | 
			
		||||
type = internal/temperature
 | 
			
		||||
hwmon-path = /sys/devices/platform/nct6775.656/hwmon/hwmon1/temp2_input
 | 
			
		||||
hwmon-path = /sys/devices/pci0000:00/0000:00:18.3/hwmon/hwmon1/temp2_input
 | 
			
		||||
base-temperature = 25
 | 
			
		||||
 | 
			
		||||
format = <ramp>  <label>
 | 
			
		||||
 
 | 
			
		||||
@@ -5,8 +5,8 @@ configuration {
 | 
			
		||||
  /* show-icons: true; */
 | 
			
		||||
  separator-style: "solid";
 | 
			
		||||
  modi: "window,run,ssh";
 | 
			
		||||
  kb-row-tab: "Shift-Tab";
 | 
			
		||||
  kb-row-select: "Tab";
 | 
			
		||||
/*  kb-row-tab: "Shift-Tab"; */
 | 
			
		||||
/*  kb-row-select: "Tab"; */
 | 
			
		||||
  terminal: "i3-sensible-terminal";
 | 
			
		||||
 | 
			
		||||
  matching: "glob";
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										10
									
								
								scripts/dpi
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								scripts/dpi
									
									
									
									
									
								
							@@ -4,6 +4,10 @@ set -eu
 | 
			
		||||
# Based on https://github.com/vincentbernat/awesome-configuration/blob/master/bin/xsettingsd-setup
 | 
			
		||||
CONF_DIR="${XDG_CONFIG_HOME:-$HOME/.config}"
 | 
			
		||||
 | 
			
		||||
BLUR_STRENGTH=12
 | 
			
		||||
CURSOR_SIZE=28
 | 
			
		||||
CORNER_RADIUS=9
 | 
			
		||||
 | 
			
		||||
xrdbget() {
 | 
			
		||||
    set -o pipefail
 | 
			
		||||
    xrdb -query | grep -i -m1 "$1" | sed 's/^.*:\s//g' || echo "$2"
 | 
			
		||||
@@ -26,11 +30,11 @@ fi
 | 
			
		||||
 | 
			
		||||
dpi=$1
 | 
			
		||||
scale=$(( dpi/96 ))
 | 
			
		||||
cursor=$(( dpi/6 ))
 | 
			
		||||
cursor=$(( (dpi*CURSOR_SIZE)/96 ))
 | 
			
		||||
 | 
			
		||||
# Update picom scale
 | 
			
		||||
sed -i -e "s/strength =.*$/strength = $(( dpi*8/96 ));/" \
 | 
			
		||||
    -e "s/corner-radius =.*$/corner-radius = $(( dpi/13 ));/" \
 | 
			
		||||
sed -i -e "s/strength =.*$/strength = $(( (dpi*BLUR_STRENGTH)/96 ));/" \
 | 
			
		||||
    -e "s/corner-radius =.*$/corner-radius = $(( (dpi*CORNER_RADIUS)/96 ));/" \
 | 
			
		||||
    "$CONF_DIR/picom/picom.conf" &
 | 
			
		||||
 | 
			
		||||
# Build xsettingsd.conf
 | 
			
		||||
 
 | 
			
		||||
@@ -59,7 +59,7 @@ function notify() {
 | 
			
		||||
function display() {
 | 
			
		||||
    update=$'\tUpdate Font Awesome cache'
 | 
			
		||||
    fontawesome=$(grep -v '#\|^[[:space:]]*$' "$FONTAWESOME_FILE"; printf "$update\n")
 | 
			
		||||
    line=$(echo "$fontawesome" | rofi -dmenu -i -p fontawesome -normal-window -kb-custom-1 Ctrl+c -kb-row-tab '' -kb-row-select Tab $@)
 | 
			
		||||
    line=$(echo "$fontawesome" | rofi -dmenu -i -p fontawesome -normal-window -kb-custom-1 Ctrl+c -kb-row-tab '' $@)
 | 
			
		||||
    exit_code=$?
 | 
			
		||||
 | 
			
		||||
    if [ "${line[@]}" == "$update" ]; then
 | 
			
		||||
 
 | 
			
		||||
@@ -1,7 +1,7 @@
 | 
			
		||||
[Unit]
 | 
			
		||||
Description=Load Xorg configuration
 | 
			
		||||
# this is a bit weird, but I guess it works
 | 
			
		||||
PartOf=xorg.target
 | 
			
		||||
After=xorg.target
 | 
			
		||||
 | 
			
		||||
[Service]
 | 
			
		||||
Type=oneshot
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
# This file is written by xdg-user-dirs-update
 | 
			
		||||
# If you want to change or add directories, just edit the line you're
 | 
			
		||||
# interested in. All local changes will be retained on the next run
 | 
			
		||||
# interested in. All local changes will be retained on the next run.
 | 
			
		||||
# Format is XDG_xxx_DIR="$HOME/yyy", where yyy is a shell-escaped
 | 
			
		||||
# homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an
 | 
			
		||||
# absolute path. No other format is supported.
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										10
									
								
								vim/vimrc
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								vim/vimrc
									
									
									
									
									
								
							@@ -53,8 +53,9 @@ function! SaveIfExist()
 | 
			
		||||
        write
 | 
			
		||||
    endif
 | 
			
		||||
endfunction
 | 
			
		||||
 | 
			
		||||
set autowrite
 | 
			
		||||
autocmd CursorHold,CursorHoldI,InsertLeave,FocusGained,FocusLost * call SaveIfExist()
 | 
			
		||||
autocmd InsertLeave <buffer> :write
 | 
			
		||||
 | 
			
		||||
" Search options
 | 
			
		||||
set hlsearch
 | 
			
		||||
@@ -89,7 +90,6 @@ endif
 | 
			
		||||
 | 
			
		||||
call plug#begin('$XDG_CONFIG_HOME/vim/plug')
 | 
			
		||||
 | 
			
		||||
Plug 'scrooloose/nerdtree', { 'on':  'NERTreeToggle' }
 | 
			
		||||
Plug 'tpope/vim-sensible'
 | 
			
		||||
Plug 'tpope/vim-fugitive'
 | 
			
		||||
Plug 'tpope/vim-rhubarb'
 | 
			
		||||
@@ -134,6 +134,10 @@ let g:use_dvorak = 1
 | 
			
		||||
call deoplete#custom#option({
 | 
			
		||||
\ 'camel_case': v:true,
 | 
			
		||||
\ })
 | 
			
		||||
" Use ALE as completion sources for all code.
 | 
			
		||||
"call deoplete#custom#option('sources', {
 | 
			
		||||
"\ '_': ['ale'],
 | 
			
		||||
"\})
 | 
			
		||||
call deoplete#enable()
 | 
			
		||||
 | 
			
		||||
" Vim-Airline config
 | 
			
		||||
@@ -151,8 +155,10 @@ let vim_markdown_preview_use_xdg_open=1
 | 
			
		||||
let vim_markdown_preview_github=1
 | 
			
		||||
 | 
			
		||||
" LaTeX config
 | 
			
		||||
"let g:vimtex_view_method='zathura'
 | 
			
		||||
let g:tex_flavor='xelatex'
 | 
			
		||||
let g:vimtex_indent_enabled = 0     " auto-indentation is wrong and annoying
 | 
			
		||||
let g:syntastic_tex_checkers = ['chktex']
 | 
			
		||||
autocmd FileType tex silent VimtexCompile
 | 
			
		||||
autocmd FileType tex setlocal spell
 | 
			
		||||
augroup vimtex
 | 
			
		||||
 
 | 
			
		||||
@@ -128,3 +128,10 @@ trysource() { for f in "$@"; do source "$f" 2>/dev/null && return; done; }
 | 
			
		||||
trysource /usr/share/fzf/key-bindings.zsh \
 | 
			
		||||
          /usr/share/doc/fzf/examples/key-bindings.zsh
 | 
			
		||||
trysource /usr/share/doc/pkgfile/command-not-found.zsh # pkgfile on Arch
 | 
			
		||||
 | 
			
		||||
if command -v kubectl >/dev/null 2>&1; then
 | 
			
		||||
    autoload -Uz compinit
 | 
			
		||||
    compinit
 | 
			
		||||
    source <(kubectl completion zsh)
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user