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
| # Darkthrone - Transilvanian Hunger | |
| use_debug false | |
| use_bpm 139 | |
| use_sample_defaults amp: 0.5 | |
| use_synth :blade | |
| use_synth_defaults release: 0.5 | |
| sample :drum_cymbal_closed |
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
| # OST for a horror game that doesn't exist -> sunset ride | |
| # This code is used for making 11th track on the above mentioned beat tape | |
| # Final audio is sligthly altered | |
| use_debug false | |
| use_synth :saw | |
| live_loop :metronome do | |
| sleep 0.5 | |
| end |
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 | |
| # packages needed: | |
| # for wayland: | |
| # grim - screenshot tool for wayland | |
| # slurp - selection tool for wayland | |
| # wl-clipboard - clipboard for wayland | |
| # for x11: | |
| # maim - screenshot tool for x11 | |
| # xclip - clipboard for x11 | |
| # libnotify - sends notifications |
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/bash | |
| pick=$(echo -e " Power off\n Reboot\n Lock\n Logout" | dmenu -i -l 5) | |
| case $pick in | |
| " Power off") shutdown now ;; | |
| " Reboot") reboot ;; | |
| " Lock") slock ;; | |
| " Logout") killall dwm ;; | |
| *) exit 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
| #!/usr/bin/bash | |
| DEFAULT_SINK=$(pactl list sinks | awk '/^Sink/{getline; getline; sub(/^[ \t]+Name: /, ""); print}' | sort | head -n 1) | |
| drawVol(){ | |
| getVol=$(pactl get-sink-volume $DEFAULT_SINK | awk '{print $5}') | |
| getVolTrim=${getVol::-1} | |
| dunstify -u low -r 9993 -h int:value:"$getVolTrim" "Volume: ${getVol}" -t 2000 | |
| } |
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
| --[[ | |
| Toggles OSC between "auto" and "always" | |
| https://gist.github.com/tunalad/d00a8e6ba5e2e2cd16619df0ea8e785d | |
| ]]-- | |
| local osc_visible = false | |
| local function toggle_osc() | |
| osc_visible = not osc_visible | |
| if osc_visible then | |
| mp.commandv("script-message", "osc-visibility", "always") |
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/bash | |
| DISPLAY=:0 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus | |
| export XDG_RUNTIME_DIR="/run/user/1000" | |
| HOSTNAME=$(uname -n) | |
| NTFY_TOPIC="your notify.sh topic here" | |
| acpi -b | awk -F'[,%]' '{print $2, $4, $5}' | { | |
| read -r capacity timeleft status |
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 | |
| seed="your seed here" | |
| random_string=$(echo "$seed" | sha256sum | cut -c 1-32) | |
| url="ntfy.sh/$random_string" | |
| message="example" | |
| headers=() | |
| data="-d \"$message\"" |
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 05befebe956d7e42e540bf86d0a6b938f7573e3c Mon Sep 17 00:00:00 2001 | |
| From: tunalad <[email protected]> | |
| Date: Mon, 6 Nov 2023 22:19:07 +0100 | |
| Subject: [PATCH] terminal-envvar patch | |
| pretty much clone of dwm's `environmentvars` patch, it loads the name of the terminal emulator to be used as termcmd from the environment variable TERMINAL using getenv(3p). | |
| example: | |
| ```sh | |
| $ export TERMINAL="alacritty" | |
| ``` |
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
| // ==UserScript== | |
| // @name Bandcamp Album Length | |
| // @version 1.1 | |
| // @description adds text below the tracklist with the album's total length | |
| // @author tunalad | |
| // @match *://*.bandcamp.com/album/* | |
| // @exclude *://bandcamp.com/ | |
| // @grant none | |
| // ==/UserScript== |
OlderNewer