Compare commits

..

5 commits

Author SHA1 Message Date
GaspardCulis
454d91ca70
hypr: Now using anyrun instead of wofi 2024-04-04 20:08:07 +02:00
GaspardCulis
dbf88502ad
hypr: Now using hyprpm to load hy3 2024-04-04 20:07:51 +02:00
GaspardCulis
3e6968c168
sync + misc: Added anyrun config 2024-04-04 20:04:54 +02:00
GaspardCulis
1f61360b2d
hypr -> startup: Now uses wallpaperctl instead of hyprpaper 2024-04-03 15:28:41 +02:00
GaspardCulis
e2a1c5132c
sync + bin: Added wallpaperctl script 2024-04-03 15:27:56 +02:00
11 changed files with 139 additions and 4 deletions

21
bin/wallpaperctl Executable file
View file

@ -0,0 +1,21 @@
#!/bin/bash
if [[ $# -lt 1 ]] || [[ ! $1 = @(daemon|change) ]]; then
echo "Usage:
$0 daemon|change"
exit 1
fi
export SWWW_TRANSITION=wipe
export SWWW_TRANSITION_ANGLE=$RANDOM
export SWWW_TRANSITION_FPS=60
wallpapers_dir=~/Images/Wallpapers/enabled
if [[ "$1" = "daemon" ]]; then
exec swww-daemon
elif [[ "$1" = "change" ]]; then
img=$(find "$wallpapers_dir" -type f,l -exec realpath {} \; | shuf -n 1)
echo "$img"
exec swww img "$img"
fi

View file

@ -17,7 +17,7 @@ bind = $mainMod, N, exec, $explorer
bind = $mainMod, M, exec, prismlauncher
bind = $mainMod, O, exec, obsidian
bind = $mainMod, R, exec, wofi --show drun
bind = $mainMod, R, exec, anyrun
bind = $mainMod, L, exec, swaylock-hyprland
bind = $mainMod, U, exec, ~/.local/bin/uwu-launcher

View file

@ -1,5 +1,3 @@
plugin = /usr/lib/libhy3.so
plugin {
hy3 {
tabs {

View file

@ -2,7 +2,8 @@
exec-once = artix-pipewire-launcher restart
exec-once = mako
exec-once = hyprpaper
exec-once = hyprpm reload -n
exec-once = wallpaperctl daemon
exec-once = swayosd-server
exec-once = udiskie
exec-once = eww-bard

1
misc/anyrun/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
plugins/

View file

@ -0,0 +1,5 @@
Config(
desktop_actions: false,
max_entries: 5,
terminal: Some("alacritty"),
)

19
misc/anyrun/config.ron Normal file
View file

@ -0,0 +1,19 @@
Config(
x: Fraction(0.5),
y: Fraction(0.2),
width: Absolute(800),
height: Fraction(0),
hide_icons: false,
hide_plugin_info: true,
ignore_exclusive_zones: false,
layer: Top,
close_on_click: true,
show_results_immediately: false,
plugins: [
"libapplications.so",
"libsymbols.so",
"libwebsearch.so",
"librink.so",
"libshell.so",
]
)

73
misc/anyrun/style.css Normal file
View file

@ -0,0 +1,73 @@
#window {
background-color: transparent;
color: #a4acc5;
}
box#main {
border-radius: 10px;
background-color: #282936;
border: 4px solid #282936;
}
entry#entry {
min-height: 40px;
border-radius: 20px;
background: transparent;
box-shadow: none;
border: none;
color: whitesmoke;
}
list#main {
background-color: transparent;
}
#plugin {
background: transparent;
padding-bottom: 5px;
}
#match {
padding: 2.5px;
border-radius: 4px;
color: #a4acc5;
}
#match:selected {
background: #383946;
border-right: 4px solid #7e9cd8;
border-left: 4px solid #7e9cd8;
color: #7e9cd8;
}
#match:selected label#info {
color: #b0b0b0;
animation: fade 0.1s linear;
}
@keyframes fade {
0% {
color: transparent;
}
100% {
color: #b0b0b0;
}
}
#match label#info {
color: transparent;
}
#match:hover {
background: #383946;
}
label#match-desc {
font-size: 10px;
color: #b0b0b0;
}
label#plugin {
font-size: 14px;
}

8
misc/anyrun/symbols.ron Normal file
View file

@ -0,0 +1,8 @@
Config(
prefix: "",
symbols: {
"tableflip": "(╯°□°)╯︵ ┻━┻",
"shrug": "¯\\_(ツ)_/¯",
},
max_entries: 3,
)

View file

@ -0,0 +1,7 @@
Config(
prefix: "?",
engines: [DuckDuckGo, Google, Custom(
name: "SearX",
url: "searx.be/?q={}",
)]
)

2
sync
View file

@ -57,6 +57,7 @@ synced_files = [
("misc/runst/", "~/.config/runst/"),
("misc/mako/", "~/.config/mako/"),
("misc/swayosd/", "~/.config/swayosd/"),
("misc/anyrun/", "~/.config/anyrun/"),
("misc/x11-toggle-gpu/", "~/.local/share/x11-toggle-gpu/"),
("bin/swaylock-hyprland", "~/.local/bin/swaylock-hyprland"),
("bin/Hyprland", "~/.local/bin/Hyprland"),
@ -68,6 +69,7 @@ synced_files = [
("bin/x11-toggle-primary-gpu", "~/.local/bin/x11-toggle-primary-gpu"),
("bin/uwu-launcher", "~/.local/bin/uwu-launcher"),
("bin/eww-bard", "~/.local/bin/eww-bard"),
("bin/wallpaperctl", "~/.local/bin/wallpaperctl"),
# Submodules
("Ahurac-dotfiles/bin/ssh-fwd", "~/.local/bin/ssh-fwd"),
]