Change swaync menu

This commit is contained in:
Pedro Rey Anca 2024-07-29 14:09:55 +02:00
parent 7418484820
commit 3fc6414afa
2 changed files with 12 additions and 20 deletions

View file

@ -58,39 +58,31 @@
} }
] ]
}, },
"menu#screenshot": { "menu#screenshotnrecord": {
"label": "  ", "label": "  ",
"position": "left", "position": "left",
"actions": [ "actions": [
{ {
"label": "󰹑 Whole screen", "label": "󰹑 Screenshot",
"command": "grimblast --notify --cursor --freeze copy output" "command": "bash -c 'swaync-client -t; screenshot-menu'"
}, },
{ {
"label": "󰩭 Window / Region", "label": "󰕧 Record screen",
"command": "grimblast --notify --cursor --freeze copy area" "command": "bash -c 'swaync-client -t; kooha'"
} }
] ]
}, },
"menu#record": { "menu#wallpaper": {
"label": " 󰕧 ", "label": " ",
"position": "left", "position": "left",
"actions": [ "actions": [
{ {
"label": " Record screen", "label": "Set Bing POtD as Wallpaper",
"command": "record screen & ; swaync-client -t" "command": "setbg-bpotd"
}, },
{ {
"label": " Record selection", "label": "Set NASA APOtD as Wallpaper",
"command": "record area & ; swaync-client -t" "command": "setbg-apotd"
},
{
"label": " Record GIF",
"command": "record gif & ; swaync-client -t"
},
{
"label": "󰻃 Stop",
"command": "record stop"
} }
] ]
}, },

View file

@ -1,5 +1,5 @@
{pkgs, ...}: { {pkgs, ...}: {
home.packages = with pkgs; [swaynotificationcenter]; home.packages = with pkgs; [swaynotificationcenter kooha];
xdg.configFile."swaync/style.css".source = ./style.css; xdg.configFile."swaync/style.css".source = ./style.css;
xdg.configFile."swaync/config.json".source = ./config.json; xdg.configFile."swaync/config.json".source = ./config.json;
} }