1
1
Fork 0

menu: switch to walker

Signed-off-by: Myned <dev@bjork.tech>
This commit is contained in:
Myned 2024-09-15 17:41:21 -05:00
parent c361f1f7ed
commit 880deccb75
Signed by: myned
GPG key ID: C7224454F7881A34
5 changed files with 71 additions and 27 deletions

View file

@ -26,6 +26,7 @@ with lib; let
pkill = "${pkgs.procps}/bin/pkill"; pkill = "${pkgs.procps}/bin/pkill";
playerctl = "${pkgs.playerctl}/bin/playerctl"; playerctl = "${pkgs.playerctl}/bin/playerctl";
rofi-rbw = "${pkgs.rofi-rbw}/bin/rofi-rbw"; rofi-rbw = "${pkgs.rofi-rbw}/bin/rofi-rbw";
rm = "${pkgs.coreutils}/bin/rm";
sleep = "${pkgs.coreutils}/bin/sleep"; sleep = "${pkgs.coreutils}/bin/sleep";
steam = "${config.programs.steam.package}/bin/steam"; steam = "${config.programs.steam.package}/bin/steam";
swayosd-client = "${pkgs.swayosd}/bin/swayosd-client"; swayosd-client = "${pkgs.swayosd}/bin/swayosd-client";
@ -228,8 +229,8 @@ in {
(key "T" "Super" "togglespecialworkspace" "terminal") (key "T" "Super" "togglespecialworkspace" "terminal")
(key "T" "Super+Shift" "movetoworkspacesilent" "terminal") (key "T" "Super+Shift" "movetoworkspacesilent" "terminal")
(key "T" "Super+Shift" "exec" kitty) (key "T" "Super+Shift" "exec" kitty)
(key "V" "Super" "exec" "${kitty} --app-id clipboard --override font_size=12 ${clipse}") (key "V" "Super" "exec" "${menu} --clipboard")
(key "V" "Super+Shift" "exec" "${clipse} -clear && ${notify-send} clipse 'Clipboard cleared' --urgency low") (key "V" "Super+Shift" "exec" "${rm} ~/.cache/walker/clipboard.gob; ${notify-send} walker 'Clipboard cleared' --urgency low")
(key "W" "Super" "togglespecialworkspace" "vm") (key "W" "Super" "togglespecialworkspace" "vm")
(key "W" "Super+Ctrl" "exec" "vm -x ${ (key "W" "Super+Ctrl" "exec" "vm -x ${
if config.custom.hidpi if config.custom.hidpi

View file

@ -64,10 +64,9 @@ in {
# https://wiki.hyprland.org/Configuring/Keywords/#executing # https://wiki.hyprland.org/Configuring/Keywords/#executing
exec-once = exec-once =
[ [
"${rm} ~/.config/qalculate/qalc.dmenu.history" # Clear calc history "${rm} ~/.cache/walker/clipboard.gob" # Clear clipboard
"${clipse} -clear" # Clear clipboard history
"${clipse} -listen" # Monitor clipboard
sway-audio-idle-inhibit # Inhibit idle while audio is playing sway-audio-idle-inhibit # Inhibit idle while audio is playing
left # Left-handed at boot
# TODO: Remove when systemd service fixed # TODO: Remove when systemd service fixed
# https://github.com/Alexays/Waybar/issues/2882 # https://github.com/Alexays/Waybar/issues/2882

View file

@ -24,16 +24,50 @@ in {
#?? systemctl --user restart walker.service #?? systemctl --user restart walker.service
runAsService = true; runAsService = true;
# https://github.com/abenz1267/walker/wiki/Basic-Configuration
# https://github.com/abenz1267/walker/blob/master/internal/config/config.default.json # https://github.com/abenz1267/walker/blob/master/internal/config/config.default.json
config = { config = {
activation_mode.labels = ""; # Chord indicators activation_mode.disabled = true; # Key chords
ignore_mouse = true; # Hover interrupts keyboard selections
search.placeholder = ""; search.placeholder = "";
# https://github.com/abenz1267/walker/wiki/Modules
# https://www.nerdfonts.com/cheat-sheet
builtins = { builtins = {
calculator.switcher_only = false;
clipboard.switcher_only = true;
commands.switcher_only = true;
custom_commands.switcher_only = true;
runner.switcher_only = true;
ssh.switcher_only = true;
windows.switcher_only = true;
applications = { applications = {
actions = false; # Desktop file actions # BUG: Ghost entries are still visible
prioritize_new = false; #// actions = false; # Desktop file actions
show_sub_when_single = false; # Subtext with one module
switcher_only = false;
weight = 10;
};
dmenu = {
placeholder = "Input";
switcher_only = true;
};
emojis = {
placeholder = "Unicode";
switcher_only = false;
};
finder = {
placeholder = "Files";
switcher_only = true;
};
websearch = {
placeholder = "Search";
switcher_only = true;
}; };
}; };
}; };
@ -42,21 +76,24 @@ in {
theme = { theme = {
style = builtins.readFile ./style.css; style = builtins.readFile ./style.css;
# https://github.com/abenz1267/walker/blob/master/internal/config/themes/bare.json # https://github.com/abenz1267/walker/blob/master/internal/config/layout.default.json
layout.ui.window.box = rec { layout.ui.window.box = rec {
height = 500 / config.custom.scale; height = 250 / config.custom.scale;
width = 1000 / config.custom.scale; width = 1000 / config.custom.scale;
scroll.list = { scroll.list = {
min_height = height;
max_height = height; max_height = height;
max_width = width; max_width = width;
min_width = width; min_width = width;
# Icon resolution # Icon resolution
item.icon = { item = {
icon_size = "largest"; # 128px text.sub.hide = true; # Subtext
pixel_size = 32;
icon = {
icon_size = "largest"; # 128px
pixel_size = 32; # Downscale
};
}; };
}; };
}; };

View file

@ -21,6 +21,7 @@ https://docs.gtk.org/gtk4/css-properties.html
/* Input box */ /* Input box */
#search entry { #search entry {
border-radius: 25px; border-radius: 25px;
margin-bottom: 4px;
padding: 4px; padding: 4px;
} }
@ -37,7 +38,7 @@ https://docs.gtk.org/gtk4/css-properties.html
/* List entry */ /* List entry */
#list child { #list child {
border-radius: 25px; border-radius: 25px;
margin: 4px 0; margin: 2px 8px;
padding: 8px; padding: 8px;
} }

View file

@ -7,35 +7,41 @@ command=walker
while (("$#" > 0)); do while (("$#" > 0)); do
case "$1" in case "$1" in
-a | --applications) --applications)
command="walker --modules applications" command="walker --modules applications"
;; ;;
-c | --calculator) --calculator)
command="walker --modules calc" command="walker --modules calc"
;; ;;
-f | --files) --clipboard)
command="walker --modules clipboard"
;;
--files)
command="walker --modules finder" command="walker --modules finder"
;; ;;
-i | --input) --input)
command="walker --dmenu" command="walker --dmenu"
;; ;;
-n | --networks) --networks)
command="networkmanager_dmenu" command="networkmanager_dmenu"
;; ;;
-p | --passwords) --passwords)
command="rofi-rbw" command="rofi-rbw"
;; ;;
-r | --runner) --runner)
command="walker --modules runner" command="walker --modules runner"
;; ;;
-s | --ssh) --search)
command="walker --modules websearch"
;;
--ssh)
command="walker --modules ssh" command="walker --modules ssh"
;; ;;
-u | --unicode) --unicode)
command="walker --modules emojis" command="walker --modules emojis"
;; ;;
-w | --web) --windows)
command="walker --modules websearch" command="walker --modules windows"
;; ;;
--) --)
shift shift