Skip to content

Instantly share code, notes, and snippets.

View abbood's full-sized avatar
💭
Leading Village.do tech team

Abdullah Bakhach abbood

💭
Leading Village.do tech team
View GitHub Profile
# /home/abbood/.config/systemd/user/hyprmon-daemon.service
[Unit]
Description=Hyprmon Monitor Hotplug Daemon
After=graphical-session.target
[Service]
Type=simple
ExecStart=/home/abbood/.local/bin/hyprmon-monitor-daemon
Restart=always
RestartSec=2
#!/bin/bash
# Logging setup
LOG_DIR="$HOME/.local/share/hyprmon-daemon"
LOG_FILE="$LOG_DIR/daemon.log"
mkdir -p "$LOG_DIR"
# Function to log with timestamp
log() {
echo "[$(date '+%Y-%m-%d %H:%M:%S')] $1" >> "$LOG_FILE"
#!/bin/bash
LOG_DIR="$HOME/.local/share/hyprmon-daemon"
LOG_FILE="$LOG_DIR/switch.log"
mkdir -p "$LOG_DIR"
log() {
echo "[$(date '+%Y-%m-%d %H:%M:%S')] $1" >> "$LOG_FILE"
}
# to prevent hyprland from crashing on sudden hdmi disconnect
ungroup_all_windows() {
log "Ungrouping all grouped windows..."
# move window to prev and next space
#shift + alt - p : yabai -m window --space prev;
#shift + alt - n : yabai -m window --space next;
shift + alt - n : ~/scripts/clear_space0.sh;
ctrl + alt - right : yabai -m display --focus 1
ctrl + alt - left : yabai -m display --focus 2
# move currently focused window to next space
alt + cmd - right : yabai -m window --space next
alt + cmd - left : yabai -m window --space prev
@abbood
abbood / gist:316ea9f7e211c85c3c510dd02a36bc96
Created December 12, 2024 15:17
aerospace window manager setup
# Place a copy of this config to ~/.aerospace.toml
# After that, you can edit ~/.aerospace.toml to your liking
# It's not necessary to copy all keys to your config.
# If the key is missing in your config, "default-config.toml" will serve as a fallback
# You can use it to add commands that run after login to macOS user session.
# 'start-at-login' needs to be 'true' for 'after-login-command' to work
# Available commands: https://nikitabobko.github.io/AeroSpace/commands
after-login-command = []
-- Read the docs: https://www.lunarvim.org/docs/configuration
-- Example configs: https://github.com/LunarVim/starter.lvim
-- Video Tutorials: https://www.youtube.com/watch?v=sFA9kX-Ud_c&list=PLhoH5vyxr6QqGu0i7tt_XoVK9v-KvZ3m6
-- Forum: https://www.reddit.com/r/lunarvim/
-- Discord: https://discord.com/invite/Xb9B4Ny
local opts = { noremap = true, silent = true }
local map = vim.api.nvim_set_keymap
lvim.leader = ","
-- Enable formatting on save
{
"contactsReturned": false,
"relationships": [
{
"identity": 106243532,
"labels": "Person",
"warmth_version": 1,
"linkedin_connections": 65535,
"load_source": "coresignal",
"warmth_trigger_date": 1699024241178,
{
"linkedin_id": "urn:li:fs_profileView:ACoAAEmyxIsBT7wzSvWyuQAL19EaDEVebiGYm14",
"firstname": "macbeth",
"lastname": "el kahtani",
"profile_url": "https://www.linkedin.com/in/macbeth-el-kahtani-7771032a6",
"avatar_url": "https://media.licdn.com/dms/image/D4E03AQEGTicXa7prJQ/profile-displayphoto-shrink_800_800/0/1702895338460?e=1711584000&v=beta&t=4ICqRjEsjjwdPNSLRFR4lcFL-Ni5xX2yUBxosAMI_n0",
"country": "Lebanon",
"location": "Beirut, Beirut Governorate",
"number_of_connections": "",
"about": "",
@abbood
abbood / gist:a453141a877ad65a385a7ef246eb5c19
Created January 25, 2024 16:29
macbeth qahtani profile data
{
"positionGroupView": {
"paging": {
"start": 0,
"count": 5,
"total": 1,
"links": []
},
"entityUrn": "urn:li:fs_positionGroupView:ACoAAEmyxIsBT7wzSvWyuQAL19EaDEVebiGYm14",
"profileId": "ACoAAEmyxIsBT7wzSvWyuQAL19EaDEVebiGYm14",
@abbood
abbood / gist:05f62078937289b8e61613746e66a8d7
Created January 19, 2024 14:24
{{chargebeeDomain}}/api/v2/estimates/create_subscription_for_items?subscription_items[item_price_id][0]={{itemPriceId}}
{
"estimate": {
"created_at": 1705672766,
"object": "estimate",
"subscription_estimate": {
"status": "active",
"next_billing_at": 1708351166,
"object": "subscription_estimate",
"currency_code": "USD"
},