From 0c0a9d66b3aa40f63f773a951a88a70b911ba995 Mon Sep 17 00:00:00 2001 From: Michel Fedde Date: Sat, 5 Apr 2025 12:39:33 +0200 Subject: [PATCH] Replace application launcher with anyrun --- .config/anyrun/config.ron | 47 +++++++++++++++++++ .config/anyrun/style/entry.scss | 39 +++++++++++++++ .config/hypr/config/Keybinds.conf | 3 +- .../WorkspaceRules.conf##class.PC,default | 2 + .config/theming/compile.sh | 3 +- .config/theming/library/_variables.scss | 1 + .gitignore | 3 ++ .local/share/dark-mode.d/bluelight.sh | 2 +- 8 files changed, 97 insertions(+), 3 deletions(-) create mode 100644 .config/anyrun/config.ron create mode 100644 .config/anyrun/style/entry.scss diff --git a/.config/anyrun/config.ron b/.config/anyrun/config.ron new file mode 100644 index 0000000..9c956bd --- /dev/null +++ b/.config/anyrun/config.ron @@ -0,0 +1,47 @@ +Config( + // Position/size fields use an enum for the value, it can be either: + // Absolute(n): The absolute value in pixels + // Fraction(n): A fraction of the width or height of the full screen (depends on exclusive zones and the settings related to them) window respectively + + // The horizontal position, adjusted so that Relative(0.5) always centers the runner + x: Fraction(0.5), + + // The vertical position, works the same as `x` + y: Absolute(30), + + // The width of the runner + width: Absolute(800), + + // The minimum height of the runner, the runner will expand to fit all the entries + height: Absolute(0), + + // Hide match and plugin info icons + hide_icons: false, + + // ignore exclusive zones, f.e. Waybar + ignore_exclusive_zones: true, + + // Layer shell layer: Background, Bottom, Top, Overlay + layer: Overlay, + + // Hide the plugin info panel + hide_plugin_info: false, + + // Close window when a click outside the main box is received + close_on_click: false, + + // Show search results immediately when Anyrun starts + show_results_immediately: false, + + // Limit amount of entries shown in total + max_entries: None, + + // List of plugins to be loaded by default, can be specified with a relative path to be loaded from the + // `/plugins` directory or with an absolute path to just load the file the path points to. + plugins: [ + "libapplications.so", + "libsymbols.so", + "libshell.so", + "libtranslate.so", + ], +) diff --git a/.config/anyrun/style/entry.scss b/.config/anyrun/style/entry.scss new file mode 100644 index 0000000..47280f3 --- /dev/null +++ b/.config/anyrun/style/entry.scss @@ -0,0 +1,39 @@ +@import "../../theming/library/entry.scss"; + +* { + color: $foreground; + + border-radius: $border-radius; +} + +#window { + + background-color: rgba(0, 0, 0, 0); +} + +box#main { + background-color: $background; + box-shadow: $box-shadow; + border: none; +} + + +list { +} + +list#main { + background-color: rgba(0, 0, 0, 0); + padding: 0.5rem; +} + +list#plugin { + background-color: rgba(0, 0, 0, 0); +} + +label#match-desc { + font-size: 10px; +} + +label#plugin { + font-size: 14px; +} diff --git a/.config/hypr/config/Keybinds.conf b/.config/hypr/config/Keybinds.conf index b5a95c1..33be90b 100644 --- a/.config/hypr/config/Keybinds.conf +++ b/.config/hypr/config/Keybinds.conf @@ -103,7 +103,8 @@ bind = $mainMod, F, fullscreen, 1 bind = $mainMod, Space, fullscreen, 0 # rofi App launcher -bind = $mainMod, Tab, exec, nwg-drawer -pbexit "wayland-logout" -pbpoweroff "systemctl poweroff" -pbreboot "systemctl reboot" +#bind = $mainMod, Tab, exec, nwg-drawer -pbexit "wayland-logout" -pbpoweroff "systemctl poweroff" -pbreboot "systemctl reboot" +bind = $mainMod, Tab, exec, anyrun bind = ALT, Tab, exec, hyprswitch gui --mod-key alt --key tab bind = $mainMod, Return, exec, $term diff --git a/.config/hypr/config/WorkspaceRules.conf##class.PC,default b/.config/hypr/config/WorkspaceRules.conf##class.PC,default index a660d51..9bc76ce 100644 --- a/.config/hypr/config/WorkspaceRules.conf##class.PC,default +++ b/.config/hypr/config/WorkspaceRules.conf##class.PC,default @@ -13,4 +13,6 @@ workspace = 2, name:Terminal, monitor:$primary, default:true workspace = 3, name:Discord,monitor:$secondary, default:true workspace = 4, name:Gaming, monitor:$primary, default:true workspace = 5, name:Music +workspace = 6, name:Programming, monitor:$primary, default:true + diff --git a/.config/theming/compile.sh b/.config/theming/compile.sh index 4020474..7568412 100755 --- a/.config/theming/compile.sh +++ b/.config/theming/compile.sh @@ -3,4 +3,5 @@ sass \ $HOME/.config/swaync/style/style.scss:$HOME/.config/swaync/style.css \ $HOME/.config/waybar/scss/style.scss:$HOME/.config/waybar/style.css \ - $HOME/.config/nwg-drawer/style/style.scss:$HOME/.config/nwg-drawer/drawer.css + $HOME/.config/nwg-drawer/style/style.scss:$HOME/.config/nwg-drawer/drawer.css \ + $HOME/.config/anyrun/style/entry.scss:$HOME/.config/anyrun/style.css diff --git a/.config/theming/library/_variables.scss b/.config/theming/library/_variables.scss index 40fb211..013e58e 100644 --- a/.config/theming/library/_variables.scss +++ b/.config/theming/library/_variables.scss @@ -2,3 +2,4 @@ $border-radius: 0.3rem; $box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px, rgba(10, 37, 64, 0.35) 0px -2px 6px 0px inset; $box-shadow-inner: rgba(0, 0, 0, 0.17) 0px -23px 25px 0px inset, rgba(0, 0, 0, 0.15) 0px -36px 30px 0px inset, rgba(0, 0, 0, 0.1) 0px -79px 40px 0px inset, rgba(0, 0, 0, 0.06) 0px 2px 1px, rgba(0, 0, 0, 0.09) 0px 4px 2px, rgba(0, 0, 0, 0.09) 0px 8px 4px, rgba(0, 0, 0, 0.09) 0px 16px 8px, rgba(0, 0, 0, 0.09) 0px 32px 16px; +$box-shadow-outer: rgba(0, 0, 0, 0.35) 0px 5px 15px; diff --git a/.gitignore b/.gitignore index beff29a..8066f06 100644 --- a/.gitignore +++ b/.gitignore @@ -25,6 +25,9 @@ /.config/nwg-drawer/drawer.css /.config/nwg-drawer/drawer.css.map !/.config/theming/ +!/.config/anyrun +/.config/anyrun/style.css +/.config/anyrun/style.css.map !/.ssh/ /.ssh/* diff --git a/.local/share/dark-mode.d/bluelight.sh b/.local/share/dark-mode.d/bluelight.sh index c517d04..10bda23 100755 --- a/.local/share/dark-mode.d/bluelight.sh +++ b/.local/share/dark-mode.d/bluelight.sh @@ -1,3 +1,3 @@ #!/bin/env sh -hyprctl hyprsunset temperature 4600 +hyprctl hyprsunset temperature 5000