Commit Graph

158 Commits

Author SHA1 Message Date
John Mertz ff4f9b43dc Sway and distrobox scripts 2023-01-17 11:18:30 -05:00
John Mertz 4c5cad9458 Add TODO 2023-01-09 17:55:31 -05:00
John Mertz c8912d288e Get outputs from configuration file 2023-01-09 17:52:25 -05:00
John Mertz 2b83934283
Re-disable Journald, -> distrobox 2023-01-09 11:52:03 -05:00
John Mertz 00eef39441
Fix merge conflicts 2023-01-07 13:32:14 -05:00
John Mertz 6cbadb5d5d
ts4 2023-01-07 08:17:43 -05:00
John Mertz 6d33d9446f tabs->spaces 2023-01-06 14:41:31 -05:00
John Mertz ecd9920a37 Standardize and expand tab to 4 2022-12-29 12:37:33 -05:00
John Mertz c4bbf89f52 Increase scale for new terminal font size.
Maximum possible to fit 108 columns when vertically split 50/50, enough for 100 columns plus 8 for line numbers/git status
2022-12-29 12:36:53 -05:00
John Mertz 5efb8da6cf
Renamed 2022-12-16 20:19:40 -05:00
John Mertz 2955c76c7b
Move gammastep to distrobox 2022-12-16 20:15:00 -05:00
John Mertz ccde8384cc renamed 2022-12-15 21:52:54 -05:00
John Mertz 3e034fb461
Move sway-transparency to distrobox
Standardize script names
2022-12-15 11:26:05 -05:00
John Mertz fcffe18886 Typos 2022-12-12 18:04:23 -05:00
John Mertz 14310c3c58 Support for blocking hibernation 2022-11-21 18:56:50 -05:00
John Mertz 4bdd817ae1 New 'fade' action as first step to 'idle'
Will take ~1-2s to fade all windows (depending on number of windows. Allows for fullscreen wallpaper for a couple of minutes before next steps.
2022-11-21 18:44:59 -05:00
John Mertz 006e009eea Disable logging 2022-11-07 14:50:51 -05:00
John Mertz 447fcb9b5d Remove merge cruft 2022-11-04 23:06:08 -04:00
John Mertz abc0b9f097 Merge branch 'master' of ssh://git@git.john.me.tz:223/jpm/scripts.git
Conflicts:
	send-to-kodi.sh
	sway/displays.pl
	sway/idle.sh
	sway/idlecountdown.sh
	sway/startsway.sh
	waybar/waybar-fedora-silverblue.sh
	wofi/wofi-alt-tab.sh
2022-11-04 11:09:07 -04:00
John Mertz 6759d36323 Update displays.pl 2022-11-04 11:05:12 -04:00
John Mertz b79d4ada25 Update startsway.sh 2022-11-04 11:03:55 -04:00
John Mertz aa9f93ccdd
Development branch to get sticky.client
Kill wallpapers on exit
2022-10-31 18:33:08 -04:00
John Mertz 6f6f42db57
Trigger swayidle 2022-10-31 18:33:07 -04:00
John Mertz d90eaeed5c
improve idle behaviour 2022-10-31 18:33:07 -04:00
John Mertz 4d73b99abf
Window transparency effecs 2022-10-31 18:33:07 -04:00
John Mertz 1cc843e6eb
Generic power-menu.sh script for rofi/wofi depending on WM 2022-10-31 18:33:05 -04:00
John Mertz fa007b60ef
Fix file path of cropped image 2022-10-31 18:33:05 -04:00
John Mertz bc61b23883
Script to rotate wallpaper 2022-10-31 18:33:04 -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 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 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 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 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 5c3a10ce76
Cleanup and update paths 2022-10-31 18:32:57 -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 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 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 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
John Mertz 77db7f3640
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.
2022-10-31 18:32:51 -04:00
John Mertz b754308a90
Move setup into function where it is required 2022-10-31 18:32:50 -04:00
John Mertz 3ace506009
Fix resolution of Sam, change new output mapping 2022-10-31 18:32:50 -04:00
John Mertz c419c8d2ed
Files were moved and updated. Deleting old. 2022-10-31 18:32:49 -04:00
John Mertz bbd69f5e73
A simulacrum of a functional swayidle script.
Working: A proper countdown to idle works and is cancelled on resume.
Displays are dimmed if possible at countdown start and restorted at
resume. The screens properly lock. The power to the displays is turned
off. The power is restore upon first resume. Layout and brightness
restored on unlock.

Known issue: Displays are not restored if the system idles again while
on lock screen. This shouldn't really happen and is a possible indicator
of tampering, which is kind of cool, but it's janky. Power needs to be
restored with the toggle_displays hotkey.
2022-10-31 18:32:48 -04:00
John Mertz 7fb00b5f09
Default displays changed. Added fallback action.
If a config is selected for which the displays do not exist, either bail
or if in recovery mode, restore 'detached'. The latter was added in
anticipation of the swayidle script which will attempt to restore a
layout that may no longer be possible. Since swayidle disables dpms, it
must allow a backup display to come live if the last logged layout is
not possible.
2022-10-31 18:32:48 -04:00
John Mertz 31fe7a032b
Simple script to toggle docked and detached output layouts 2022-10-31 18:32:48 -04:00
John Mertz a4f2b3310c
Kernel formatting 2022-10-31 18:32:47 -04:00
John Mertz 4750ac31b3
Move toggle_outputs to sway directory
It is not specific to thinkpad hardware but it is specific to sway; this is more appropriate
2022-10-31 18:32:46 -04:00
John Mertz 8baad221bd
Better comments, prevent duplicate waybars
Generate a single config file. Multiple processes seems to have run into
a bug where waybar will restore killed bars.
2022-10-31 18:32:46 -04:00
John Mertz 5b18c8d7f4
Login scripts
Stores WM to last_login_gui file to allow for auto-login to the last
used GUI

Removes old log file, executes GUI with new one
2022-10-31 18:32:45 -04:00
John Mertz ea6b7df307
Remove unnecessary debug line 2022-10-31 18:32:45 -04:00
John Mertz e80233dd04
Intial commit of all current scripts 2022-10-31 18:32:44 -04:00
John Mertz 9dd860332a Window transparency effecs 2022-09-23 22:37:07 -04:00
John Mertz 0fb49f9e06 Generic power-menu.sh script for rofi/wofi depending on WM 2022-09-23 17:37:09 -04:00
John Mertz 95499d1130 Fix file path of cropped image 2022-09-22 14:32:39 -04:00
John Mertz 4a69e4e8d6 Script to rotate wallpaper 2022-09-22 14:32:09 -04:00
John Mertz d8ae0c1c48 Track PID 2022-09-17 15:17:28 -04:00
John Mertz 2559d13d38 Prevent fork. Limits to one PID 2022-09-17 15:17:02 -04:00
John Mertz 3c059af401 Increase delay to give more time before deletion 2022-09-17 15:16:05 -04:00
John Mertz 586ce31d0d Inverted logic for log level validationd 2022-09-02 23:05:44 -06:00
John Mertz 540dc56478 Gammastep waybar 2022-08-25 23:05:14 -06:00
John Mertz 1fe452828c Force GLES2
Update defaulted to Vulkan which isn't working
2022-08-23 11:59:45 -06:00
John Mertz 922e3708c2 Add recursive enumeration of images
cleaned up some comments and one typo in ARG parsing
2022-07-25 22:27:47 -04:00
John Mertz 55c2a73737 Systemd Unit for wallpaper.pl 2022-07-25 18:43:35 -04:00
John Mertz c607015ade Refactor, add SystemD Journaling 2022-07-25 17:03:18 -04:00
John Mertz 2933abcabb Update usage and add some TODO comments 2022-07-23 03:58:11 -04:00
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 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 7e0f028611 Cleanup and update paths 2022-06-06 13:56:59 -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 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 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 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 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 88ea557246 Move setup into function where it is required 2021-07-27 01:25:41 -04:00
John Mertz be4b5bd30c Fix resolution of Sam, change new output mapping 2021-07-27 01:22:03 -04:00
John Mertz 4af7235289 Files were moved and updated. Deleting old. 2021-01-17 22:03:13 -05:00
John Mertz 978a6aef4b A simulacrum of a functional swayidle script.
Working: A proper countdown to idle works and is cancelled on resume.
Displays are dimmed if possible at countdown start and restorted at
resume. The screens properly lock. The power to the displays is turned
off. The power is restore upon first resume. Layout and brightness
restored on unlock.

Known issue: Displays are not restored if the system idles again while
on lock screen. This shouldn't really happen and is a possible indicator
of tampering, which is kind of cool, but it's janky. Power needs to be
restored with the toggle_displays hotkey.
2021-01-17 21:54:21 -05:00