Skip to content

Instantly share code, notes, and snippets.

@oficsu
oficsu / kscreenlocker-layout-switcher.sh
Last active December 18, 2024 11:35
Enable only us keyboard layout in the KDE Plasma screenlocker and disable others
#!/bin/bash
# MIT License
#
# Copyright (c) 2024 Ofee Oficsu
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@oficsu
oficsu / fzf-history.sh
Last active May 3, 2025 12:15
An alterntive to __fzf_history__ that supports immediate execution, moving around match and showing date with arbitrary HISTTIMEFORMAT
#!/bin/bash
# Demonstration: https://youtu.be/Uj3nmYq5LnQ
# MIT License
#
# Copyright (c) 2024 Ofee Oficsu
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
@oficsu
oficsu / pip.lua
Created April 20, 2024 19:13
A script implementing picture-in-picture feature for mpv
local msg = require 'mp.msg'
local options = require 'mp.options'
local opts = {
enabled = true,
active = false,
}
options.read_options(opts)
@oficsu
oficsu / lk
Last active May 14, 2023 21:19
Simple ln wrapper with more intuitive syntax (link name and target path are swapped, symbolic by default)
#!/bin/bash
backup=false
control=""
force=false
interactive=false
logical=false
dereference=true
relative=false