Commit Graph

86 Commits

Author SHA1 Message Date
John Mertz 508e3f0516
Track backlight brightness better to allow reverting (by screensaver, etc.) 2022-10-31 18:33:03 -04:00
John Mertz 675ba63687
Whitespace 2022-10-31 18:33:02 -04:00
John Mertz 9c5b60d42f
Track PID 2022-10-31 18:33:02 -04:00
John Mertz 8dcbcb5fe5
Prevent fork. Limits to one PID 2022-10-31 18:33:02 -04:00
John Mertz 05d692d936
Increase delay to give more time before deletion 2022-10-31 18:33:02 -04:00
John Mertz c62109d263
Inverted logic for log level validationd 2022-10-31 18:33:01 -04:00
John Mertz 3d6195bbcb
Enhance kdb_backlight with sleep/restore function 2022-10-31 18:33:01 -04:00
John Mertz 156ff9221d
Gammastep waybar 2022-10-31 18:33:01 -04:00
John Mertz 2c4ef97a1b
Force GLES2
Update defaulted to Vulkan which isn't working
2022-10-31 18:33:01 -04:00
John Mertz 58c03333a7
Update --bar formatting 2022-10-31 18:33:01 -04:00
John Mertz aa70b984c3
Add recursive enumeration of images
cleaned up some comments and one typo in ARG parsing
2022-10-31 18:33:00 -04:00
John Mertz f1f94b6df4
Systemd Unit for wallpaper.pl 2022-10-31 18:33:00 -04:00
John Mertz a864b85df1
Refactor, add SystemD Journaling 2022-10-31 18:33:00 -04:00
John Mertz c47bb3d4c6
Pureblack lockscreen 2022-10-31 18:33:00 -04:00
John Mertz 2a331db20b
Update usage and add some TODO comments 2022-10-31 18:33:00 -04:00
John Mertz ab01514238
Implement signals
Minimum viable product. TERM closes gracefully, KILL just removes PID, and USR1 rotates immediately and restarts timer.

Other changes:
- Whitespace
- Implemented using lazy, excessive use of global variables. This needs to be improved.
- Comment blocks
2022-10-31 18:32:59 -04:00
John Mertz 640dd8d2d9
Minor bugs
Cropping should be avoided if the image is the same size also, not just if it is smaller.
I was using a minimum of 2 outputs while testing on my desktop. Revert that to 1.
Remove trailing tabs.
2022-10-31 18:32:59 -04:00
John Mertz 31fc3ceff3
Wallpaper rotation script 2022-10-31 18:32:59 -04:00
John Mertz bb7a12a8b4
Switch to 'model' instead of 'serial', clean display list 2022-10-31 18:32:59 -04:00
John Mertz 57b2e76540
Update wofi-alt-tab.sh
formatting
2022-10-31 18:32:59 -04:00
John Mertz f69be11cc6
Testing wofi with alt-tab
Functional, but needs to be styled
2022-10-31 18:32:58 -04:00
John Mertz 8c1eddbf83
Reboot prompt for updates
Experimenting with swanag stuff. Check if reboot is required, nag to reboot, include installed packages in details.
2022-10-31 18:32:58 -04:00
John Mertz dcbb22bf8a
Simple weather bar applet 2022-10-31 18:32:58 -04:00
John Mertz 8842d7a3b0
Int comparison typo 2022-10-31 18:32:58 -04:00
John Mertz 0f0a1c9011
Socket Path 2022-10-31 18:32:57 -04:00
John Mertz bf19e6c0d2
Update paths 2022-10-31 18:32:57 -04:00
John Mertz 82b536a890
Disable notification timeout 2022-10-31 18:32:57 -04:00
John Mertz 5c3a10ce76
Cleanup and update paths 2022-10-31 18:32:57 -04:00
John Mertz cd362eea6f
waybar-pkg wrapper for apt and rpm-ostree
move waybar-apt.sh to waybar-debian.sh and add
waybar-fedora-silverblue.sh

waybar-pkg checks the OS from /etc/os-release then forwards argument to
the correct script
2022-10-31 18:32:57 -04:00
John Mertz 7119ff819c
Add waybar function for apt
Can fetch the current number of available package updates, then allow
installation by clicking.
2022-10-31 18:32:56 -04:00
John Mertz 7876519667
Improve output for bar 2022-10-31 18:32:56 -04:00
John Mertz 274d9cc75b
Switch to TV as docked configuration 2022-10-31 18:32:56 -04:00
John Mertz 402ce7fefa
Remove debugging. Test brightness effect (oled) 2022-10-31 18:32:56 -04:00
John Mertz b74c0f0faf
Add lock functions to idle script 2022-10-31 18:32:55 -04:00
John Mertz b0ec5cdafb
Add TV to configurations 2022-10-31 18:32:55 -04:00
John Mertz c74d63c577
Disable gtk2 notifications
Dependency resolution has become a nightmare. Need to rewrite with a
better supported library.
2022-10-31 18:32:55 -04:00
John Mertz 32e58ff147
Change terminal application to maintain floating windows 2022-10-31 18:32:55 -04:00
John Mertz b8e84128e0
Fixed deprecated rofi theme option 2022-10-31 18:32:55 -04:00
John Mertz c7cecdab75
Disable debugging from kbd backlight script 2022-10-31 18:32:54 -04:00
John Mertz b3e2e00961
Sticky the pop-up terminal while present 2022-10-31 18:32:54 -04:00
John Mertz d06ed5266f
Add fallback bg, fix missing args, hide waybar
If no background arguement exists, use a fallback colour. If no scale or
transform argument exists use 1 and 0. Toggle off waybar on start (I
don't think this works properly)
2022-10-31 18:32:54 -04:00
John Mertz b8cbbb330b
working notifications for blc
Not ideal. Requires manual installation of Gtk2::Notify which is no
longer packaged by Debian and has broken dependencies. Need to migrate
to a better notification library.

Migration was initially made to Gtk2::Notify because it allows for
replacing the content of an existing notification. No newer libraries
appear to support this in Perl.

This was the first "substantial" Perl program I've ever written; it may
become the first which is re-written in a better supported language.
2022-10-31 18:32:54 -04:00
John Mertz 04f1af06e6
Ignore waybar toggle binary 2022-10-31 18:32:53 -04:00
John Mertz fb89f3eabc
Fix rofi theme
Version change. Theme can no longer be referenced inside the main config
2022-10-31 18:32:53 -04:00
John Mertz b17582621b
Rofi screen rotation prompt 2022-10-31 18:32:53 -04:00
John Mertz f13778fe52
Additional waybar commands 2022-10-31 18:32:53 -04:00
John Mertz 2ef12fe5de
Hack to support waybar autohide
Small C program to send hide signal to bar. Coordination script which
expects the C program to be compiled at scripts/waybar/toggle
2022-10-31 18:32:53 -04:00
John Mertz 93125c95ee
Dynamic scale for Yoga
This is a big-ol hack. I should ideally just have an external file for
the configs which differs for each device.
2022-10-31 18:32:52 -04:00
John Mertz 4e388030f8
Rofi no longer supports Xresources config format 2022-10-31 18:32:52 -04:00
John Mertz 24457ca338
Add sock and display id to allow non-attached execution
SWAYSOCK is now static so it can be referenced by all of the swaymsg
commands.

waybar now includes a static WAYLAND_DISPLAY declaration.

This allows for recovery/configuration via SSH as well as groundwork for
udev (un)docking rules.
2022-10-31 18:32:52 -04:00