Commit Graph

71 Commits

Author SHA1 Message Date
John Mertz 3f54f5f4bc 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-07-23 03:43:34 -04:00
John Mertz 3f07586ae9 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-07-23 01:32:23 -04:00
John Mertz 4716ce55bc Wallpaper rotation script 2022-07-23 01:12:03 -04:00
John Mertz 6a75a61af8 Switch to 'model' instead of 'serial', clean display list 2022-07-21 17:15:21 -04:00
John Mertz 24da885f89 Update wofi-alt-tab.sh
formatting
2022-07-20 23:34:39 -04:00
John Mertz fc8df60b57 Testing wofi with alt-tab
Functional, but needs to be styled
2022-07-20 23:34:02 -04:00
John Mertz 539248ee70 Reboot prompt for updates
Experimenting with swanag stuff. Check if reboot is required, nag to reboot, include installed packages in details.
2022-07-20 23:11:59 -04:00
John Mertz 56a6299d4f Simple weather bar applet 2022-07-20 19:45:18 -04:00
John Mertz 145f239f4b Int comparison typo 2022-06-28 15:27:25 -04:00
John Mertz 2a5964a40f Socket Path 2022-06-07 08:05:45 -04:00
John Mertz 116b25449f Update paths 2022-06-06 13:59:08 -04:00
John Mertz ca8f77f26a Disable notification timeout 2022-06-06 13:58:30 -04:00
John Mertz 7e0f028611 Cleanup and update paths 2022-06-06 13:56:59 -04:00
John Mertz 339630a4a9 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-05-26 12:08:29 -04:00
John Mertz 63e4532950 Add waybar function for apt
Can fetch the current number of available package updates, then allow
installation by clicking.
2022-04-19 00:37:30 -04:00
John Mertz d93ba15571 Improve output for bar 2022-04-19 00:36:00 -04:00
John Mertz 51fa0fb452 Switch to TV as docked configuration 2022-04-19 00:34:54 -04:00
John Mertz f5d9cf9c98 Remove debugging. Test brightness effect (oled) 2022-04-19 00:34:12 -04:00
John Mertz b6a3ff4d5e Add lock functions to idle script 2022-04-19 00:26:56 -04:00
John Mertz 492f7c30ea Add TV to configurations 2022-04-19 00:25:29 -04:00
John Mertz 3802db3c96 Disable gtk2 notifications
Dependency resolution has become a nightmare. Need to rewrite with a
better supported library.
2022-04-19 00:24:18 -04:00
John Mertz 4c9a4b5eef Change terminal application to maintain floating windows 2022-04-19 00:23:29 -04:00
John Mertz 18b45c0d63 Fixed deprecated rofi theme option 2022-04-19 00:19:52 -04:00
John Mertz e3419b1252 Disable debugging from kbd backlight script 2022-04-19 00:18:33 -04:00
John Mertz e6986d01ad Sticky the pop-up terminal while present 2022-04-19 00:16:30 -04:00
John Mertz 57fc3be9e1 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)
2021-12-31 11:57:58 -05:00
John Mertz 82fd16e5cb 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.
2021-12-31 11:48:24 -05:00
John Mertz 27ba8ddd90 Ignore waybar toggle binary 2021-12-31 11:09:29 -05:00
John Mertz 244becbea4 Fix rofi theme
Version change. Theme can no longer be referenced inside the main config
2021-12-31 11:08:28 -05:00
John Mertz 1ad481be13 Rofi screen rotation prompt 2021-12-31 11:04:49 -05:00
John Mertz 14eca8df10 Additional waybar commands 2021-12-31 10:57:34 -05:00
John Mertz a2a365dfb2 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
2021-12-31 10:47:35 -05:00
John Mertz 549512fb94 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.
2021-11-11 22:01:07 -05:00
John Mertz 05921b1d01 Rofi no longer supports Xresources config format 2021-08-31 14:15:12 -04:00
John Mertz 8e46f79ae8 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.
2021-08-12 17:27:40 -04:00
John Mertz baba42bff9 Switch to Xterm for htop window 2021-08-11 18:41:22 -04:00
John Mertz e474d0b057 Remove timeout for disk usage notification 2021-08-11 18:40:48 -04:00
John Mertz 0c915f4d17 Add a shortcut to (re)start yubioath-desktop 2021-08-11 18:36:36 -04:00
John Mertz 627ee855a7 Dump waybar config to semi-permanent destination
Since a previous change combined all displays into a single file, it is
no longer necessary to create many temporary configs. The latest config
can just be dumped to the standard path so that running `waybar` on it's
own will load it.
2021-08-11 18:05:30 -04:00
John Mertz a92d475e60 Added AndroidUSB mirroring option 2021-07-30 21:30:28 -04:00
John Mertz 7aa463ebc1 Add hyperlinks in README to relevant scripts 2021-07-27 01:43:45 -04:00
John Mertz 070613790f Clean old file 2021-07-27 01:27:52 -04:00
John Mertz 88ea557246 Move setup into function where it is required 2021-07-27 01:25:41 -04:00
John Mertz fd9ae59e09 Kodi no longer on Wireguard and requires (horrible) auth on LAN 2021-07-27 01:23:35 -04:00
John Mertz be4b5bd30c Fix resolution of Sam, change new output mapping 2021-07-27 01:22:03 -04:00
John Mertz a2655a2ef4 Correct Fastnet hostname, add VNC shortcut to Mac 2021-07-27 01:20:28 -04:00
John Mertz 3731844d4d Document thinkpad/pow.pl 2021-07-27 01:17:23 -04:00
John Mertz a3a98abe23 Fetcher for Battery and Power status
Features outputs as JSON, simple output for status bar and notification-ready pretty formatting.
2021-07-27 01:11:42 -04:00
John Mertz e3b98b7aac Togglable NetworkManager window for waybar using nmtui 2021-07-27 01:05:13 -04:00
John Mertz 4af7235289 Files were moved and updated. Deleting old. 2021-01-17 22:03:13 -05:00