new computer, who dis?

This commit is contained in:
Franzi 2022-02-13 08:47:44 +01:00
parent f453eed9e0
commit f23e8f5e65
Signed by untrusted user: kunsi
GPG key ID: 12E3D2136B818350
5 changed files with 14 additions and 66 deletions

View file

@ -15,39 +15,7 @@ do
done done
# Do a backup. # Do a backup.
( sudo /usr/local/bin/generate-backup-with-retries
rsync -zaAP --numeric-ids --delete --relative \
--rsync-path="/usr/bin/rsync --fake-super" \
-e "ssh" --delete-excluded \
--exclude "/home/kunsi/.cache/" \
--exclude "/home/kunsi/.config/Ferdi/" \
--exclude "/home/kunsi/.config/Rambox/" \
--exclude "/home/kunsi/.local/lib/python*/site-packages/" \
--exclude "/home/kunsi/.local/share/TelegramDesktop/tdata/user_data/cache/" \
--exclude "/home/kunsi/.local/share/sddm/" \
--exclude "/home/kunsi/.mozilla/firefox/*/storage/*" \
--exclude "/home/kunsi/.npm/" \
--exclude "/home/kunsi/.nvm/" \
--exclude "/home/kunsi/.platformio/" \
--exclude "/home/kunsi/.ssh/cm-*" \
--exclude "/home/kunsi/.vdirsyncer" \
--exclude "/home/kunsi/Downloads/" \
--exclude "/home/kunsi/Schreibtisch/" \
--exclude "/home/kunsi/VirtualBox VMs/" \
--exclude "/home/kunsi/qemu/Windows_10.qcow2" \
--exclude "/home/kunsi/tmp.*/" \
"/home/kunsi" "$backup_ssh":backups/
# Exit code 24 means some files have vanished during rsync.
# I don't know why, but this is very common, apparently?
exitcode=$?
if [[ $exitcode != 0 ]] && [[ $exitcode != 24 ]]
then
exit 1
fi
)
ssh $backup_ssh "sudo /usr/local/bin/rotate-single-backup-client kunsi-t470"
printf '\a' printf '\a'
# Do updates # Do updates

View file

