This file contains 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 | |
RES="$(rofi -dmenu -p "Power" <<< $'Shutdown\nRestart\nLog Out\nLock')" | |
if [[ "$RES" == "Shutdown" ]]; then /usr/local/sbin/do shutdown & disown; fi | |
if [[ "$RES" == "Restart" ]]; then /usr/local/sbin/do restart & disown; fi | |
if [[ "$RES" == "Log Out" ]]; then hyprctl dispatch exit; fi | |
if [[ "$RES" == "Lock" ]]; then swaylock; fi | |
#if [[ "$RES" == "Suspend" ]]; then swaylock & /usr/local/sbin/do suspend1 & disown; fi |
This file contains 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
type = process | |
command = /usr/bin/openrgb --server --server-port 6742 -p default_noram --config /home/mekb/.config/OpenRGB/ | |
smooth-recovery = true | |
logfile = /var/log/dinit/openrgb.log | |
waits-for = udev-settle | |
This file contains 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/bash | |
ROOT_PROGRAM=(sudo) | |
APT=(apt) | |
function pacman-run-apt(){ | |
"${APT[@]}" "$@" | |
} | |
function pacman-run-apt-with-root(){ | |
IFS= | |
if [[ "$(id -u)" == "0" ]]; then | |
"${APT[@]}" "$@" |
This file contains 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 node | |
const net = require("net"); | |
const serverClientHost = "192.168.88.79"; // P->S | |
const serverClientPort = 22; | |
const proxyServerPort = 1337; // C->S | |
const proxyServer = new net.Server(); | |
proxyServer.on("connection", (socket) => { | |
console.log("[C-P] new connection"); | |
console.log(socket.address()); | |
let serverClient = new net.Socket(); |
This file contains 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/bash | |
DIR=/tmp/liminetest | |
ISO_DIR=$DIR/isoroot | |
ISO=$DIR/out.iso | |
LIMINE_CONFIG=limine.conf | |
LIMINE_EXTRA_FILES=(limine_bg.bmp) | |
LIMINE_BIN_DIR=/usr/share/limine | |
LIMINE_TOOL=limine | |
#LIMINE_BIN_DIR=~/clone2/limine/bin | |
#LIMINE_TOOL=~/clone2/limine/bin/limine |
This file contains 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
#controlgroup wheel | |
#hostname | |
#clientid | |
duid | |
persistent | |
vendorclassid | |
#option domain_name_servers, domain_name, domain_search | |
option classless_static_routes | |
option interface_mtu | |
option host_name |
This file contains 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 node | |
const fs = require("fs"); | |
const file = fs.readFileSync(process.argv[2]).toString().split("\n").filter(e => !e.startsWith("#")).map(e => e.replace(/\s+/g, " ")); | |
const scale = parseFloat(process.argv[3] || "1"); | |
const color = process.argv[4] || "0xFFFFFF"; | |
let vertices = []; | |
let faces = []; | |
const triangle = (arr) => { | |
if (arr.length < 3) return [ arr ]; | |
let z = []; |
This file contains 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/bash | |
HTML_CLIENT="librewolf" | |
AW="/usr/share/doc/arch-wiki/html/$(locale|grep "^LANG="|sed "s|^LANG=||;s|[_. :].*||")" | |
while true; do | |
if [[ -d "$AW" ]]; then | |
cd -- "$AW" | |
RES="$(printf "%s\n" Cancel * | dmenu -i)" | |
if [[ "$RES" == "Cancel" ]]; then exit; fi | |
AW="$AW/$RES" | |
else if [[ -f "$AW" ]]; then |
This file contains 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/bash | |
if [[ "$TERM" == "linux" ]]; then | |
printf "%s" $'\x1b[48;5;0;38;5;15m 0 \x1b[48;5;1;38;5;15m 1 \x1b[48;5;2;38;5;15m 2 \x1b[48;5;3;38;5;15m 3 \x1b[48;5;4;38;5;15m 4 \x1b[48;5;5;38;5;15m 5 \x1b[48;5;6;38;5;15m 6 \x1b[48;5;7;38;5;15m 7 \x1b[0m\n' | |
printf "%s" $'\x1b[48;5;0;38;5;15m 8 \x1b[48;5;1;38;5;15m 9 \x1b[48;5;2;38;5;15m10 \x1b[48;5;3;38;5;15m11 \x1b[48;5;4;38;5;15m12 \x1b[48;5;5;38;5;15m13 \x1b[48;5;6;38;5;15m14 \x1b[48;5;7;38;5;15m15 \x1b[0m\n' | |
else | |
printf "%s" $'\x1b[48;5;0;38;5;255m 0 \x1b[48;5;1;38;5;255m 1 \x1b[48;5;2;38;5;255m 2 \x1b[48;5;3;38;5;255m 3 \x1b[48;5;4;38;5;255m 4 \x1b[48;5;5;38;5;255m 5 \x1b[48;5;6;38;5;255m 6 \x1b[48;5;7;38;5;16m 7 \x1b[0m\n' | |
printf "%s" $'\x1b[48;5;8;38;5;255m 8 \x1b[48;5;9;38;5;16m 9 \x1b[48;5;10;38;5;16m10 \x1b[48;5;11;38;5;16m11 \x1b[48;5;12;38;5;16m12 \x1b[48;5;13;38;5;16m13 \x1b[48;5;14;38;5;16m14 \x1b[48;5;15;38;5;16m15 \x1b[0m\n' | |
printf "%s" $'\n' | |
for m in {0..5}; do | |
for l in {0..5}; do |
This file contains 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
<?xml version="1.0"?> | |
<!DOCTYPE fontconfig SYSTEM "fonts.dtd"> | |
<fontconfig> | |
<match target="font"> | |
<edit name="antialias" mode="assign"> | |
<bool>true</bool> | |
</edit> | |
</match> | |
<alias> | |
<family>serif</family> |