diff --git a/config/hypr/hyprland.conf b/config/hypr/hyprland.conf index c7acf01..b8f47ad 100644 --- a/config/hypr/hyprland.conf +++ b/config/hypr/hyprland.conf @@ -72,7 +72,7 @@ bindul = , XF86AudioMute, exec, hypr volume toggle bindul = , XF86MonBrightnessUp, exec, hypr brightness up bindul = , XF86MonBrightnessDown, exec, hypr brightness down -bind = ALT, SPACE, exec, rofi -show run +bind = ALT, SPACE, exec, sherlock bind = ALT, TAB, workspace, previous bind = ALT, A, cyclenext bind = ALT, B, exec, pkill -USR1 waybar || waybar diff --git a/config/sherlock/themes/daylight.css b/config/sherlock/themes/daylight.css new file mode 100644 index 0000000..5df0c1f --- /dev/null +++ b/config/sherlock/themes/daylight.css @@ -0,0 +1,43 @@ +:root { + --background: #f5f5f5; + --foreground: #ebebeb; + --text: #1a1a1a; + --border: #e8e8e8; + --tag-background: rgba(153, 153, 153, 0.2); + --tag-color: #3b5bdb; + --error: #c7254e; + --warning: #996800; + --success: #2d7f3e; +} + +* { + font-family: "SF Pro Display", sans-serif; +} + +window:not(#backdrop) { + border-radius: 0; +} + +.tile { + border-radius: 0; +} + +.tag { + border-radius: 0; +} + +#shortcut-holder { + border-radius: 0; +} + +#context-menu { + border-radius: 0; +} + +image.reactive { + -gtk-icon-filter: brightness(0); +} + +#search-icon-holder image { + -gtk-icon-filter: brightness(0); +} diff --git a/config/sherlock/themes/midnight.css b/config/sherlock/themes/midnight.css new file mode 100644 index 0000000..bef67d5 --- /dev/null +++ b/config/sherlock/themes/midnight.css @@ -0,0 +1,35 @@ +:root { + --background: #121212; + --foreground: #2d2d2d; + --text: #e0e0e0; + --border: #3d3d3d; + --tag-background: rgba(102, 102, 102, 0.3); + --tag-color: #7aa2f7; + --error: #ff6b6b; + --warning: #e5c07b; + --success: #98c379; +} + +* { + font-family: "SF Pro Display", sans-serif; +} + +window:not(#backdrop) { + border-radius: 0; +} + +.tile { + border-radius: 0; +} + +.tag { + border-radius: 0; +} + +#shortcut-holder { + border-radius: 0; +} + +#context-menu { + border-radius: 0; +} diff --git a/home/modules/theme.nix b/home/modules/theme.nix index 4785dbb..9127cd1 100644 --- a/home/modules/theme.nix +++ b/home/modules/theme.nix @@ -109,6 +109,7 @@ in $DRY_RUN_CMD ln -sf "$cfg/hypr/themes/$theme.conf" "$cfg/hypr/themes/theme.conf" $DRY_RUN_CMD ln -sf "$cfg/waybar/themes/$theme.css" "$cfg/waybar/themes/theme.css" $DRY_RUN_CMD ln -sf "$cfg/rofi/themes/$theme.rasi" "$cfg/rofi/themes/theme.rasi" + $DRY_RUN_CMD ln -sf "$cfg/sherlock/themes/$theme.css" "$cfg/sherlock/main.css" ''} $DRY_RUN_CMD ln -sf "$cfg/sioyek/themes/$theme.config" "$cfg/sioyek/themes/theme.config" $DRY_RUN_CMD ln -sf "$cfg/fzf/themes/$theme" "$cfg/fzf/themes/theme" diff --git a/home/modules/ui.nix b/home/modules/ui.nix index 5bbae04..562b7c1 100644 --- a/home/modules/ui.nix +++ b/home/modules/ui.nix @@ -206,6 +206,28 @@ in ''; }; + programs.sherlock = { + enable = true; + systemd.enable = true; + settings = { + appearance = { + width = 600; + height = 400; + opacity = 1.0; + }; + behavior.animate = false; + }; + launchers = [ + { name = "App Launcher"; type = "app_launcher"; priority = 1; args = {}; } + { name = "Calculator"; type = "calculation"; priority = 2; args = {}; } + ]; + }; + + xdg.configFile."sherlock/themes/midnight.css".source = + config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/.config/nix/config/sherlock/themes/midnight.css"; + xdg.configFile."sherlock/themes/daylight.css".source = + config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/.config/nix/config/sherlock/themes/daylight.css"; + xdg.configFile."rofi/config.rasi".source = config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/.config/nix/config/rofi/config.rasi"; xdg.configFile."rofi/themes/midnight.rasi".source = diff --git a/scripts/theme b/scripts/theme index b6d418c..215a371 100755 --- a/scripts/theme +++ b/scripts/theme @@ -85,6 +85,11 @@ Linux) ln -sf "$hypr_themes/$theme.conf" "$hypr_themes/theme.conf" } + sherlock_themes="$cfg/sherlock/themes" + [ -f "$sherlock_themes/$theme.css" ] && { + ln -sf "$sherlock_themes/$theme.css" "$cfg/sherlock/main.css" + } + sioyek_themes="$cfg/sioyek/themes" [ -f "$sioyek_themes/$theme.config" ] && { ln -sf "$sioyek_themes/$theme.config" "$sioyek_themes/theme.config"