mirror of
https://github.com/frebib/dotfiles.git
synced 2024-06-14 12:57:23 +00:00
Compare commits
3 Commits
9331a74266
...
cbb44c99ee
Author | SHA1 | Date | |
---|---|---|---|
cbb44c99ee | |||
2bd257243a | |||
d538b61cb1 |
@ -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"
|
||||||
xrandr --dpi $(xrdb -query | grep -i xft.dpi | cut -d: -f2)
|
"$XDG_CONFIG_HOME/scripts/dpi" "$(xrdb -query | grep -i xft.dpi | cut -d: -f2 | xargs)"
|
||||||
|
|
||||||
setxkbmap -option caps:none
|
setxkbmap -option caps:none
|
||||||
xset r rate 200 18
|
xset r rate 200 18
|
||||||
|
@ -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
|
bindsym --release Print exec screenshot --clip
|
||||||
bindsym --release $mod+Print exec screenshot --clip
|
bindsym --release $mod+Print exec screenshot
|
||||||
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 = 8;
|
strength = 10;
|
||||||
};
|
};
|
||||||
blur-background-frame = true;
|
blur-background-frame = true;
|
||||||
blur-background-fixed = true;
|
blur-background-fixed = true;
|
||||||
|
16
scripts/dpi
16
scripts/dpi
@ -4,6 +4,10 @@ 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
|
||||||
|
CORNER_RADIUS=9
|
||||||
|
CURSOR_SIZE=16
|
||||||
|
|
||||||
xrdbget() {
|
xrdbget() {
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
xrdb -query | grep -i -m1 "$1" | sed 's/^.*:\s//g' || echo "$2"
|
xrdb -query | grep -i -m1 "$1" | sed 's/^.*:\s//g' || echo "$2"
|
||||||
@ -26,11 +30,11 @@ fi
|
|||||||
|
|
||||||
dpi=$1
|
dpi=$1
|
||||||
scale=$(( dpi/96 ))
|
scale=$(( dpi/96 ))
|
||||||
cursor=$(( dpi/6 ))
|
cursor=$(( (dpi*CURSOR_SIZE)/96 ))
|
||||||
|
|
||||||
# Update picom scale
|
# Update picom scale
|
||||||
sed -i -e "s/strength =.*$/strength = $(( dpi*8/96 ));/" \
|
sed -i -e "s/strength =.*$/strength = $(( (dpi*BLUR_STRENGTH)/96 ));/" \
|
||||||
-e "s/corner-radius =.*$/corner-radius = $(( dpi/13 ));/" \
|
-e "s/corner-radius =.*$/corner-radius = $(( (dpi*CORNER_RADIUS)/96 ));/" \
|
||||||
"$CONF_DIR/picom/picom.conf" &
|
"$CONF_DIR/picom/picom.conf" &
|
||||||
|
|
||||||
# Build xsettingsd.conf
|
# Build xsettingsd.conf
|
||||||
@ -53,13 +57,13 @@ Xft.dpi: $dpi
|
|||||||
Xcursor.size: $cursor
|
Xcursor.size: $cursor
|
||||||
EOF
|
EOF
|
||||||
xrandr --dpi "$dpi" &
|
xrandr --dpi "$dpi" &
|
||||||
systemctl --user reload-or-restart xsettingsd &
|
systemctl --user try-reload-or-restart xsettingsd &
|
||||||
wait
|
wait
|
||||||
|
|
||||||
systemctl --user reload \
|
systemctl --user try-reload-or-restart \
|
||||||
i3 \
|
i3 \
|
||||||
polybar@i3bar &
|
polybar@i3bar &
|
||||||
systemctl --user restart \
|
systemctl --user try-restart \
|
||||||
dunst &
|
dunst &
|
||||||
|
|
||||||
wait
|
wait
|
||||||
|
Loading…
Reference in New Issue
Block a user