Modules/Niri: Add ssh/project/colorpicker/screenshot actions to global menu
This commit is contained in:
@@ -815,18 +815,38 @@ in {
|
|||||||
command = "xdg-open ~/Notes/TU/$OPTION0/$OPTION1/$OPTION2";
|
command = "xdg-open ~/Notes/TU/$OPTION0/$OPTION1/$OPTION2";
|
||||||
rofiCmd = "walker -d";
|
rofiCmd = "walker -d";
|
||||||
};
|
};
|
||||||
# niriMenu = mylib.rofi.mkMenu {
|
screenshotMenu = mylib.rofi.mkMenu {
|
||||||
# prompt = "Niri";
|
prompt = "Screenshot";
|
||||||
# layers = [
|
layers = [
|
||||||
# {
|
{
|
||||||
# " Take Region Screenshot" = "niri msg action screenshot -p false";
|
# -p: Show pointer
|
||||||
# " Take Window Screenshot" = "niri msg action screenshot-window -p false -d true";
|
# -d: Write to disk
|
||||||
# " Take Full-Screen Screenshot" = "niri msg action screenshot-screen -p false -d true";
|
" Take Region Screenshot" = "niri msg action screenshot -p false";
|
||||||
# }
|
" Take Window Screenshot" = "niri msg action screenshot-window -p false -d true";
|
||||||
# ];
|
" Take Full-Screen Screenshot" = "niri msg action screenshot-screen -p false -d true";
|
||||||
# prompts = ["Execute Niri Action"];
|
}
|
||||||
# rofiCmd = "walker -d";
|
];
|
||||||
# };
|
prompts = ["Execute Screenshot Action"];
|
||||||
|
rofiCmd = "walker -d";
|
||||||
|
};
|
||||||
|
sshMenu = mylib.rofi.mkMenu {
|
||||||
|
prompt = "SSH";
|
||||||
|
layers = [
|
||||||
|
"grep -E '^Host ' ~/.ssh/config | awk '{print $2}'"
|
||||||
|
];
|
||||||
|
prompts = ["Select Host"];
|
||||||
|
command = "kitty ssh $OPTION0";
|
||||||
|
rofiCmd = "walker -d";
|
||||||
|
};
|
||||||
|
projectMenu = mylib.rofi.mkMenu {
|
||||||
|
prompt = "Project";
|
||||||
|
layers = [
|
||||||
|
"eza -1 -D ~/Projects"
|
||||||
|
];
|
||||||
|
prompts = ["Select Project"];
|
||||||
|
command = "neovide ~/Projects/$OPTION0";
|
||||||
|
rofiCmd = "walker -d";
|
||||||
|
};
|
||||||
globalMenu = mylib.rofi.mkMenu {
|
globalMenu = mylib.rofi.mkMenu {
|
||||||
prompt = "Global";
|
prompt = "Global";
|
||||||
layers = [
|
layers = [
|
||||||
@@ -835,8 +855,11 @@ in {
|
|||||||
" Change Wallpaper" = "${wallpaperMenu}/bin/rofi-menu-Wallpaper";
|
" Change Wallpaper" = "${wallpaperMenu}/bin/rofi-menu-Wallpaper";
|
||||||
" View Keybindings" = "niri msg action show-hotkey-overlay";
|
" View Keybindings" = "niri msg action show-hotkey-overlay";
|
||||||
" Open Lecture Material" = "${lecturesMenu}/bin/rofi-menu-Lecture";
|
" Open Lecture Material" = "${lecturesMenu}/bin/rofi-menu-Lecture";
|
||||||
# " Niri Actions" = "${niriMenu}/bin/rofi-menu-Niri";
|
" Screenshot" = "${screenshotMenu}/bin/rofi-menu-Screenshot";
|
||||||
# TODO: What else? SSH menu?
|
# "🤪 Pick Symbols" = "walker -m symbols";
|
||||||
|
" Color Picker" = "hyprpicker --autocopy";
|
||||||
|
" SSH" = "${sshMenu}/bin/rofi-menu-SSH";
|
||||||
|
" Open Project" = "${projectMenu}/bin/rofi-menu-Project";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
prompts = ["Select Action"];
|
prompts = ["Select Action"];
|
||||||
@@ -945,31 +968,37 @@ in {
|
|||||||
|
|
||||||
# Screenshots
|
# Screenshots
|
||||||
"Mod+S" = {
|
"Mod+S" = {
|
||||||
action.screenshot-window = {
|
action = spawn "${screenshotMenu}/bin/rofi-menu-Screenshot";
|
||||||
write-to-disk = true;
|
|
||||||
show-pointer = false;
|
|
||||||
};
|
|
||||||
hotkey-overlay = {
|
hotkey-overlay = {
|
||||||
title = "Take a screenshot of the current window.";
|
title = "Screenshot menu.";
|
||||||
};
|
|
||||||
};
|
|
||||||
"Mod+Ctrl+S" = {
|
|
||||||
action.screenshot-screen = {
|
|
||||||
write-to-disk = true;
|
|
||||||
show-pointer = false;
|
|
||||||
};
|
|
||||||
hotkey-overlay = {
|
|
||||||
title = "Take a screenshot of the current screen.";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
"Mod+Shift+S" = {
|
|
||||||
action.screenshot = {
|
|
||||||
show-pointer = false;
|
|
||||||
};
|
|
||||||
hotkey-overlay = {
|
|
||||||
title = "Take a screenshot of a region.";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
# "Mod+S" = {
|
||||||
|
# action.screenshot-window = {
|
||||||
|
# write-to-disk = true;
|
||||||
|
# show-pointer = false;
|
||||||
|
# };
|
||||||
|
# hotkey-overlay = {
|
||||||
|
# title = "Take a screenshot of the current window.";
|
||||||
|
# };
|
||||||
|
# };
|
||||||
|
# "Mod+Ctrl+S" = {
|
||||||
|
# action.screenshot-screen = {
|
||||||
|
# write-to-disk = true;
|
||||||
|
# show-pointer = false;
|
||||||
|
# };
|
||||||
|
# hotkey-overlay = {
|
||||||
|
# title = "Take a screenshot of the current screen.";
|
||||||
|
# };
|
||||||
|
# };
|
||||||
|
# "Mod+Shift+S" = {
|
||||||
|
# action.screenshot = {
|
||||||
|
# show-pointer = false;
|
||||||
|
# };
|
||||||
|
# hotkey-overlay = {
|
||||||
|
# title = "Take a screenshot of a region.";
|
||||||
|
# };
|
||||||
|
# };
|
||||||
|
|
||||||
# Niri
|
# Niri
|
||||||
"Mod+Shift+Slash" = {
|
"Mod+Shift+Slash" = {
|
||||||
|
|||||||
@@ -184,7 +184,8 @@ in {
|
|||||||
resources
|
resources
|
||||||
# celluloid
|
# celluloid
|
||||||
# cine
|
# cine
|
||||||
eyedropper
|
# eyedropper
|
||||||
|
hyprpicker
|
||||||
junction
|
junction
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user