mirror of
https://github.com/frebib/dotfiles.git
synced 2024-06-14 12:57:23 +00:00
Compare commits
25 Commits
systemd-se
...
d7f1c18c8c
Author | SHA1 | Date | |
---|---|---|---|
d7f1c18c8c
|
|||
97fa8c3b4f
|
|||
5a996a8c37
|
|||
1ed3a27613
|
|||
d0b6e9d090
|
|||
9a4696bc7f
|
|||
a3a3a8e378
|
|||
5c234d48eb
|
|||
36dc74044c
|
|||
760a81a76b
|
|||
77ef7ef239
|
|||
c690573191
|
|||
505a8d255d
|
|||
bbfb8fff3f
|
|||
ff0d449fa5
|
|||
936e8828c8
|
|||
fb480c73c5
|
|||
bc89989bbb
|
|||
2770fefefd
|
|||
0256369cd6
|
|||
1fdb93e356
|
|||
f379b758c9
|
|||
93a2899c7b
|
|||
df03d9062e
|
|||
ddf5a1d387
|
@ -10,14 +10,15 @@
|
|||||||
diffFilter = diff-highlight
|
diffFilter = diff-highlight
|
||||||
[commit]
|
[commit]
|
||||||
gpgsign = true
|
gpgsign = true
|
||||||
|
[fetch]
|
||||||
|
prune = true
|
||||||
[push]
|
[push]
|
||||||
default = upstream
|
default = upstream
|
||||||
[pull]
|
[pull]
|
||||||
rebase = true
|
rebase = true
|
||||||
|
prune = true
|
||||||
[rebase]
|
[rebase]
|
||||||
autoStash = true
|
autoStash = true
|
||||||
[log]
|
|
||||||
date = relative
|
|
||||||
[format]
|
[format]
|
||||||
pretty = format:%h %Cblue%ad%Creset %ae %Cgreen%s%Creset
|
pretty = format:%h %Cblue%ad%Creset %ae %Cgreen%s%Creset
|
||||||
[alias]
|
[alias]
|
||||||
@ -25,6 +26,7 @@
|
|||||||
pushall = !git remote | xargs -L1 git push
|
pushall = !git remote | xargs -L1 git push
|
||||||
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
|
||||||
[advice]
|
[advice]
|
||||||
statusHints = false
|
statusHints = false
|
||||||
pushUpdateRejected = false
|
pushUpdateRejected = false
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
# DO NOT EDIT! This file will be overwritten by LXAppearance.
|
# DO NOT EDIT! This file will be overwritten by LXAppearance.
|
||||||
# Any customization should be done in ~/.gtkrc-2.0.mine instead.
|
# Any customization should be done in ~/.gtkrc-2.0.mine instead.
|
||||||
|
|
||||||
include "/home/frebib/.gtkrc-2.0.mine"
|
|
||||||
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="Noto Sans 9"
|
gtk-font-name="Noto Sans 9"
|
||||||
|
@ -126,6 +126,7 @@ gaps inner 20
|
|||||||
gaps outer 4
|
gaps outer 4
|
||||||
|
|
||||||
focus_follows_mouse yes
|
focus_follows_mouse yes
|
||||||
|
popup_during_fullscreen smart
|
||||||
|
|
||||||
# keybindings
|
# keybindings
|
||||||
bindsym $mod+Shift+j reload
|
bindsym $mod+Shift+j reload
|
||||||
@ -159,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 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 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 XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle
|
||||||
bindsym XF86MonBrightnessUp exec xbacklight -inc 5 && pkill -RTMIN+12 i3blocks
|
bindsym XF86MonBrightnessUp exec light -A 5 && pkill -RTMIN+12 i3blocks
|
||||||
bindsym XF86MonBrightnessDown exec xbacklight -dec 5 && pkill -RTMIN+12 i3blocks
|
bindsym XF86MonBrightnessDown exec light -U 5 && pkill -RTMIN+12 i3blocks
|
||||||
|
|
||||||
# vim:ft=i3
|
# vim:ft=i3
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# Logging
|
# Logging
|
||||||
log-level = "debug";
|
log-level = "debug";
|
||||||
log-file = "/home/frebib/.local/share/picom.log";
|
#log-file = "/home/frebib/.local/share/picom.log";
|
||||||
|
|
||||||
# Shadow
|
# Shadow
|
||||||
shadow = true;
|
shadow = true;
|
||||||
@ -16,6 +16,7 @@ shadow-exclude = [
|
|||||||
"class_g = 'Conky'",
|
"class_g = 'Conky'",
|
||||||
"class_g ?= 'Notify-osd'",
|
"class_g ?= 'Notify-osd'",
|
||||||
"class_g = 'Cairo-clock'",
|
"class_g = 'Cairo-clock'",
|
||||||
|
"class_g = 'firefox' && argb",
|
||||||
"name = 'Notification'",
|
"name = 'Notification'",
|
||||||
"_GTK_FRAME_EXTENTS@:c"
|
"_GTK_FRAME_EXTENTS@:c"
|
||||||
];
|
];
|
||||||
@ -47,6 +48,7 @@ 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 = 'dock'",
|
"window_type = 'dock'",
|
||||||
"window_type = 'desktop'",
|
"window_type = 'desktop'",
|
||||||
"_GTK_FRAME_EXTENTS@:c"
|
"_GTK_FRAME_EXTENTS@:c"
|
||||||
@ -65,7 +67,7 @@ no-fading-destroyed-argb = false;
|
|||||||
backend = "glx";
|
backend = "glx";
|
||||||
mark-wmwin-focused = true;
|
mark-wmwin-focused = true;
|
||||||
mark-ovredir-focused = true;
|
mark-ovredir-focused = true;
|
||||||
use-ewmh-active-win = false;
|
use-ewmh-active-win = true;
|
||||||
detect-rounded-corners = true;
|
detect-rounded-corners = true;
|
||||||
detect-client-opacity = true;
|
detect-client-opacity = true;
|
||||||
refresh-rate = 0;
|
refresh-rate = 0;
|
||||||
@ -76,7 +78,7 @@ vsync = true;
|
|||||||
# unredir-if-possible-exclude = [ ];
|
# unredir-if-possible-exclude = [ ];
|
||||||
focus-exclude = [
|
focus-exclude = [
|
||||||
"i:ai:chromium",
|
"i:ai:chromium",
|
||||||
"class_g = 'Firefox'",
|
"class_g = 'firefox'",
|
||||||
];
|
];
|
||||||
detect-transient = true;
|
detect-transient = true;
|
||||||
detect-client-leader = true;
|
detect-client-leader = true;
|
||||||
@ -87,7 +89,7 @@ invert-color-include = [ ];
|
|||||||
glx-no-stencil = true;
|
glx-no-stencil = true;
|
||||||
glx-no-rebind-pixmap = true;
|
glx-no-rebind-pixmap = true;
|
||||||
xrender-sync-fence = true;
|
xrender-sync-fence = true;
|
||||||
#use-damage = true;
|
use-damage = true;
|
||||||
|
|
||||||
# Window type settings
|
# Window type settings
|
||||||
wintypes:
|
wintypes:
|
||||||
|
@ -46,8 +46,8 @@ line-colour = #f00
|
|||||||
|
|
||||||
modules-left = i3
|
modules-left = i3
|
||||||
modules-center =
|
modules-center =
|
||||||
# modules-right = volume updates weather xkeyboard wlan gateway eth memory cpu xbacklight battery temperature date
|
# modules-right = volume updates weather xkeyboard wlan gateway eth memory cpu xbacklight battery cputemp gputemp date
|
||||||
modules-right = volume updates weather wlan gateway eth memory cpu xbacklight battery temperature date
|
modules-right = volume updates weather wlan gateway eth memory cpu xbacklight battery cputemp gputemp date
|
||||||
|
|
||||||
tray-position = right
|
tray-position = right
|
||||||
tray-detached = false
|
tray-detached = false
|
||||||
@ -68,13 +68,13 @@ exec = $XDG_CONFIG_HOME/polybar/update.sh
|
|||||||
tail = true
|
tail = true
|
||||||
format-prefix = " "
|
format-prefix = " "
|
||||||
format-prefix-foreground = ${colours.icon}
|
format-prefix-foreground = ${colours.icon}
|
||||||
click-left = i3-msg exec -- i3-sensible-terminal -r i3blocks-update-term -e "yay && kill -USR1 %pid% || kill --USR1 %pid%"
|
click-left = systemd-run --user --no-block -- i3-sensible-terminal -r i3blocks-update-term -e "yay && kill -USR1 %pid% || kill --USR1 %pid%"
|
||||||
|
|
||||||
[module/weather]
|
[module/weather]
|
||||||
type = custom/script
|
type = custom/script
|
||||||
exec = $XDG_CONFIG_HOME/polybar/weather.sh
|
exec = $XDG_CONFIG_HOME/polybar/weather.sh
|
||||||
interval = 120
|
interval = 120
|
||||||
click-left = i3-msg exec "i3-sensible-terminal -r floating-term -e 'sh -c \"xdotool getactivewindow windowsize 910 680 && curl wttr.in && sleep infinity\"'"
|
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\"'"
|
||||||
|
|
||||||
[module/gateway]
|
[module/gateway]
|
||||||
type = custom/script
|
type = custom/script
|
||||||
@ -208,7 +208,7 @@ label-disconnected-foreground = ${colours.critical}
|
|||||||
type = internal/date
|
type = internal/date
|
||||||
interval = 1
|
interval = 1
|
||||||
|
|
||||||
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}
|
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}
|
||||||
|
|
||||||
time = %H:%M
|
time = %H:%M
|
||||||
time-alt = %a %e %b %Y %H:%M:%S
|
time-alt = %a %e %b %Y %H:%M:%S
|
||||||
@ -221,8 +221,8 @@ format-prefix-foreground = ${colours.icon}
|
|||||||
type = internal/pulseaudio
|
type = internal/pulseaudio
|
||||||
|
|
||||||
label-volume = %percentage%
|
label-volume = %percentage%
|
||||||
format-volume = %{A3:pavucontrol:}<ramp-volume> <label-volume>%{A}
|
format-volume = %{A3:systemd-run --user --no-block -- pavucontrol:}<ramp-volume> <label-volume>%{A}
|
||||||
format-muted = %{A3:pavucontrol:}<label-muted>%{A}
|
format-muted = %{A3:systemd-run --user --no-block -- pavucontrol:}<label-muted>%{A}
|
||||||
|
|
||||||
label-volume-foreground = ${root.foreground}
|
label-volume-foreground = ${root.foreground}
|
||||||
format-muted-foreground = ${colours.icon}
|
format-muted-foreground = ${colours.icon}
|
||||||
@ -267,10 +267,10 @@ ramp-capacity-0-foreground = ${colours.critical}
|
|||||||
ramp-capacity-1-foreground = ${colours.warning}
|
ramp-capacity-1-foreground = ${colours.warning}
|
||||||
|
|
||||||
|
|
||||||
[module/temperature]
|
[module/cputemp]
|
||||||
type = internal/temperature
|
type = internal/temperature
|
||||||
thermal-zone = 2
|
hwmon-path = /sys/devices/platform/nct6775.656/hwmon/hwmon1/temp2_input
|
||||||
warn-temperature = 70
|
base-temperature = 25
|
||||||
|
|
||||||
format = <ramp> <label>
|
format = <ramp> <label>
|
||||||
format-warn = <ramp> <label-warn>
|
format-warn = <ramp> <label-warn>
|
||||||
@ -287,6 +287,15 @@ ramp-4 =
|
|||||||
ramp-5 =
|
ramp-5 =
|
||||||
ramp-foreground = ${colours.icon}
|
ramp-foreground = ${colours.icon}
|
||||||
|
|
||||||
|
[module/gputemp]
|
||||||
|
type = custom/script
|
||||||
|
exec = nvidia-smi --query-gpu=temperature.gpu --format=csv,noheader,nounits
|
||||||
|
interval = 10
|
||||||
|
|
||||||
|
label = %output%°C
|
||||||
|
format-prefix = " "
|
||||||
|
format-prefix-foreground = ${colours.icon}
|
||||||
|
|
||||||
|
|
||||||
[module/powermenu]
|
[module/powermenu]
|
||||||
type = custom/menu
|
type = custom/menu
|
||||||
|
@ -0,0 +1 @@
|
|||||||
|
/home/frebib/.config/systemd/user/networkmanager-applet.service
|
@ -0,0 +1 @@
|
|||||||
|
/home/frebib/.config/systemd/user/xautolock.service
|
12
.config/systemd/user/networkmanager-applet.service
Normal file
12
.config/systemd/user/networkmanager-applet.service
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=NetworkManager Applet
|
||||||
|
After=graphical-session.target NetworkManager.service
|
||||||
|
Requires=graphical-session.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
ExecStart=/usr/bin/nm-applet
|
||||||
|
Restart=on-failure
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=desktop.target
|
@ -1,7 +1,7 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=Polybar
|
Description=Polybar
|
||||||
Requires=graphical-session.target
|
Requires=graphical-session.target
|
||||||
After=graphical-session.target pulseaudio.socket
|
After=graphical-session.target pulseaudio.socket i3.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
|
@ -1,8 +1,10 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=XBindKeys
|
Description=Lock desktop session after inactivity
|
||||||
|
Requires=xorg.target
|
||||||
|
After=xorg.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=/usr/bin/xautolock -time 1 -locker 'dm-tool switch-to-greeter' -detectsleep -resetsaver -secure
|
ExecStart=/usr/bin/xautolock -time 5 -locker 'dm-tool switch-to-greeter' -detectsleep -resetsaver -secure
|
||||||
KillMode=process
|
KillMode=process
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
|
||||||
|
12
.config/systemd/user/xsettingsd.service
Normal file
12
.config/systemd/user/xsettingsd.service
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
[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,5 +1,3 @@
|
|||||||
unsetopt MULTIBYTE
|
|
||||||
|
|
||||||
# Config and cache directory paths
|
# Config and cache directory paths
|
||||||
CONFIG_DIR="${XDG_CONFIG_HOME:-$HOME/.config}"
|
CONFIG_DIR="${XDG_CONFIG_HOME:-$HOME/.config}"
|
||||||
ZSH_DIR="$CONFIG_DIR/zsh"
|
ZSH_DIR="$CONFIG_DIR/zsh"
|
||||||
@ -13,13 +11,13 @@ SAVEHIST=999999
|
|||||||
exists() { which $@ 0<&- 1>/dev/null 2>/dev/null; }
|
exists() { which $@ 0<&- 1>/dev/null 2>/dev/null; }
|
||||||
|
|
||||||
# Only set tty if running interactively
|
# Only set tty if running interactively
|
||||||
if exists tty && tty -s 1>/dev/null 2>/dev/null; then
|
if exists tty && tty -s; then
|
||||||
# Resolve at shell runtime
|
# Resolve at shell runtime
|
||||||
export GPG_TTY="$(tty)"
|
export GPG_TTY="$(tty)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Configure less and add colours
|
# Configure less and add colours
|
||||||
export LESS="-RI"
|
export LESS="-RI --mouse"
|
||||||
export PAGER="less"
|
export PAGER="less"
|
||||||
export MANPAGER="less -+N"
|
export MANPAGER="less -+N"
|
||||||
# Disable histfile
|
# Disable histfile
|
||||||
@ -104,8 +102,10 @@ bindkey '^[[A' fzf-history-widget # Up (fzf)
|
|||||||
bindkey '^[[B' fzf-history-widget # Down (fzf)
|
bindkey '^[[B' fzf-history-widget # Down (fzf)
|
||||||
bindkey '^F' fzf-file-widget # Ctrl+F file search (fzf)
|
bindkey '^F' fzf-file-widget # Ctrl+F file search (fzf)
|
||||||
|
|
||||||
|
bindkey "^F" fzf-file-widget
|
||||||
bindkey "^V" edit-command-line
|
bindkey "^V" edit-command-line
|
||||||
bindkey -M vicmd "^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 d vi-backward-char
|
||||||
bindkey -M vicmd h vi-down-line-or-history
|
bindkey -M vicmd h vi-down-line-or-history
|
||||||
@ -116,6 +116,8 @@ bindkey -M vicmd K vi-kill-eol
|
|||||||
bindkey -M vicmd j vi-find-next-char-skip
|
bindkey -M vicmd j vi-find-next-char-skip
|
||||||
bindkey -M vicmd l vi-repeat-search
|
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_USE_ASYNC=true
|
||||||
ZSH_AUTOSUGGEST_BUFFER_MAX_SIZE=128
|
ZSH_AUTOSUGGEST_BUFFER_MAX_SIZE=128
|
||||||
|
12
scripts/dpi
12
scripts/dpi
@ -21,11 +21,9 @@ mkdir -p "$CONF_DIR"
|
|||||||
echo Gdk/UnscaledDPI $(( $dpi*1024/($dpi/96) ))
|
echo Gdk/UnscaledDPI $(( $dpi*1024/($dpi/96) ))
|
||||||
} > $CONF_DIR/xsettingsd.local
|
} > $CONF_DIR/xsettingsd.local
|
||||||
|
|
||||||
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
|
|
||||||
|
|
||||||
echo Xft.dpi: $dpi | xrdb -merge
|
echo Xft.dpi: $dpi | xrdb -merge
|
||||||
|
xrandr --dpi $dpi
|
||||||
|
|
||||||
|
systemctl --user reload-or-restart xsettingsd
|
||||||
|
systemctl --user --no-block reload i3
|
||||||
|
systemctl --user --no-block restart polybar@i3bar dunst
|
||||||
|
2
scripts/gtav
Executable file
2
scripts/gtav
Executable file
@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
exec xdg-open steam://rungameid/271590
|
7
scripts/netsplit
Executable file
7
scripts/netsplit
Executable file
@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
PID="$(pidof GTA5.exe)"
|
||||||
|
|
||||||
|
kill -s STOP $PID
|
||||||
|
sleep 30
|
||||||
|
kill -s CONT $PID
|
@ -9,7 +9,7 @@ FILENAME="$(date '+%s%N' | sha256sum | head -c7).png"
|
|||||||
DIRECTORY="$HOME/pictures/screenshots"
|
DIRECTORY="$HOME/pictures/screenshots"
|
||||||
|
|
||||||
SCP_HOST=frebib@Poseidon.nerdhouse.io
|
SCP_HOST=frebib@Poseidon.nerdhouse.io
|
||||||
SCP_PATH=/dave/www/frebib.net/s
|
SCP_PATH=/services/www/files/frebib.net/s
|
||||||
URL_PATH=https://frebib.net/s
|
URL_PATH=https://frebib.net/s
|
||||||
|
|
||||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
Reference in New Issue
Block a user