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 | |
| import json | |
| import logging | |
| import subprocess | |
| import sys | |
| import psutil | |
| # logging.basicConfig(filename="/tmp/swayurg.log", level=logging.DEBUG) |
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 | |
| # Needs following to be run first: | |
| # nft -f /usr/share/nftables/ipv4-filter.nft | |
| data = { | |
| "nftables": [ | |
| {"metainfo": {"json_schema_version": 1}}, | |
| { | |
| "add": { |
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/sh | |
| exec /usr/bin/slack --enable-features=UseOzonePlatform --ozone-platform=wayland |
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/sh | |
| PATH="$HOME/bin:$PATH" | |
| export SDL_AUDIODRIVER=pulse | |
| export _JAVA_AWT_WM_NONREPARENTING=1 | |
| export QT_AUTO_SCREEN_SCALE_FACTOR=1 | |
| export QT_QPA_PLATFORM=wayland-egl | |
| export QT_WAYLAND_DISABLE_WINDOWDECORATION=1 |
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/sh | |
| export _JAVA_AWT_WM_NONREPARENTING=1 | |
| export QT_AUTO_SCREEN_SCALE_FACTOR=1 | |
| export QT_QPA_PLATFORM=wayland-egl | |
| export QT_WAYLAND_DISABLE_WINDOWDECORATION=1 | |
| export SDL_VIDEODRIVER=wayland | |
| # Session | |
| export XDG_SESSION_TYPE=wayland | |
| export XDG_SESSION_DESKTOP=sway |
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 | |
| import os | |
| import json | |
| import subprocess | |
| import sys | |
| import psutil | |
| import logging | |
| #logging.basicConfig(filename="/tmp/swayurg.log", level=logging.DEBUG) |
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
| "modules-left": ["sway/workspaces", "sway/mode", "custom/media"], | |
| "modules-center": ["sway/window"], | |
| "modules-right": ["idle_inhibitor", "pulseaudio", "cpu", | |
| "memory", "temperature", "battery", "clock", | |
| "sway/language", "tray"], |
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
| "modules-left": ["sway/workspaces", "sway/mode", "custom/media"], | |
| "modules-center": ["sway/window"], | |
| "modules-right": ["idle_inhibitor", "pulseaudio", "cpu", |
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 | |
| if [ -z "$1" ]; then | |
| echo "Need screenshot type (screen, window, selection) as argument" | |
| exit 1 | |
| fi | |
| case "$1" in | |
| whole) | |
| export IMG=~/Pictures/Screenshots/whole-$(date | sed 's/ /_/g;s/:/./g').png |