mirror of
https://github.com/frebib/dotfiles.git
synced 2024-06-14 12:57:23 +00:00
Compare commits
5 Commits
cbb44c99ee
...
9331a74266
Author | SHA1 | Date | |
---|---|---|---|
9331a74266 | |||
cfbe6d6f0f | |||
509551f717 | |||
ea5f537303 | |||
2907e24656 |
@ -16,8 +16,8 @@ export MOZ_USE_XINPUT2=1 # enable pixel-accurate scrolling in firefox
|
|||||||
|
|
||||||
|
|
||||||
# Load Xorg resources and set the DPI
|
# Load Xorg resources and set the DPI
|
||||||
xrdb -merge "$XDG_CONFIG_HOME/X11/xresources"
|
xrdb -merge $XDG_CONFIG_HOME/X11/xresources
|
||||||
"$XDG_CONFIG_HOME/scripts/dpi" "$(xrdb -query | grep -i xft.dpi | cut -d: -f2 | xargs)"
|
xrandr --dpi $(xrdb -query | grep -i xft.dpi | cut -d: -f2)
|
||||||
|
|
||||||
setxkbmap -option caps:none
|
setxkbmap -option caps:none
|
||||||
xset r rate 200 18
|
xset r rate 200 18
|
||||||
|
@ -36,5 +36,5 @@ Xft.hinting: true
|
|||||||
Xft.hintstyle: hintfull
|
Xft.hintstyle: hintfull
|
||||||
Xft.lcdfilter: lcddefault
|
Xft.lcdfilter: lcddefault
|
||||||
|
|
||||||
Xcursor.size: 16
|
Xcursor.size: 28
|
||||||
Xcursor.theme: Breeze_Obsidian
|
Xcursor.theme: BreezeX-Black
|
||||||
|
7
aliases
7
aliases
@ -119,6 +119,7 @@ alias gau="git add -u"
|
|||||||
alias gaN="git add -N"
|
alias gaN="git add -N"
|
||||||
alias gaa="ga -A"
|
alias gaa="ga -A"
|
||||||
alias grm="git rm"
|
alias grm="git rm"
|
||||||
|
alias gmv="git mv"
|
||||||
alias gc="git commit -s"
|
alias gc="git commit -s"
|
||||||
alias gcm="git commit -s -em"
|
alias gcm="git commit -s -em"
|
||||||
alias gca="git commit -s --amend --date=\"\$(date -R)\""
|
alias gca="git commit -s --amend --date=\"\$(date -R)\""
|
||||||
@ -126,6 +127,7 @@ alias gcn="git commit -s --no-edit"
|
|||||||
alias gcan="gca -s --no-edit"
|
alias gcan="gca -s --no-edit"
|
||||||
alias gcam="gca -s -m"
|
alias gcam="gca -s -m"
|
||||||
alias gst="git status"
|
alias gst="git status"
|
||||||
|
alias grl="git reflog"
|
||||||
|
|
||||||
alias gm="git merge"
|
alias gm="git merge"
|
||||||
alias gma="git merge --abort"
|
alias gma="git merge --abort"
|
||||||
@ -137,8 +139,8 @@ alias grbc="grb --continue"
|
|||||||
alias grbsk="grb --skip"
|
alias grbsk="grb --skip"
|
||||||
alias grbsh="grb --show-current"
|
alias grbsh="grb --show-current"
|
||||||
alias grbom="git rebase \"origin/\$(git defbranch)\""
|
alias grbom="git rebase \"origin/\$(git defbranch)\""
|
||||||
gfrb() { remote="${1%/*}"; git fetch "$remote" && git rebase "$@"; }
|
gfrb() { remote="${1%%/*}"; git fetch "$remote" && git rebase "$@"; }
|
||||||
gfrbi() { remote="${1%/*}"; git fetch "$remote" && git rebase -i "$@"; }
|
gfrbi() { remote="${1%%/*}"; git fetch "$remote" && git rebase -i "$@"; }
|
||||||
|
|
||||||
alias gam="git am"
|
alias gam="git am"
|
||||||
alias gama="git am --abort"
|
alias gama="git am --abort"
|
||||||
@ -175,6 +177,7 @@ alias glog="git log --color --oneline --decorate --graph"
|
|||||||
alias grst="git reset"
|
alias grst="git reset"
|
||||||
alias gundo="git reset --keep @~1"
|
alias gundo="git reset --keep @~1"
|
||||||
alias gclean="git clean"
|
alias gclean="git clean"
|
||||||
|
alias gclm="git cleanmerged"
|
||||||
alias gbr="git branch"
|
alias gbr="git branch"
|
||||||
alias gbrl="git for-each-ref --sort=committerdate refs/heads/ --format=\"%(refname:short)\" | fzf -x --ansi --multi --preview-window=right:70% --preview=\"git log --format=fuller --stat --color=always {} | head -n\$((\$(tput lines)*10))\""
|
alias gbrl="git for-each-ref --sort=committerdate refs/heads/ --format=\"%(refname:short)\" | fzf -x --ansi --multi --preview-window=right:70% --preview=\"git log --format=fuller --stat --color=always {} | head -n\$((\$(tput lines)*10))\""
|
||||||
alias gtg="git tag"
|
alias gtg="git tag"
|
||||||
|
18
git/config
18
git/config
@ -37,7 +37,23 @@
|
|||||||
count = !echo $(pwd) && git rev-list HEAD --count
|
count = !echo $(pwd) && git rev-list HEAD --count
|
||||||
unpushed = !git log --oneline @{u}..HEAD
|
unpushed = !git log --oneline @{u}..HEAD
|
||||||
leaders = !git shortlog -s -n --all --no-merges
|
leaders = !git shortlog -s -n --all --no-merges
|
||||||
defbranch = !git symbolic-ref refs/remotes/origin/HEAD | sed \"s@^refs/remotes/origin/@@\"
|
defbranch = "!defbranch() { \
|
||||||
|
r=\"${1:-origin}\"; \
|
||||||
|
{ \
|
||||||
|
git symbolic-ref \"refs/remotes/$r/HEAD\" || { \
|
||||||
|
git remote set-head \"$r\" -a >&2 && \
|
||||||
|
git symbolic-ref \"refs/remotes/$r/HEAD\"; \
|
||||||
|
}; \
|
||||||
|
} 2>/dev/null \
|
||||||
|
| sed \"s@^refs/remotes/$r/@@\"; \
|
||||||
|
}; defbranch"
|
||||||
|
cleanmerged = "!cleanmerged() { \
|
||||||
|
r=\"${1:-origin}\"; \
|
||||||
|
b=\"${2:-$(git defbranch \"$r\")}\"; \
|
||||||
|
git branch --merged \"$r/$b\" | \
|
||||||
|
grep -ve \"^\\\\*\" -e \"^. $b$\" | \
|
||||||
|
xargs -r git branch -d; \
|
||||||
|
}; cleanmerged"
|
||||||
[advice]
|
[advice]
|
||||||
statusHints = false
|
statusHints = false
|
||||||
pushUpdateRejected = false
|
pushUpdateRejected = false
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
gtk-theme-name="Arc-Dark"
|
gtk-theme-name="Arc-Dark"
|
||||||
gtk-icon-theme-name="Xenlism-Wildfire"
|
gtk-icon-theme-name="Xenlism-Wildfire"
|
||||||
gtk-font-name="sans 9"
|
gtk-font-name="sans 9"
|
||||||
gtk-cursor-theme-name="Breeze_Obsidian"
|
gtk-cursor-theme-name="BreezeX-Black"
|
||||||
gtk-cursor-theme-size=16
|
gtk-cursor-theme-size=28
|
||||||
gtk-toolbar-style=GTK_TOOLBAR_BOTH
|
gtk-toolbar-style=GTK_TOOLBAR_BOTH
|
||||||
gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
|
gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
|
||||||
gtk-button-images=1
|
gtk-button-images=1
|
||||||
|
@ -3,8 +3,8 @@ gtk-theme-name=Arc-Dark
|
|||||||
gtk-icon-theme-name=Xenlism-Wildfire
|
gtk-icon-theme-name=Xenlism-Wildfire
|
||||||
gtk-application-prefer-dark-theme=true
|
gtk-application-prefer-dark-theme=true
|
||||||
gtk-font-name=sans 9
|
gtk-font-name=sans 9
|
||||||
gtk-cursor-theme-name=Breeze_Obsidian
|
gtk-cursor-theme-name=BreezeX-Black
|
||||||
gtk-cursor-theme-size=16
|
gtk-cursor-theme-size=28
|
||||||
gtk-toolbar-style=GTK_TOOLBAR_BOTH
|
gtk-toolbar-style=GTK_TOOLBAR_BOTH
|
||||||
gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
|
gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
|
||||||
gtk-button-images=1
|
gtk-button-images=1
|
||||||
|
@ -142,8 +142,8 @@ bindsym $mod+space exec "pkill rofi; rofi -show run -sidebar-mode -
|
|||||||
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 rofi-pass --root $(grep path ~/.config/gopass/config.yml | sed -E 's|^.*fs\+file://||g' | tr '\n' ':') | sed 's/:$//g'
|
||||||
bindsym $mod+Shift+e exec "pkill rofi; rofi -show emoji -modi emoji -normal-window"
|
bindsym $mod+Shift+e exec "pkill rofi; rofi -show emoji -modi emoji -normal-window"
|
||||||
bindsym $mod+Shift+i exec rofi-fontawesome
|
bindsym $mod+Shift+i exec rofi-fontawesome
|
||||||
bindsym --release Print exec screenshot --clip
|
bindsym --release Print exec screenshot
|
||||||
bindsym --release $mod+Print exec screenshot
|
bindsym --release $mod+Print exec screenshot --clip
|
||||||
bindsym --release Shift+Print exec screenshot --active
|
bindsym --release Shift+Print exec screenshot --active
|
||||||
bindsym --release $mod+Shift+Print exec screenshot --active --clip
|
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+Shift+x exec systemd-run-i3 -n i3-sensible-terminal --class floating-term --hold -e /bin/echo "$(xprop -id $(xdotool getactivewindow))"
|
||||||
|
@ -38,7 +38,7 @@ opacity-rule = [
|
|||||||
blur:
|
blur:
|
||||||
{
|
{
|
||||||
method = "dual_kawase";
|
method = "dual_kawase";
|
||||||
strength = 10;
|
strength = 12;
|
||||||
};
|
};
|
||||||
blur-background-frame = true;
|
blur-background-frame = true;
|
||||||
blur-background-fixed = true;
|
blur-background-fixed = true;
|
||||||
|
10
scripts/dpi
10
scripts/dpi
@ -4,9 +4,9 @@ set -eu
|
|||||||
# Based on https://github.com/vincentbernat/awesome-configuration/blob/master/bin/xsettingsd-setup
|
# Based on https://github.com/vincentbernat/awesome-configuration/blob/master/bin/xsettingsd-setup
|
||||||
CONF_DIR="${XDG_CONFIG_HOME:-$HOME/.config}"
|
CONF_DIR="${XDG_CONFIG_HOME:-$HOME/.config}"
|
||||||
|
|
||||||
BLUR_STRENGTH=10
|
BLUR_STRENGTH=12
|
||||||
|
CURSOR_SIZE=28
|
||||||
CORNER_RADIUS=9
|
CORNER_RADIUS=9
|
||||||
CURSOR_SIZE=16
|
|
||||||
|
|
||||||
xrdbget() {
|
xrdbget() {
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
@ -57,13 +57,13 @@ Xft.dpi: $dpi
|
|||||||
Xcursor.size: $cursor
|
Xcursor.size: $cursor
|
||||||
EOF
|
EOF
|
||||||
xrandr --dpi "$dpi" &
|
xrandr --dpi "$dpi" &
|
||||||
systemctl --user try-reload-or-restart xsettingsd &
|
systemctl --user reload-or-restart xsettingsd &
|
||||||
wait
|
wait
|
||||||
|
|
||||||
systemctl --user try-reload-or-restart \
|
systemctl --user reload \
|
||||||
i3 \
|
i3 \
|
||||||
polybar@i3bar &
|
polybar@i3bar &
|
||||||
systemctl --user try-restart \
|
systemctl --user restart \
|
||||||
dunst &
|
dunst &
|
||||||
|
|
||||||
wait
|
wait
|
||||||
|
Loading…
Reference in New Issue
Block a user