tell me the most ass over backward shit you do to keep your system chugging?
here’s mine:
sway struggles with my dual monitors, when my screen powers off and back on it causes sway to crash.
system service ‘switch-to-tty1.service’
[Unit]
Description=Switch to tty1 on resume
After=suspend.target
[Service]
Type=simple
ExecStart=/usr/local/bin/switch-to-tty1.sh
[Install]
WantedBy=suspend.target
‘switch-to-tty1.service’ executes ‘/usr/local/bin/switch-to-tty1.sh’ and send user to tty1
#!/bin/bash
# Switch to tty1
chvt 1
.bashrc login from tty1 then kicks user to tty2 and logs out tty1.
if [[ "$(tty)" == "/dev/tty1" ]]; then
chvt 2
logout
fi
also tty2 is blocked from keyboard inputs (Alt+Ctrl+F2) so its a somewhat secure lock-screen which on sway lock-screen aren’t great.
Got fed up of Pipewire suspending (old receiver takes ~2 sec to work again after spdif stream is cut) that now I auto-run aplay to play a silent .wav on loop
But there is a setting to disable that? I don’t remember where I found it because I don’t remember where to find any settings, but you can definitely disable automatic shut off of audio devices.
Yes, you kinda can disable suspend, but it will still cut off spdif transmission even then. Normally that wouldn’t be an issue but my receiver is super old and takes its sweet time to start actually playing audio after it gets a signal
Ah, didn’t know it worked differently for spdif, never had anything nice enough to use it.
Building a custom Buildroot Linux for a Pentium 2 laptop that can fit on a CD so I could back up a 2.5" IDE drive to a USB drive, probably.
On another note, last night, I had to get a Google TV set up on my dorm Wi-Fi, which requires me to either go through a portal to set it up or to go into my account and add the device’s MAC address. The TV (which was brand new and doing OOBE stuff) wouldn’t let me go to settings to get the MAC address without a network connection. Even more infuriating, there was a button in the Google Home app that said “Show MAC address”, but when I pushed it, it would say “Can’t get MAC address.” What I ended up doing to get around that crap was setting up my Debian Thinkpad (which I am writing from now) to share its internet connection over ethernet to finish the setup process so I could get to settings and get the MAC address.
On one hand, a funny experience, but on the other hand, I’m simultaneously both mad at Google and my dorm internet provider.
The Pixel watch has this problem too. However, it randomizes the MAC per network, so that strategy won’t even work. I’ve tried to get it from the debug log but failed I’ve resigned that it won’t be getting connected to the school network
The iPhone does that too, but has a way to disable it on a per-network basis.
Open a bug report with the school network admkn. This is default android behavior and a privacy issue to boot
Android is fine because you’re able to use a web browser to get an auth key. You have to register devices where you can’t do that, and it seems to be impossible in the case of the pixel watch
Edit: Also, they’re not concerned about privacy. They want to know who every device belongs to
That never works for me on Android systems. It probably needs some shitty Google service.
You have a right to privacy. Its your school. They work for you.
What is it with these schools and not just using WPA Enterprise? They already hand out an email to every student so it makes it dead simple to deactivate the account’s PSK upon terming the student
deleted by creator
wayland.windowManager.sway.config.keybindings = let # ... screenshot = with pkgs; writeShellScriptBin "screenshot.sh" '' DATE=$(date +"%Y%m%d%H%M%S") if [ "$1" = "full" ]; then ${grim}/bin/grim ~/Pictures/shot_$DATE.png ${libnotify}/bin/notify-send "saved full screenshot to shot_$DATE.png" elif [ "$1" = "full-copy" ]; then ${grim}/bin/grim - | ${wl-clipboard}/bin/wl-copy -t image/png ${libnotify}/bin/notify-send "copied full screenshot" elif [ "$1" = "sel" ]; then ${grim}/bin/grim -g "$(${slurp}/bin/slurp)" ~/Pictures/sel_$(date +"%Y%m%d%H%M%S").png ${libnotify}/bin/notify-send "saved selection to sel_$DATE.png" elif [ "$1" = "sel-copy" ]; then ${grim}/bin/grim -g "$(${slurp}/bin/slurp)" - | ${wl-clipboard}/bin/wl-copy -t image/png ${libnotify}/bin/notify-send "copied screenshot" else printf "Invalid argument: '$1'\n" fi ''; in lib.mkOptionDefault { # ...
This is in my Home Manager configuration. I don’t think this is that bad, it’s just kinda messy. If you can’t tell, it’s a script for taking screenshots, embedded in my configuration.
I’m not technically inclined at all, so the most duct tapey thing I can remember was hacking Gnome to use Nemo as my file browser instead of Gnome’s default file browser once.
I wrote a systemd unit file to force my wireless keyboard to always switch the fn key to normal F-keys.
I think there is a value you can put into a /sys file to fix this. Had the same issue on my k10 keyboard. (the fix was easily findable on their forums)
Don’t remember the specifics but I had a key combo setup to force a soft reset in my DE. Occasionally a kernel or driver update would fuck up my video and make the system unusable but still live. I try to avoid hard resets.
In the earlier days of Plasma 6, it would crash on me when waking from sleep, so I had a small script that would basically restart plasmashell when waking so I didn’t have to wait the several seconds for the system to realize that it was frozen before I had a functional desktop.
Side of the case fell off.
You guys will probably groan but lots of people in this comment section should look into NixOS. My old Ubuntu machine was loaded with hacks I got from stack overflow to get certain things working (a script that runs at boot and shutdown to mount and unmount some network drives I wanted to appear natively). But now, I just use NixOS and there’s nothing on my machines that is even remotely hackey now. I just declare the drives as I want them and when I boot they are there and work as needed.
Knowing myself, I shiver at the idea of my nix config… It’ll probably have more ductape than a 3M distribution center
At least all the ductape would be easily findable and documentable in a nixos config
When installing an encrypted Arch system, I couldn’t figure out how to change the keymap in GRUB stage 1, which asks for the passphrase and then decrypts
/boot
. I just entered my passphrase with the default en-us keymap without really knowing what characters it outputs.Bootstraping.
So I use a surface device with the Linux surface kernel, and there was (and probably still is) an issue where the type cover doesn’t properly rebind after being detached and re-attatched. To make matters worse, connecting other USB devices disconnected the type cover. My solution was to make a udev rule that detected if the keyboard is “removed” and then try to rebind it, effectively unplugging it and plugging it back in again in software.
holy shit i was about to post about how i have automatic login and lock to start a program that refuses to work correctly on boot through systemd.
but then you guys are here casually posting some of the worst duct tape shit ive heard of so far. im not sure if i should reprimand or congratulate you for that jankiness.
Youtube doesn’t seem to inhibit idle for me for some reason, so my screen would always turn off with swayidle while watching youtube videos. So I made my lockscreen script (which is called by swayidle)
if [ "$(playerctl status)" = "Playing" ]; then exit 0 else exec "/path/to/lockscreen/script" fi
(lockscreen script was just swaylock called with a bunch of arguments)
Not super crazy compared to some of the things people are saying in the comments, but also definitely not how you’re meant to handle idle inhibition when media is playing lol
Hey that’s pretty good, I’m gonna steal it. It might even be worth making a pullrequest to update swaylock to have a flag to do this, I use waybar and it has a lock inhibit button that I use before I start watching anything, but automating it like this is seems super nice