moar new computer

This commit is contained in:
Franzi 2022-02-14 19:38:06 +01:00
parent f23e8f5e65
commit 0a9ca8b889
Signed by: kunsi
GPG key ID: 12E3D2136B818350
6 changed files with 49 additions and 60 deletions

View file

@ -1,3 +1,3 @@
#!/bin/bash
echo 'meowww?' | osd_cat --pos middle --align center --delay 9 -O 15 -f '-*-dejavu sans-*-*-*-*-120-200-*-*-*-*-*-*'
notify-send --expire-time=9000 --app-name=i3lock "screen lock will activate shortly"

View file

@ -30,7 +30,7 @@ try:
if line.startswith('volume:'):
for speaker, absolute, percent in findall('([a-z-]+):\W+([0-9]+)\W+\/\W+([0-9]+)%', line):
if int(percent) < 100:
if int(percent) > 3 and int(percent) < 100:
print(f' sink {sink_id} speaker {speaker} at {percent} % volume', flush=True)
needs_adjusting = True

42
.config/grobi.conf Normal file
View file

@ -0,0 +1,42 @@
# vim:ft=yaml
execute_after:
- xset s 90 10
- /home/kunsi/.fehbg
- sudo rfkill unblock wifi
# - xrandr --output eDP --set "Broadcast RGB" "Full"
on_failure:
- xrandr --auto
rules:
- name: 'presentation'
outputs_connected:
- HDMI-A-0
configure_row:
- HDMI-A-0
- eDP
primary: eDP
execute_after:
- xset s off
- systemctl --user stop redshift.service
- name: 'docked'
outputs_connected:
- DisplayPort-3
- DisplayPort-4
configure_row:
- eDP
- DisplayPort-3
- DisplayPort-4
primary: DisplayPort-4
execute_after:
- xset s off
- sudo rfkill block wifi
- sudo light -S 100
# - xrandr --output DP2-2 --set "Broadcast RGB" "Full"
# - xrandr --output DP2-1 --set "Broadcast RGB" "Full"
- name: 'internal only'
configure_single: eDP
primary: eDP

View file

@ -1,42 +0,0 @@
# vim:ft=yaml
execute_after:
- xset s 90 10
- /home/kunsi/.fehbg
- sudo rfkill unblock wifi
- xrandr --output eDP1 --set "Broadcast RGB" "Full"
on_failure:
- xrandr --auto
rules:
- name: 'presentation'
outputs_connected:
- HDMI2
configure_row:
- HDMI2@1920x1080
- eDP1
primary: eDP1
execute_after:
- xset s off
- systemctl --user stop redshift.service
- name: 'docked with dock-connector'
outputs_connected:
- DP2-1
- DP2-2
configure_row:
- eDP1
- DP2-2
- DP2-1
primary: DP2-1
execute_after:
- xset s off
- sudo rfkill block wifi
- xbacklight =100
- xrandr --output DP2-2 --set "Broadcast RGB" "Full"
- xrandr --output DP2-1 --set "Broadcast RGB" "Full"
- name: 'internal only'
configure_single: eDP1
primary: eDP1

View file

@ -110,11 +110,11 @@ for_window [class="Gnome-calculator"] floating enable
for_window [class="realvnc-vncviewer"] floating enable
for_window [class="terminal-floating"] floating enable
workspace $ws1 output DP2-2
workspace $ws2 output DP2-1
workspace $ws3 output DP2-2
workspace $ws9 output eDP1
workspace $ws10 output DP2-1
workspace $ws1 output DisplayPort-3
workspace $ws2 output DisplayPort-4
workspace $ws3 output DisplayPort-3
workspace $ws9 output eDP
workspace $ws10 output DisplayPort-4
exec_always setxkbmap -synch
exec_always ~/.fehbg

View file

@ -1,11 +0,0 @@
[Unit]
Description=Automatically configure monitors/outputs for Xorg via RANDR
[Service]
ExecStart=/home/kunsi/git/grobi/grobi watch --verbose --config=/home/kunsi/.config/grobi/grobi.conf
Restart=always
RestartSec=10
StartLimitInterval=0
[Install]
WantedBy=default.target