Skip to content

Instantly share code, notes, and snippets.

@linguisticmind
linguisticmind / awesome_wm_move_systray.lua
Last active June 29, 2025 09:08
awesome_wm_move_systray.lua | "[Setting up Debian #16] Awesome WM: how to move the system tray to a different screen" (https://youtu.be/FfYWVOFUJJU) | Mindful Technology
-- Put this code in the 'Keybindings' section,
-- under 'Layout manipulation' --
-- e.g. after the 'focus the previous screen' shortcut
-- Video tutorial: https://youtu.be/FfYWVOFUJJU
awful.key({modkey, "Control", "Mod1"}, "j",
function()
awful.screen.focus_relative( 1)
wibox.widget.systray():set_screen(awful.screen.focused())
@linguisticmind
linguisticmind / default.pa
Last active July 19, 2024 00:10
default.pa | "Stream OBS Virtual Camera + PulseAudio over a video call (Debian Linux)" (https://youtu.be/GukhJv-4PPU) | Mindful Technology
# This is a PulseAudio setup for streaming OBS Virtual Camera + PulseAudio over a video call
# Video tutorial: https://youtu.be/GukhJv-4PPU
.include /etc/pulse/default.pa
.ifexists module-null-sink.so
load-module module-null-sink sink_name=virtual_speaker_1 sink_properties='device.description="Virtual Speaker 1: Non-Streaming Apps"'
load-module module-null-sink sink_name=virtual_speaker_2 sink_properties='device.description="Virtual Speaker 2: Streaming Apps"'
load-module module-null-sink sink_name=virtual_speaker_3 sink_properties='device.description="Virtual Speaker 3: OBS Monitoring Device"'
.endif
@linguisticmind
linguisticmind / trilium_black.css
Last active July 19, 2024 00:10
A black theme for Trilium (https://github.com/zadam/trilium) | "Trilium: an awesome wiki-style note taking app" (https://youtu.be/kElgqf5ejnY) | Mindful Technology
:root {
--theme-style: dark;
--main-font-family: 'Source Code Pro', 'Source Han Mono';
--main-font-size: 1.2em;
--tree-font-family: 'Source Code Pro', 'Source Han Mono';
--tree-font-size: normal;
--detail-font-family: 'Source Code Pro', 'Source Han Mono';
@linguisticmind
linguisticmind / awesome_wm_move_client_to_prev_next_tag.lua
Last active July 19, 2024 00:11
awesome_wm_move_client_to_prev_next_tag.lua | "[Setting up Debian #21, Live coding] Awesome WM: move app to the next/previous workspace" (https://youtu.be/d9TszCt4NzM) | Mindful Technology
-- Put this code in the 'Key bindings' section --
-- e.g. after the 'view next' shortcut
-- Video: https://youtu.be/d9TszCt4NzM
awful.key({ modkey, "Shift" }, "Left",
function()
local s = awful.screen.focused()
if s.selected_tag == s.tags[1] then return end
if client.focus then
@linguisticmind
linguisticmind / getopt-demo
Last active July 19, 2024 00:11
A Bash script template | "[Bash scripting #1] Parsing options with getopt" (https://youtu.be/Ok9hncgOtxE) | Mindful Technology
#!/usr/bin/env bash
function print_demo_msg {
printf '\x1b[38;5;243;48;5;233m%s\x1b[49;39m\n' "$1"
printf '%s\n' "$2" #| batcat -pl bash --color=always --theme='OneHalfDark'
}
version=0.1.0
getopt -T > /dev/null
@linguisticmind
linguisticmind / port-install
Last active July 19, 2024 00:12
port-install | "macOS package management (MacPorts, Homebrew)" https://youtu.be/vC6ykcyTzLg | Linguistic Mind
#!/usr/bin/env bash
# port-install - install MacPorts from a tarball to a custom prefix
# copyright (c) 2021 Alex Rogers (https://github.com/linguisticmind)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
@linguisticmind
linguisticmind / brew-install
Last active July 19, 2024 00:12
brew-install | "macOS package management (MacPorts, Homebrew)" (https://youtu.be/vC6ykcyTzLg) | Linguistic Mind
#!/usr/bin/env bash
# brew-install - install Homebrew to a custom prefix
# copyright (c) 2021 Alex Rogers (https://github.com/linguisticmind)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
@linguisticmind
linguisticmind / mpv-disable-macos-keybindings
Last active July 19, 2024 00:13
mpv-disable-macos-keybindings | "[mpv #2] Additional mpv player stuff" (https://youtu.be/mGLHKogyDUs) | Linguistic Mind
#!/usr/bin/env bash
# mpv-disable-macos-keybindings
# copyright (c) 2021 Alex Rogers (https://github.com/linguisticmind)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
@linguisticmind
linguisticmind / movies2anki_tweaks.md
Last active July 19, 2024 00:13
movies2anki_tweaks.md | "movies2anki tweaks" (https://youtu.be/YOh_s6LBqto) | Linguistic Mind
@linguisticmind
linguisticmind / deck_names
Last active February 5, 2025 12:09
deck_names | "A quick hack to sort Anki decks in any order" (https://youtu.be/_PjygdE6iLU) | Linguistic Mind
​English
​​Nederlands
​​​Deutsch
​​​​Svenska
​​​​​Norsk
​​​​​​Dansk
​​​​​​​Français
​​​​​​​​Español
​​​​​​​​​Português
​​​​​​​​​​Italiano