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
| theme = Ayu | |
| font-family = Fira Code | |
| window-width = 75 | |
| window-height = 25 | |
| window-padding-x = 8 | |
| window-padding-y = 8 | |
| window-padding-balance = true | |
| window-vsync = true | |
| alpha-blending = native | |
| background-image-fit = cover |
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 | |
| state=$(gdbus call --session --dest org.gnome.SettingsDaemon.Rfkill \ | |
| --object-path /org/gnome/SettingsDaemon/Rfkill \ | |
| --method org.freedesktop.DBus.Properties.Get \ | |
| org.gnome.SettingsDaemon.Rfkill AirplaneMode | awk -F '[<>]' '{print $2}') | |
| new_state="<true>" | |
| [ "$state" = "true" ] && new_state="<false>" |
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 | |
| sed 's/^background-image =/# background-image =/; t quit; s/^# background-image =/background-image =/; : quit' ~/.config/ghostty/config.ghostty -i |
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 | |
| # gnome queues up multiple runs if you inevitably hold down a keybinding | |
| # for more than a tick; detect other instances of this program or its | |
| # children (like tee) and exit if any exist | |
| MY_PID=$$ | |
| SCRIPT_NAME=$(basename "$0") | |
| RUNNING_INSTANCES=$(pgrep -f "$SCRIPT_NAME" | grep -v "$MY_PID" | wc -l) |
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 | |
| INTERFACE=$1 | |
| ACTION=$2 | |
| TRUSTED_ZONE="trusted" | |
| VPN_NAME="proton-free" | |
| ZONE=$(nmcli -g connection.zone connection show "$INTERFACE" 2>/dev/null) | |
| [ -z "$ZONE" ] && ZONE=$(firewall-cmd --get-zone-of-interface=$INTERFACE 2>/dev/null) |
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
| { | |
| "languages": { | |
| "markdown": { | |
| "auto_indent": false, | |
| "extensions": [ | |
| "md", | |
| "markdown", | |
| "mdx" | |
| ], | |
| "filenames": [ |
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
| abbr -a -- s 'sudo systemctl' | |
| abbr -a -- s- 'systemctl --user' | |
| abbr -a -- nautilus 'nautilus . > /dev/null 2>&1 &' | |
| abbr -a -- ls lsd | |
| abbr -a -- la 'lsd -al' | |
| abbr -a -- sudo -E | |
| abbr -a -- vv 'v -l -al' | |
| abbr -a -- which 'type -p' | |
| abbr -a -- cat bat |