Created
June 30, 2025 04:16
-
-
Save b0o/c2824b8b86b8fae691f0f0678069dd7a to your computer and use it in GitHub Desktop.
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
# Theming | |
font: Pragmasevka Nerd Font 16 | |
background: "#25213B" | |
color: "#DFD9FB" | |
border: "#8466E4" | |
separator: " ➜ " | |
border_width: 3 | |
corner_r: 6 | |
padding: 15 | |
rows_per_column: 5 | |
column_padding: 25 | |
anchor: center | |
inhibit_compositor_keyboard_shortcuts: true | |
menu: | |
- key: "Mod4+space" | |
desc: Launcher | |
cmd: rofi -show drun -modi drun | |
- key: "o" | |
desc: Open | |
submenu: | |
- key: "c" | |
desc: Color Picker | |
cmd: color-picker | |
- key: "C" | |
desc: Color Picker (Copy) | |
cmd: color-picker --copy | |
- key: "o" | |
desc: Open | |
cmd: xdg-open $(wl-paste) | |
- key: "Mod4+o" | |
desc: Open | |
cmd: xdg-open $(wl-paste) | |
hide: true | |
- key: "z" | |
desc: Zathura | |
cmd: zathura $(wl-paste) | |
- key: "n" | |
desc: Nest | |
cmd: niri-tools scratchpad toggle -n web-t -a google-chrome -s 65%x65% -p 30%,20% -x 'xdg-launch -A new-window google-chrome https://home.nest.com/thermostat https://home.google.com/u/1/' | |
- key: "r" | |
desc: Resize | |
submenu: | |
- key: "1" | |
alias: ["Mod4+1"] | |
desc: Width 10% | |
cmd: niri msg action set-window-width 10% | |
- key: "2" | |
alias: ["Mod4+2"] | |
desc: Width 20% | |
cmd: niri msg action set-window-width 20% | |
- key: "3" | |
alias: ["Mod4+3"] | |
desc: Width 30% | |
cmd: niri msg action set-window-width 30% | |
- key: "4" | |
alias: ["Mod4+4"] | |
desc: Width 40% | |
cmd: niri msg action set-window-width 40% | |
- key: "5" | |
alias: ["Mod4+5"] | |
desc: Width 50% | |
cmd: niri msg action set-window-width 50% | |
- key: "6" | |
alias: ["Mod4+6"] | |
desc: Width 60% | |
cmd: niri msg action set-window-width 60% | |
- key: "7" | |
alias: ["Mod4+7"] | |
desc: Width 70% | |
cmd: niri msg action set-window-width 70% | |
- key: "8" | |
alias: ["Mod4+8"] | |
desc: Width 80% | |
cmd: niri msg action set-window-width 80% | |
- key: "9" | |
alias: ["Mod4+9"] | |
desc: Width 90% | |
cmd: niri msg action set-window-width 90% | |
- key: "0" | |
alias: ["Mod4+0"] | |
desc: Width 100% | |
cmd: niri msg action set-window-width 100% | |
- key: "Ctrl+3" | |
alias: ["Mod4+Ctrl+3"] | |
desc: Width 33% | |
cmd: niri msg action set-window-width 33% | |
- key: "Ctrl+4" | |
alias: ["Mod4+Ctrl+4"] | |
desc: Width 25% | |
cmd: niri msg action set-window-width 25% | |
- key: "Alt+3" | |
alias: ["Mod4+Alt+3"] | |
desc: Width 66% | |
cmd: niri msg action set-window-width 66% | |
- key: "Alt+4" | |
alias: ["Mod4+Alt+4"] | |
desc: Width 75% | |
cmd: niri msg action set-window-width 75% | |
- key: "h" | |
alias: ["Mod4+r", "r"] | |
desc: Resize Height | |
submenu: | |
- key: "1" | |
alias: ["Mod4+1"] | |
desc: Height 10% | |
cmd: niri msg action set-window-height 10% | |
- key: "2" | |
alias: ["Mod4+2"] | |
desc: Height 20% | |
cmd: niri msg action set-window-height 20% | |
- key: "3" | |
alias: ["Mod4+3"] | |
desc: Height 30% | |
cmd: niri msg action set-window-height 30% | |
- key: "4" | |
alias: ["Mod4+4"] | |
desc: Height 40% | |
cmd: niri msg action set-window-height 40% | |
- key: "5" | |
alias: ["Mod4+5"] | |
desc: Height 50% | |
cmd: niri msg action set-window-height 50% | |
- key: "6" | |
alias: ["Mod4+6"] | |
desc: Height 60% | |
cmd: niri msg action set-window-height 60% | |
- key: "7" | |
alias: ["Mod4+7"] | |
desc: Height 70% | |
cmd: niri msg action set-window-height 70% | |
- key: "8" | |
alias: ["Mod4+8"] | |
desc: Height 80% | |
cmd: niri msg action set-window-height 80% | |
- key: "9" | |
alias: ["Mod4+9"] | |
desc: Height 90% | |
cmd: niri msg action set-window-height 90% | |
- key: "0" | |
alias: ["Mod4+0"] | |
desc: Height 100% | |
cmd: niri msg action set-window-height 100% | |
- key: "Ctrl+3" | |
alias: ["Mod4+Ctrl+3"] | |
desc: Height 33% | |
cmd: niri msg action set-window-height 33% | |
- key: "Ctrl+4" | |
alias: ["Mod4+Ctrl+4"] | |
desc: Height 25% | |
cmd: niri msg action set-window-height 25% | |
- key: "Alt+3" | |
alias: ["Mod4+Alt+3"] | |
desc: Height 66% | |
cmd: niri msg action set-window-height 66% | |
- key: "Alt+4" | |
alias: ["Mod4+Alt+4"] | |
desc: Height 75% | |
cmd: niri msg action set-window-height 75% | |
- key: "w" | |
alias: ["r", "Mod4+r"] | |
desc: "Resize Width " | |
cmd: wlr-which-key -k r | |
- key: "s" | |
desc: Systemd | |
submenu: | |
- key: "Mod4+s" | |
desc: All Units | |
cmd: rofi-systemd all | |
hide: true | |
- key: "s" | |
desc: System Units | |
cmd: rofi-systemd system | |
- key: "a" | |
desc: All Units | |
cmd: rofi-systemd all | |
- key: "f" | |
desc: Failed Units | |
cmd: rofi-systemd -f all | |
- key: "u" | |
desc: User Units | |
cmd: rofi-systemd user | |
- key: "U" | |
desc: User Units (Failed) | |
cmd: rofi-systemd -f user | |
- key: "S" | |
desc: System Units (Failed) | |
cmd: rofi-systemd -f system | |
- key: "b" | |
desc: Brightness | |
submenu: | |
- key: "?" | |
alias: "q" | |
desc: "Query" | |
cmd: brightness -q | |
- key: "j" | |
desc: "-5" | |
cmd: brightness -5 | |
keep_open: true | |
- key: "k" | |
desc: "+5" | |
cmd: brightness +5 | |
keep_open: true | |
- key: "ctrl+j" | |
desc: "-1" | |
cmd: brightness -1 | |
keep_open: true | |
- key: "ctrl+k" | |
desc: "+1" | |
cmd: brightness +1 | |
keep_open: true | |
- key: "J" | |
desc: "-10" | |
cmd: brightness -10 | |
keep_open: true | |
- key: "K" | |
desc: "+10" | |
cmd: brightness +10 | |
keep_open: true | |
- key: "1" | |
desc: "10" | |
cmd: brightness 10 | |
- key: "2" | |
desc: "20" | |
cmd: brightness 20 | |
- key: "3" | |
desc: "30" | |
cmd: brightness 30 | |
- key: "4" | |
desc: "40" | |
cmd: brightness 40 | |
- key: "5" | |
desc: "50" | |
cmd: brightness 50 | |
- key: "6" | |
desc: "60" | |
cmd: brightness 60 | |
- key: "7" | |
desc: "70" | |
cmd: brightness 70 | |
- key: "8" | |
desc: "80" | |
cmd: brightness 80 | |
- key: "9" | |
desc: "90" | |
cmd: brightness 90 | |
- key: "0" | |
desc: "100" | |
cmd: brightness 100 | |
- key: "t" | |
desc: Transcribe | |
submenu: | |
- key: "z" | |
desc: "" | |
hide: true | |
submenu: | |
- key: "Return" | |
desc: End Transcription | |
cmd: whispertool --end | |
- key: "Escape" | |
desc: Cancel Transcription | |
cmd: whispertool --cancel | |
- key: "c" | |
alias: "Mod4+c" | |
desc: Transcribe (Copy) | |
cmd: | | |
zsh -c ' | |
wlr-which-key -k "t z" & | |
whispertool --exec "wl-copy" | |
' | |
- key: "t" | |
alias: "Mod4+t" | |
desc: Transcribe (Type) | |
cmd: | | |
zsh -c ' | |
wlr-which-key -k "t z" & | |
whispertool --exec "paste -sd \" \" | tr -d \"\\n\" | ydotool type -d5 -H5 --file=-" | |
' | |
- key: "z" | |
desc: Z | |
submenu: | |
- key: "d" | |
desc: Toggle Dark Mode | |
cmd: darkmode toggle | |
- key: "i" | |
desc: Copy window info | |
cmd: | | |
zsh -c ' | |
info="$(niri msg --json pick-window)" | |
if [[ "$info" == "null" ]]; then | |
exit | |
fi | |
id=$(jq -r .id <<< "$info") | |
title=$(jq -r .title <<< "$info") | |
app_id=$(jq -r .app_id <<< "$info") | |
pid=$(jq -r .pid <<< "$info") | |
workspace_id=$(jq -r .workspace_id <<< "$info") | |
is_focused=$(jq -r .is_focused <<< "$info") | |
is_floating=$(jq -r .is_floating <<< "$info") | |
is_urgent=$(jq -r .is_urgent <<< "$info") | |
shell="$([[ /proc/$pid/exe -ef $(command -v xwayland-satellite) ]] && echo xwayland || echo wayland)" | |
# msg="id: $id\ntitle: $title\napp_id: $app_id\npid: $pid\nworkspace_id: $workspace_id\nis_focused: $is_focused\nis_floating: $is_floating\nis_urgent: $is_urgent\nshell: $shell" | |
msg=( | |
"id: $id" | |
" title: $title" | |
" app_id: $app_id" | |
" pid: $pid" | |
" workspace_id: $workspace_id" | |
" is_focused: $is_focused" | |
" is_floating: $is_floating" | |
" is_urgent: $is_urgent" | |
" shell: $shell" | |
) | |
notify-send -t 0 "$app_id" "$(printf "%s\n" "${msg[@]}")" | |
wl-copy <<< "$msg" | |
' | |
- key: "r" | |
desc: "Resize" | |
cmd: wlr-which-key -k r | |
- key: "t" | |
desc: Toggle Tabbed | |
cmd: niri msg action toggle-column-tabbed-display | |
- key: "f" | |
desc: Toggle Floating | |
cmd: niri msg action toggle-window-floating | |
- key: "Q" | |
desc: Quit | |
cmd: niri msg action quit | |
- key: "?" | |
desc: Show Bindings | |
cmd: niri msg action show-hotkey-overlay | |
- key: "n" | |
desc: Notifications | |
submenu: | |
- key: "d" | |
alias: ["Mod4+n", "n"] | |
desc: Dismiss | |
cmd: makoctl dismiss | |
keep_open: true | |
- key: "D" | |
alias: "Mod4+N" | |
desc: Dismiss All | |
cmd: makoctl dismiss --all | |
- key: "r" | |
desc: Restore | |
cmd: makoctl restore | |
keep_open: true | |
- key: "a" | |
desc: Action | |
cmd: "makoctl menu -- rofi -dmenu -p 'Choose Action: '" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment