Commit Graph

348 Commits

Author SHA1 Message Date
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
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
John Mertz 41ebb871d6 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.
2021-01-17 21:51:31 -05:00
John Mertz 35ee85f260 Simple script to toggle docked and detached output layouts 2021-01-17 21:49:54 -05:00
John Mertz 668c3269d9 Add quick switch between docked and detached displays to power menu 2021-01-17 21:48:20 -05:00
John Mertz da77896e0f Add description for stream-podcasts.pl and setup-wireguard.sh 2020-12-01 05:13:20 -05:00
John Mertz 5dfdf7085a Script to install wireguard and generate config 2020-12-01 05:06:41 -05:00
John Mertz 3cfa85d5e5 Script to look up and stream today's podcasts 2020-12-01 04:59:29 -05:00
John Mertz f10d944e17 Kernel formatting 2020-11-23 04:35:26 -05:00
John Mertz 806f3996f2 Updated documentation
Added README data for laptop function button scripts.

Fixed formatting for links and used bold instead of code formatting for script names.
2020-11-16 07:40:33 +00:00
John Mertz dc805e06d5 toggle_output.sh was moved 2020-11-16 02:31:52 -05:00
John Mertz 93731a44e2 Move toggle_outputs to sway directory
It is not specific to thinkpad hardware but it is specific to sway; this is more appropriate
2020-11-16 00:53:09 -05:00
John Mertz 895b9b5588 Thinkpad control scripts
SystemD unit file to give ownership or necessary sys files to user

toggle_outputs.sh simply swaps between two most common layouts with
sway/displays.pl

kbd_backlight.pl simply increments the current backlight brightness then
%3 to cycle between off, low, high

blc.pl is an overly complicated screen backlight control
2020-11-15 23:55:20 -05:00
John Mertz dd6a04088f 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.
2020-11-15 23:47:18 -05:00
John Mertz 7f41003cdc Updated for WireGuard, prevented reloading waybar on abort 2020-11-15 23:46:04 -05:00
John Mertz c1d609d8a2 Change to wireguard IP 2020-11-13 20:59:45 -05:00
John Mertz ed8c247372 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
2020-10-10 05:06:58 -04:00
John Mertz b99662e7c1 Remove unnecessary debug line 2020-10-10 04:44:51 -04:00
John Mertz a663dfb863 Script to automatically update firefox since it's not great at doing
this on it's own
2020-09-13 02:18:03 -04:00
John Mertz 38ef9f163f Updated docs, removed unneeded or duplicates 2020-09-11 11:05:15 -04:00
John Mertz ff98665a42 Intial commit of all current scripts 2020-09-11 11:00:39 -04:00
John Mertz 697cb9cf7a Initial Commit 2019-12-08 00:35:41 -05:00