mirror of
https://github.com/frebib/dotfiles.git
synced 2024-06-14 12:57:23 +00:00
Compare commits
No commits in common. "d7f1c18c8c0c4f6be247bb2a561b30ccccf4bfe4" and "ff0d449fa57d4f4a6f2c41dbc2a70148077c28da" have entirely different histories.
d7f1c18c8c
...
ff0d449fa5
@ -1,6 +1,7 @@
|
||||
# DO NOT EDIT! This file will be overwritten by LXAppearance.
|
||||
# Any customization should be done in ~/.gtkrc-2.0.mine instead.
|
||||
|
||||
include "/home/frebib/.gtkrc-2.0.mine"
|
||||
gtk-theme-name="Arc-Dark"
|
||||
gtk-icon-theme-name="Xenlism-Wildfire"
|
||||
gtk-font-name="Noto Sans 9"
|
||||
|
@ -160,7 +160,7 @@ bindsym XF86AudioPrev exec --no-startup-id playerctl -a previous
|
||||
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +1000
|
||||
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -1000
|
||||
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle
|
||||
bindsym XF86MonBrightnessUp exec light -A 5 && pkill -RTMIN+12 i3blocks
|
||||
bindsym XF86MonBrightnessDown exec light -U 5 && pkill -RTMIN+12 i3blocks
|
||||
bindsym XF86MonBrightnessUp exec xbacklight -inc 5 && pkill -RTMIN+12 i3blocks
|
||||
bindsym XF86MonBrightnessDown exec xbacklight -dec 5 && pkill -RTMIN+12 i3blocks
|
||||
|
||||
# vim:ft=i3
|
||||
|
@ -1,6 +1,6 @@
|
||||
# Logging
|
||||
log-level = "debug";
|
||||
#log-file = "/home/frebib/.local/share/picom.log";
|
||||
log-file = "/home/frebib/.local/share/picom.log";
|
||||
|
||||
# Shadow
|
||||
shadow = true;
|
||||
@ -16,7 +16,6 @@ shadow-exclude = [
|
||||
"class_g = 'Conky'",
|
||||
"class_g ?= 'Notify-osd'",
|
||||
"class_g = 'Cairo-clock'",
|
||||
"class_g = 'firefox' && argb",
|
||||
"name = 'Notification'",
|
||||
"_GTK_FRAME_EXTENTS@:c"
|
||||
];
|
||||
@ -48,7 +47,6 @@ blur-background-exclude = [
|
||||
"class_g = 'Onboard'",
|
||||
"class_g = 'slop'",
|
||||
"class_g = 'Polybar'",
|
||||
"class_g = 'firefox' && argb",
|
||||
"window_type = 'dock'",
|
||||
"window_type = 'desktop'",
|
||||
"_GTK_FRAME_EXTENTS@:c"
|
||||
@ -67,7 +65,7 @@ no-fading-destroyed-argb = false;
|
||||
backend = "glx";
|
||||
mark-wmwin-focused = true;
|
||||
mark-ovredir-focused = true;
|
||||
use-ewmh-active-win = true;
|
||||
use-ewmh-active-win = false;
|
||||
detect-rounded-corners = true;
|
||||
detect-client-opacity = true;
|
||||
refresh-rate = 0;
|
||||
@ -78,7 +76,7 @@ vsync = true;
|
||||
# unredir-if-possible-exclude = [ ];
|
||||
focus-exclude = [
|
||||
"i:ai:chromium",
|
||||
"class_g = 'firefox'",
|
||||
"class_g = 'Firefox'",
|
||||
];
|
||||
detect-transient = true;
|
||||
detect-client-leader = true;
|
||||
@ -89,7 +87,7 @@ invert-color-include = [ ];
|
||||
glx-no-stencil = true;
|
||||
glx-no-rebind-pixmap = true;
|
||||
xrender-sync-fence = true;
|
||||
use-damage = true;
|
||||
#use-damage = true;
|
||||
|
||||
# Window type settings
|
||||
wintypes:
|
||||
|
@ -68,13 +68,13 @@ exec = $XDG_CONFIG_HOME/polybar/update.sh
|
||||
tail = true
|
||||
format-prefix = " "
|
||||
format-prefix-foreground = ${colours.icon}
|
||||
click-left = systemd-run --user --no-block -- i3-sensible-terminal -r i3blocks-update-term -e "yay && kill -USR1 %pid% || kill --USR1 %pid%"
|
||||
click-left = i3-msg exec -- i3-sensible-terminal -r i3blocks-update-term -e "yay && kill -USR1 %pid% || kill --USR1 %pid%"
|
||||
|
||||
[module/weather]
|
||||
type = custom/script
|
||||
exec = $XDG_CONFIG_HOME/polybar/weather.sh
|
||||
interval = 120
|
||||
click-left = systemd-run --user --no-block "i3-sensible-terminal -r floating-term -e 'sh -c \"xdotool getactivewindow windowsize 910 680 && curl wttr.in && sleep infinity\"'"
|
||||
click-left = i3-msg exec "i3-sensible-terminal -r floating-term -e 'sh -c \"xdotool getactivewindow windowsize 910 680 && curl wttr.in && sleep infinity\"'"
|
||||
|
||||
[module/gateway]
|
||||
type = custom/script
|
||||
@ -208,7 +208,7 @@ label-disconnected-foreground = ${colours.critical}
|
||||
type = internal/date
|
||||
interval = 1
|
||||
|
||||
label = %{A3:systemd-run --user --no-block -- i3-sensible-terminal -r i3blocks-clock-term -e "sh -c \"xdotool getactivewindow windowsize 500 600; cal -y $(date +%Y); stty -echo; exec sleep infinity\"" &:}%date% %time%%{A}
|
||||
label = %{A3:i3-sensible-terminal -r i3blocks-clock-term -e "sh -c \"xdotool getactivewindow windowsize 500 600; cal -y $(date +%Y); stty -echo; exec sleep infinity\"" &:}%date% %time%%{A}
|
||||
|
||||
time = %H:%M
|
||||
time-alt = %a %e %b %Y %H:%M:%S
|
||||
@ -221,8 +221,8 @@ format-prefix-foreground = ${colours.icon}
|
||||
type = internal/pulseaudio
|
||||
|
||||
label-volume = %percentage%
|
||||
format-volume = %{A3:systemd-run --user --no-block -- pavucontrol:}<ramp-volume> <label-volume>%{A}
|
||||
format-muted = %{A3:systemd-run --user --no-block -- pavucontrol:}<label-muted>%{A}
|
||||
format-volume = %{A3:pavucontrol:}<ramp-volume> <label-volume>%{A}
|
||||
format-muted = %{A3:pavucontrol:}<label-muted>%{A}
|
||||
|
||||
label-volume-foreground = ${root.foreground}
|
||||
format-muted-foreground = ${colours.icon}
|
||||
|
@ -1,7 +1,7 @@
|
||||
[Unit]
|
||||
Description=Polybar
|
||||
Requires=graphical-session.target
|
||||
After=graphical-session.target pulseaudio.socket i3.service
|
||||
After=graphical-session.target pulseaudio.socket
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
|
@ -1,12 +0,0 @@
|
||||
[Unit]
|
||||
Description=xsettingsd - provide settings to X11 applications
|
||||
Requires=xorg.target
|
||||
After=xorg.target profile.service
|
||||
|
||||
[Service]
|
||||
ExecStart=/bin/sh -c 'xsettingsd -c $XDG_CONFIG_HOME/xsettingsd/xsettingsd.local'
|
||||
ExecReload=/bin/kill -s HUP $MAINPID
|
||||
Restart=always
|
||||
|
||||
[Install]
|
||||
WantedBy=graphical-session.target
|
@ -1,3 +1,5 @@
|
||||
unsetopt MULTIBYTE
|
||||
|
||||
# Config and cache directory paths
|
||||
CONFIG_DIR="${XDG_CONFIG_HOME:-$HOME/.config}"
|
||||
ZSH_DIR="$CONFIG_DIR/zsh"
|
||||
@ -11,13 +13,13 @@ SAVEHIST=999999
|
||||
exists() { which $@ 0<&- 1>/dev/null 2>/dev/null; }
|
||||
|
||||
# Only set tty if running interactively
|
||||
if exists tty && tty -s; then
|
||||
if exists tty && tty -s 1>/dev/null 2>/dev/null; then
|
||||
# Resolve at shell runtime
|
||||
export GPG_TTY="$(tty)"
|
||||
fi
|
||||
|
||||
# Configure less and add colours
|
||||
export LESS="-RI --mouse"
|
||||
export LESS="-RI"
|
||||
export PAGER="less"
|
||||
export MANPAGER="less -+N"
|
||||
# Disable histfile
|
||||
@ -102,10 +104,8 @@ bindkey '^[[A' fzf-history-widget # Up (fzf)
|
||||
bindkey '^[[B' fzf-history-widget # Down (fzf)
|
||||
bindkey '^F' fzf-file-widget # Ctrl+F file search (fzf)
|
||||
|
||||
bindkey "^F" fzf-file-widget
|
||||
bindkey "^V" edit-command-line
|
||||
bindkey -M vicmd "^V" edit-command-line
|
||||
bindkey -M vicmd "^W" backward-delete-word
|
||||
|
||||
bindkey -M vicmd d vi-backward-char
|
||||
bindkey -M vicmd h vi-down-line-or-history
|
||||
@ -116,8 +116,6 @@ bindkey -M vicmd K vi-kill-eol
|
||||
bindkey -M vicmd j vi-find-next-char-skip
|
||||
bindkey -M vicmd l vi-repeat-search
|
||||
|
||||
# Backspace across newlines when in vi-mode
|
||||
bindkey -v '^?' backward-delete-char
|
||||
|
||||
ZSH_AUTOSUGGEST_USE_ASYNC=true
|
||||
ZSH_AUTOSUGGEST_BUFFER_MAX_SIZE=128
|
||||
|
12
scripts/dpi
12
scripts/dpi
@ -21,9 +21,11 @@ mkdir -p "$CONF_DIR"
|
||||
echo Gdk/UnscaledDPI $(( $dpi*1024/($dpi/96) ))
|
||||
} > $CONF_DIR/xsettingsd.local
|
||||
|
||||
echo Xft.dpi: $dpi | xrdb -merge
|
||||
xrandr --dpi $dpi
|
||||
pid=$(xprop -name xsettingsd _NET_WM_PID 2> /dev/null | awk '{print $NF}')
|
||||
if [ -z "$pid" ]; then
|
||||
xsettingsd -c $CONF_DIR/xsettingsd.local &
|
||||
else
|
||||
kill -HUP $pid
|
||||
fi
|
||||
|
||||
systemctl --user reload-or-restart xsettingsd
|
||||
systemctl --user --no-block reload i3
|
||||
systemctl --user --no-block restart polybar@i3bar dunst
|
||||
echo Xft.dpi: $dpi | xrdb -merge
|
||||
|
Loading…
Reference in New Issue
Block a user