This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Personal workaround for https://github.com/pop-os/cosmic-greeter/issues/19 , where using an HDMI monitor as part of a dual monitor setup prevents either monitor from sleeping. | |
| When screen is locked (explicitly or from idleness), disable second (HDMI) monitor. Re-enable monitor on screen unlock. | |
| Notes: | |
| watchlock.sh runs under zsh. It could certainly be rewritten to run under bash if desired; the only tricky part to get correct is the glob expansion for the lock file. | |
| In watchlock.sh, the ID for my HDMI monitor is hardcoded (HDMI-A-3). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
| // Settings in here override those in "LSP-pylsp/LSP-pylsp.sublime-settings" | |
| { | |
| "disabled_capabilities": { | |
| "completionProvider": true, | |
| "definitionProvider": true, | |
| "documentHighlightProvider": true, | |
| "documentSymbolProvider": true, | |
| "hoverProvider": true, | |
| "referencesProvider": true, | |
| "renameProvider": true, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- Customize fonts and colors. | |
| local always_switch_all_window_schemes = true | |
| local wezterm = require 'wezterm' | |
| local schemes = require 'schemes' | |
| local util = require 'util' | |
| local module = {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python3 | |
| # https://discussion.fedoraproject.org/t/change-scaling-resolution-of-primary-monitor-from-bash-terminal/76778/25 | |
| import dbus | |
| bus = dbus.SessionBus() | |
| display_config_well_known_name = "org.gnome.Mutter.DisplayConfig" | |
| display_config_object_path = "/org/gnome/Mutter/DisplayConfig" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # For PipeWire. Based on my previous script for PulseAudio. This one might | |
| # also work with PulseAudio since it only uses pactl... haven't tested that. | |
| # Unlike on my older PulseAudio system, I didn't need to edit any config file | |
| # to disable per-application persistence of sink assignments. | |
| # The grepping/sed-ing patterns for various bits of command output may need | |
| # to be tweaked to work with other systems or audio devices. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from subprocess import Popen, PIPE, call | |
| import logging | |
| import logging.handlers | |
| import sys | |
| import os | |
| # NOTE: this script assumes a debian system and requires the wmctrl and xdotool packages | |
| # sudo apt-get install wmctrl xdotool | |
| # NOTE: To get [Alt + ` ]to register on Elementary OS requires removing the keybinding via dconf editor for switch-group/switch-group-backward |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # Script for running the LinApple emulator fullscreen and with autoboot. | |
| # The intention is to keep it running unattended. | |
| # System is set to autologin as a particular user without requiring password. | |
| # This script can be run from a .desktop file in .config/autostart so that it | |
| # runs on system boot. | |
| # The demo loop I want to run seems to freeze sometimes. So, every 5 minutes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # For PulseAudio. | |
| # FOR THIS TO WORK, I needed to edit /etc/pulse/default.pa so that this line: | |
| # load-module module-stream-restore | |
| # is instead like this: | |
| # load-module module-stream-restore restore_device=false | |
| # | |
| # I believe this will also undermine the ability to set some app to use a |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // SPDX-License-Identifier: GPL-2.0-or-later | |
| // | |
| // looooosely based on usbip_unbind.c and sysfs_utils.c from the Linux source | |
| // This C code is for replicating this kind of behavior from the shell: | |
| // sudo sh -c 'echo 8-1 > /sys/bus/usb/drivers/usb/unbind' | |
| // sleep 30 | |
| // sudo sh -c 'echo 8-1 > /sys/bus/usb/drivers/usb/bind' | |
| // I use that to bounce my wireless mouse to the receiver on another computer. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| These are examples of Quake 3 compilation profiles for use with TrenchBroom. | |
| I'm NOT saying that these examples have the best command-line arguments that are appropriate for your situation. In particular, you may want to fool around with different arguments for the lighting pass. This is just to help get the skeleton of a compile profile in place, which you can then modify. | |
| ---------- | |
| In any case, to get started the first thing you'll need is a set of compile tools for Quake 3 maps. | |
| If you want to get the tools from netradiant-custom, FYI that project lives here: https://github.com/Garux/netradiant-custom |
NewerOlder