Replace application launcher with anyrun

This commit is contained in:
Michel Fedde 2025-04-05 12:39:33 +02:00
parent 694538092c
commit 0c0a9d66b3
8 changed files with 97 additions and 3 deletions

47
.config/anyrun/config.ron Normal file
View file

@ -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
// `<anyrun config dir>/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",
],
)

View file

@ -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;
}

View file

@ -103,7 +103,8 @@ bind = $mainMod, F, fullscreen, 1
bind = $mainMod, Space, fullscreen, 0 bind = $mainMod, Space, fullscreen, 0
# rofi App launcher # 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 = ALT, Tab, exec, hyprswitch gui --mod-key alt --key tab
bind = $mainMod, Return, exec, $term bind = $mainMod, Return, exec, $term

View file

@ -13,4 +13,6 @@ workspace = 2, name:Terminal, monitor:$primary, default:true
workspace = 3, name:Discord,monitor:$secondary, default:true workspace = 3, name:Discord,monitor:$secondary, default:true
workspace = 4, name:Gaming, monitor:$primary, default:true workspace = 4, name:Gaming, monitor:$primary, default:true
workspace = 5, name:Music workspace = 5, name:Music
workspace = 6, name:Programming, monitor:$primary, default:true

View file

@ -3,4 +3,5 @@
sass \ sass \
$HOME/.config/swaync/style/style.scss:$HOME/.config/swaync/style.css \ $HOME/.config/swaync/style/style.scss:$HOME/.config/swaync/style.css \
$HOME/.config/waybar/scss/style.scss:$HOME/.config/waybar/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

View file

@ -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: 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-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;

3
.gitignore vendored
View file

@ -25,6 +25,9 @@
/.config/nwg-drawer/drawer.css /.config/nwg-drawer/drawer.css
/.config/nwg-drawer/drawer.css.map /.config/nwg-drawer/drawer.css.map
!/.config/theming/ !/.config/theming/
!/.config/anyrun
/.config/anyrun/style.css
/.config/anyrun/style.css.map
!/.ssh/ !/.ssh/
/.ssh/* /.ssh/*

View file

@ -1,3 +1,3 @@
#!/bin/env sh #!/bin/env sh
hyprctl hyprsunset temperature 4600 hyprctl hyprsunset temperature 5000