@ -5,8 +5,8 @@ font pango:DB Office Regular 9
floating_modifier $mod floating_modifier $mod
bindsym $mod+Return exec xiate bindsym $mod+Return exec kitty
bindsym $mod+Shift+Return exec xiate -class xiate-floating -e python bindsym $mod+Shift+Return exec kitty --class terminal-floating -e python
bindsym $mod+Shift+x kill bindsym $mod+Shift+x kill
@ -98,7 +98,7 @@ force_display_urgency_hint 1000 ms
focus_on_window_activation smart focus_on_window_activation smart
bar { bar {
status_command python ~/.config/i3pystatus/config.py status_command /opt/i3pystatus/venv/bin/python ~/.config/i3pystatus/config.py
position top position top
tray_output primary tray_output primary
workspace_buttons yes workspace_buttons yes
@ -108,7 +108,7 @@ for_window [window_role="pop-up"] floating enable
for_window [class="Pavucontrol"] floating enable for_window [class="Pavucontrol"] floating enable
for_window [class="Gnome-calculator"] floating enable for_window [class="Gnome-calculator"] floating enable
for_window [class="realvnc-vncviewer"] floating enable for_window [class="realvnc-vncviewer"] floating enable
for_window [class="xiate-floating"] floating enable for_window [class="terminal-floating"] floating enable
workspace $ws1 output DP2-2 workspace $ws1 output DP2-2
workspace $ws2 output DP2-1 workspace $ws2 output DP2-1
@ -124,13 +124,9 @@ exec xset s noblank && xset s 90 10 && xset -dpms
exec xsetroot -solid "#000000" exec xsetroot -solid "#000000"
exec xss-lock -n /home/kunsi/.bin/notify.sh -- /home/kunsi/.bin/screenlock.sh exec xss-lock -n /home/kunsi/.bin/notify.sh -- /home/kunsi/.bin/screenlock.sh
exec xinput disable 'SynPS/2 Synaptics TouchPad' exec xinput disable 'SynPS/2 Synaptics TouchPad'
exec xinput disable 'ELAN Touchscreen'
#bindsym Control+$mod+l exec /home/kunsi/.bin/screenlock.sh
bindsym XF86Tools exec /home/kunsi/.bin/screenlock.sh bindsym XF86Tools exec /home/kunsi/.bin/screenlock.sh
bindsym XF86Display exec arandr
bindsym $mod+Prior exec pactl set-sink-volume @DEFAULT_SINK@ +2%; exec pactl set-sink-mute @DEFAULT_SINK@ 0 bindsym $mod+Prior exec pactl set-sink-volume @DEFAULT_SINK@ +2%; exec pactl set-sink-mute @DEFAULT_SINK@ 0
bindsym $mod+Next exec pactl set-sink-volume @DEFAULT_SINK@ -2%; exec pactl set-sink-mute @DEFAULT_SINK@ 0 bindsym $mod+Next exec pactl set-sink-volume @DEFAULT_SINK@ -2%; exec pactl set-sink-mute @DEFAULT_SINK@ 0
bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +2%; exec pactl set-sink-mute @DEFAULT_SINK@ 0 bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +2%; exec pactl set-sink-mute @DEFAULT_SINK@ 0
@ -138,8 +134,8 @@ bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -2%; exec
bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
bindsym XF86AudioMicMute exec pactl set-source-mute alsa_input.pci-0000_00_1f.3.analog-stereo toggle bindsym XF86AudioMicMute exec pactl set-source-mute alsa_input.pci-0000_00_1f.3.analog-stereo toggle
bindsym XF86MonBrightnessUp exec xbacklight +5 bindsym XF86MonBrightnessUp exec sudo light -A 5
bindsym XF86MonBrightnessDown exec xbacklight -5 bindsym XF86MonBrightnessDown exec sudo light -U 5
bindsym $mod+Print exec maim ~/screenshot_$(date +%Y-%m-%d_%H%M%S).png bindsym $mod+Print exec maim ~/screenshot_$(date +%Y-%m-%d_%H%M%S).png
bindsym $mod+Shift+Print exec maim -i $(xdotool getactivewindow) ~/screenshot_$(date +%Y-%m-%d_%H%M%S).png bindsym $mod+Shift+Print exec maim -i $(xdotool getactivewindow) ~/screenshot_$(date +%Y-%m-%d_%H%M%S).png

View file

@ -8,7 +8,7 @@ status.register("pulseaudio",
format="♪I {volume}%", format="♪I {volume}%",
format_muted="♪I -∞dB", format_muted="♪I -∞dB",
step="2", step="2",
sink="alsa_output.pci-0000_00_1f.3.analog-stereo") sink="alsa_output.pci-0000_07_00.6.HiFi__hw_Generic_1__sink")
status.register("pulseaudio", status.register("pulseaudio",
format="♪D {volume}%", format="♪D {volume}%",
format_muted="♪D -∞dB", format_muted="♪D -∞dB",
@ -17,9 +17,9 @@ status.register("pulseaudio",
status.register("backlight", status.register("backlight",
format="{percentage}%", format="{percentage}%",
backlight="intel_backlight", backlight="amdgpu_bl0",
on_leftclick="xbacklight =10", on_leftclick="sudo light -S 10",
on_rightclick="xbacklight =50", on_rightclick="sudo light -S 50",
interval=1) interval=1)
status.register("shell", status.register("shell",
@ -42,16 +42,6 @@ status.register("battery",
"CHR": "", "CHR": "",
"FULL": "", "FULL": "",
}) })
status.register("battery",
battery_ident="BAT1",
format="B1: {status}{percentage:.2f}% {remaining:%E%h:%M}",
alert=True,
alert_percentage=5,
status={
"DIS": "",
"CHR": "",
"FULL": "",
})
status.register("load", status.register("load",
format="{avg1}") format="{avg1}")
@ -81,13 +71,6 @@ status.register("shell",
on_leftclick='systemctl --user start redshift.service', on_leftclick='systemctl --user start redshift.service',
on_rightclick='systemctl --user stop redshift.service', on_rightclick='systemctl --user stop redshift.service',
interval=1) interval=1)
status.register("shell",
format="{output}",
hints = {"markup": "pango"},
command="/home/kunsi/.config/i3pystatus/touchscreen.sh",
interval=1,
on_leftclick="xinput enable 'ELAN Touchscreen'",
on_rightclick="xinput disable 'ELAN Touchscreen'")
status.register("shell", status.register("shell",
format="{output}", format="{output}",
hints = {"markup": "pango"}, hints = {"markup": "pango"},
@ -110,7 +93,7 @@ status.register("network",
detect_active=True, detect_active=True,
freq_divisor=1000000000, freq_divisor=1000000000,
divisor=1024, divisor=1024,
on_leftclick="xiate -class xiate-floating -e sudo wifi-menu", on_leftclick="kitty --class terminal-floating -e sudo wifi-menu",
hints={"markup":"pango"}) hints={"markup":"pango"})
#status.register("mpd", #status.register("mpd",

View file

@ -26,7 +26,7 @@ def format_time(seconds):
try: try:
wifi_ssid = check_output("iw dev wlp4s0 link | awk '/SSID/ {print $2}'", shell=True).decode().strip().lower() wifi_ssid = check_output("iw dev wlp3s0 link | awk '/SSID/ {print $2}'", shell=True).decode().strip().lower()
if wifi_ssid not in ( if wifi_ssid not in (
'wifi@db', 'wifi@db',

View file

@ -5,3 +5,4 @@ max-cache-ttl-ssh 30
no-allow-external-cache no-allow-external-cache
enable-ssh-support enable-ssh-support
ignore-cache-for-signing ignore-cache-for-signing
pinentry-program /usr/bin/pinentry-qt