mirror of
https://github.com/frebib/dotfiles.git
synced 2024-06-14 12:57:23 +00:00
Compare commits
No commits in common. "839d972e95d28f7a7ec00ffb9519126094ddfdeb" and "535697a31cd3e114e9e9f1d3bcfae7b22270532f" have entirely different histories.
839d972e95
...
535697a31c
@ -36,5 +36,4 @@ Xft.hinting: true
|
|||||||
Xft.hintstyle: hintfull
|
Xft.hintstyle: hintfull
|
||||||
Xft.lcdfilter: lcddefault
|
Xft.lcdfilter: lcddefault
|
||||||
|
|
||||||
Xcursor.size: 16
|
|
||||||
Xcursor.theme: Breeze_Obsidian
|
Xcursor.theme: Breeze_Obsidian
|
||||||
|
@ -611,7 +611,7 @@ debug:
|
|||||||
# - Info
|
# - Info
|
||||||
# - Debug
|
# - Debug
|
||||||
# - Trace
|
# - Trace
|
||||||
log_level: Warn
|
log_level: Info
|
||||||
|
|
||||||
# Print all received window events.
|
# Print all received window events.
|
||||||
#print_events: false
|
#print_events: false
|
||||||
|
2
aliases
2
aliases
@ -46,7 +46,7 @@ alias sudo='sudo '
|
|||||||
alias open=xdg-open
|
alias open=xdg-open
|
||||||
|
|
||||||
# Command rewrites
|
# Command rewrites
|
||||||
alias rm='rm -iv'
|
alias rm='rm -i'
|
||||||
alias mv='mv -i'
|
alias mv='mv -i'
|
||||||
alias cp='cp -ir'
|
alias cp='cp -ir'
|
||||||
alias scp='scp -r'
|
alias scp='scp -r'
|
||||||
|
@ -3,9 +3,9 @@
|
|||||||
|
|
||||||
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="Noto Sans 9"
|
||||||
gtk-cursor-theme-name="Breeze_Obsidian"
|
gtk-cursor-theme-name="Breeze_Obsidian"
|
||||||
gtk-cursor-theme-size=16
|
gtk-cursor-theme-size=0
|
||||||
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
|
||||||
|
@ -2,9 +2,9 @@
|
|||||||
gtk-theme-name=Arc-Dark
|
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=Noto Sans 9
|
||||||
gtk-cursor-theme-name=Breeze_Obsidian
|
gtk-cursor-theme-name=Breeze_Obsidian
|
||||||
gtk-cursor-theme-size=16
|
gtk-cursor-theme-size=0
|
||||||
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
|
||||||
|
@ -15,7 +15,8 @@ shadow-exclude = [
|
|||||||
"class_g = 'slop'",
|
"class_g = 'slop'",
|
||||||
"class_g = 'Conky'",
|
"class_g = 'Conky'",
|
||||||
"class_g ?= 'Notify-osd'",
|
"class_g ?= 'Notify-osd'",
|
||||||
"class_g = 'firefox' && argb && (window_type = 'utility' || window_type = 'popup_menu')",
|
"class_g = 'Cairo-clock'",
|
||||||
|
"class_g = 'firefox' && argb",
|
||||||
"name = 'Notification'",
|
"name = 'Notification'",
|
||||||
"name = 'cpt_frame_window'",
|
"name = 'cpt_frame_window'",
|
||||||
"_GTK_FRAME_EXTENTS@:c"
|
"_GTK_FRAME_EXTENTS@:c"
|
||||||
@ -48,11 +49,10 @@ blur-background-exclude = [
|
|||||||
"class_g = 'Onboard'",
|
"class_g = 'Onboard'",
|
||||||
"class_g = 'slop'",
|
"class_g = 'slop'",
|
||||||
"class_g = 'Polybar'",
|
"class_g = 'Polybar'",
|
||||||
"class_g = 'firefox' && argb && (window_type = 'utility' || window_type = 'popup_menu')",
|
"class_g = 'firefox' && argb",
|
||||||
"window_type = 'dock'",
|
"window_type = 'dock'",
|
||||||
"window_type = 'desktop'",
|
"window_type = 'desktop'",
|
||||||
"_GTK_FRAME_EXTENTS@:c",
|
"_GTK_FRAME_EXTENTS@:c"
|
||||||
"_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'"
|
|
||||||
];
|
];
|
||||||
|
|
||||||
# Fading
|
# Fading
|
||||||
|
44
scripts/dpi
44
scripts/dpi
@ -9,57 +9,43 @@ xrdbget() {
|
|||||||
xrdb -query | grep -i -m1 "$1" | sed 's/^.*:\s//g' || echo "$2"
|
xrdb -query | grep -i -m1 "$1" | sed 's/^.*:\s//g' || echo "$2"
|
||||||
}
|
}
|
||||||
|
|
||||||
xsetting_bool() {
|
dpi=$1
|
||||||
case "$1" in
|
|
||||||
true) echo 1;;
|
|
||||||
false) echo 0;;
|
|
||||||
default) echo -1;;
|
|
||||||
*) echo -1;;
|
|
||||||
esac
|
|
||||||
}
|
|
||||||
|
|
||||||
|
if [ -z "$1" ]; then
|
||||||
if [ -z "$1" ] || [ "$1" -gt 200 ] || [ "$1" -lt 96 ]; then
|
>&2 printf "Usage\n\t%s: <dpi>" "$(basename "$0")"
|
||||||
>&2 printf "Usage\n\t%s: value\n\n value\t Value must be within 96-200 inclusive\n" "$(basename "$0")"
|
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dpi=$1
|
# Update picom and xorg
|
||||||
|
sed -i "s/strength =.*$/strength = $(( dpi*8/96 ));/" "$CONF_DIR/picom/picom.conf" &
|
||||||
|
xrandr --dpi "$dpi" &
|
||||||
|
|
||||||
scale=$(( dpi/96 ))
|
scale=$(( dpi/96 ))
|
||||||
cursor=$(( dpi/6 ))
|
cursor=$(( dpi/6 ))
|
||||||
|
|
||||||
# Update picom scale
|
|
||||||
sed -i -e "s/strength =.*$/strength = $(( dpi*8/96 ));/" \
|
|
||||||
-e "s/corner-radius =.*$/corner-radius = $(( dpi/13 ));/" \
|
|
||||||
"$CONF_DIR/picom/picom.conf" &
|
|
||||||
|
|
||||||
# Build xsettingsd.conf
|
# Build xsettingsd.conf
|
||||||
mkdir -p "$CONF_DIR/xsettingsd"
|
mkdir -p "$CONF_DIR/xsettingsd"
|
||||||
{
|
{
|
||||||
cat "$CONF_DIR/xsettingsd.local" 2>/dev/null || :
|
cat "$CONF_DIR/xsettingsd.local" 2>/dev/null || true
|
||||||
echo "Xcursor/size $cursor"
|
echo "Xcursor/size $cursor"
|
||||||
echo "Gtk/CursorThemeSize $cursor"
|
echo "Gtk/CursorThemeSize $cursor"
|
||||||
echo "Gtk/CursorThemeName \"$(xrdbget Xcursor.theme Adwaita)\""
|
echo "Gtk/CursorThemeName \"$(xrdbget Xcursor.theme Adwaita)\""
|
||||||
echo "Xft/HintStyle \"$(xrdbget Xft.hintstyle hintfull)\""
|
echo "Xft/HintStyle \"$(xrdbget Xft.hintstyle hintfull)\""
|
||||||
echo "Xft/Hinting $(xsetting_bool "$(xrdbget Xft.hinting default)")"
|
echo "Xft/Hinting \"$(xrdbget Xft.hinting -1)\""
|
||||||
echo "Xft/RGBA \"$(xrdbget Xft.rgba rgb)\""
|
echo "Xft/RGBA \"$(xrdbget Xft.rgba rgb)\""
|
||||||
echo "Xft/DPI $(( dpi*1024 ))"
|
echo "Xft/DPI $(( dpi*1024 ))"
|
||||||
echo "Gdk/WindowScalingFactor $scale"
|
echo "Gdk/WindowScalingFactor $scale"
|
||||||
echo "Gdk/UnscaledDPI $(( dpi*1024/scale ))"
|
echo "Gdk/UnscaledDPI $(( dpi*1024/scale ))"
|
||||||
} > "$CONF_DIR/xsettingsd/xsettingsd.conf"
|
} > "$CONF_DIR/xsettingsd/xsettingsd.conf"
|
||||||
|
|
||||||
xrdb -merge <<EOF &
|
{
|
||||||
Xft.dpi: $dpi
|
echo "Xft.dpi: $dpi"
|
||||||
Xcursor.size: $cursor
|
echo "Xcursor.size: $cursor"
|
||||||
EOF
|
} | xrdb -merge &
|
||||||
xrandr --dpi "$dpi" &
|
|
||||||
systemctl --user reload-or-restart xsettingsd &
|
systemctl --user reload-or-restart xsettingsd &
|
||||||
wait
|
wait
|
||||||
|
|
||||||
systemctl --user reload \
|
systemctl --user reload \
|
||||||
i3 \
|
i3 \
|
||||||
polybar@i3bar &
|
polybar@i3bar
|
||||||
systemctl --user restart \
|
|
||||||
dunst &
|
|
||||||
|
|
||||||
wait
|
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
#!/bin/bash -e
|
#!/bin/bash -e
|
||||||
|
|
||||||
slice=app
|
|
||||||
rand=$(tr -dc 'a-f0-9' < /dev/urandom | head -c 8)
|
rand=$(tr -dc 'a-f0-9' < /dev/urandom | head -c 8)
|
||||||
|
|
||||||
args=()
|
args=()
|
||||||
@ -17,11 +16,14 @@ do case "$opt" in
|
|||||||
done
|
done
|
||||||
shift $((OPTIND-1))
|
shift $((OPTIND-1))
|
||||||
|
|
||||||
|
if [ -z "$slice" ]; then
|
||||||
|
slice=app
|
||||||
|
fi
|
||||||
|
|
||||||
exec systemd-run \
|
exec systemd-run \
|
||||||
--user \
|
--user \
|
||||||
--collect \
|
--collect \
|
||||||
--slice="$slice" \
|
--slice="$slice" \
|
||||||
--unit="$slice-$1-$rand" \
|
--unit="$slice-$1-$rand" \
|
||||||
--property=BindsTo=graphical-session.target \
|
--property=BindsTo=graphical-session.target \
|
||||||
--property=ExitType=cgroup \
|
${args[@]} -- "$@"
|
||||||
"${args[@]}" -- "$@"
|
|
||||||
|
Loading…
Reference in New Issue
Block a user