Skip to content

Instantly share code, notes, and snippets.

View rehhouari's full-sized avatar
💫

Rafik El Hadi Houari rehhouari

💫
View GitHub Profile
@rehhouari
rehhouari / adwaita-dark.theme
Created July 18, 2024 12:46
adwaita dark theme for btop
#Bashtop Adwaita Dark theme
#by rehhouari
# Colors should be in 6 or 2 character hexadecimal or single spaced rgb decimal: "#RRGGBB", "#BW" or "0-255 0-255 0-255"
# example for white: "#ffffff", "#ff" or "255 255 255".
# All graphs and meters can be gradients
# For single color graphs leave "mid" and "end" variable empty.
# Use "start" and "end" variables for two color gradient
# Use "start", "mid" and "end" for three color gradient
@rehhouari
rehhouari / zellij-lock.zsh
Last active April 29, 2024 17:04
Automatically lock Zellij when a certain command is executed
# Define an array of commands in ENV that will lock Zellij when ran
# export ZELLIJ_LOCK=("micro" "nano" "vim")
# Store the last command we ran, this is to be used in precmd() after it exists
command=''
# Run before a command is executed
function preexec() {
# Extract the command from the input string
local cmd=${1%% *}
@rehhouari
rehhouari / system-wide-clipboard-linux.zsh
Last active December 21, 2024 17:12 — forked from varenc/system-wide-clipboard.zsh
Zsh copy & paste system wide for Linux (X11& Wayland with customizable paste and copy commands)
# Forked from https://gist.github.com/varenc/e4a22145c484771f254fa20982e2cd7f
## 2024-08-26: Update wayland detection method to work in Zellij and over SSH.
## 2024-03-30: Ported it to Linux, added display detection and customizable copy/paste commands
## Using environment variables
## 2020-05-16: Changed `echo` to `printf` so that backslashes are not interpretted by echo
## and so that CUTBUFFER shows up exactly in the pasteboard without modification
## If running on Wayland, use wl-clipboard
@rehhouari
rehhouari / audiorelay-pipewire.md
Created March 15, 2024 01:16
How to install AudioRelay on Linux using Pipewire (through pipewire-pulse)

Keybase proof

I hereby claim:

  • I am rehhouari on github.
  • I am rehhouari (https://keybase.io/rehhouari) on keybase.
  • I have a public key whose fingerprint is E89D 52B3 F37B 4586 19D8 C539 1B16 AF80 EAA5 BA67

To claim this, I am signing this object: