From 1945ab7f44a1dd8a4abc093ffa6602211b1709ed Mon Sep 17 00:00:00 2001 From: winston Date: Fri, 10 Mar 2023 07:22:01 +0100 Subject: [PATCH] feat(hyprland): utilities, styling, give transparency another shot --- flake.lock | 12 ++++---- home/apps/neovim/after/plugin/catppuccin.lua | 2 +- home/apps/wayland.nix | 29 ++++++++++++++------ home/apps/wezterm/wezterm.lua | 1 + 4 files changed, 29 insertions(+), 15 deletions(-) diff --git a/flake.lock b/flake.lock index c4665a5..a8dddd4 100644 --- a/flake.lock +++ b/flake.lock @@ -157,11 +157,11 @@ ] }, "locked": { - "lastModified": 1678189354, - "narHash": "sha256-77jG66Q4rSlvVo7cVmRxuBdmNf+Rc08h5NUSZHw6at4=", + "lastModified": 1678425042, + "narHash": "sha256-LJuZENlNAdFo6raH1WEtzOCXBIjdtH1YfD4Fl5ZfE90=", "owner": "nekowinston", "repo": "nur", - "rev": "9ac0a6b5c9035293b9486173e0638d35fde04b0b", + "rev": "8badd52f9e4f5573096f8350b7356fe7a9a9e285", "type": "github" }, "original": { @@ -284,11 +284,11 @@ }, "nur": { "locked": { - "lastModified": 1678381003, - "narHash": "sha256-Ujd6MAWDGVmmchEZstza74ttcH/hliTztSWb7TFROiQ=", + "lastModified": 1678414741, + "narHash": "sha256-Q6NPrcIp8IM29scARnwMg4mpN3/o9/6lLuLrjxvxTwU=", "owner": "nix-community", "repo": "NUR", - "rev": "ca454bfe203ce42dbeac2ecae7035372df82258b", + "rev": "39f460d03b2faf38131cf8ff5ab19fe5848fc23c", "type": "github" }, "original": { diff --git a/home/apps/neovim/after/plugin/catppuccin.lua b/home/apps/neovim/after/plugin/catppuccin.lua index 5de1da1..cee9953 100644 --- a/home/apps/neovim/after/plugin/catppuccin.lua +++ b/home/apps/neovim/after/plugin/catppuccin.lua @@ -5,7 +5,7 @@ if not present then end catppuccin.setup({ - transparent_background = false, + transparent_background = true, dim_inactive = { enable = true, shade = "dark", diff --git a/home/apps/wayland.nix b/home/apps/wayland.nix index 7c57632..a6a9c57 100644 --- a/home/apps/wayland.nix +++ b/home/apps/wayland.nix @@ -25,6 +25,14 @@ in { package = pkgs.waybar-hyprland; }; + home.packages = with pkgs; [ + cliphist + grim + slurp + wl-clipboard + nur.repos.nekowinston.swww + ]; + xdg = lib.mkIf isLinux { configFile."waybar" = { source = config.lib.file.mkOutOfStoreSymlink "${flakePath}/home/apps/waybar"; @@ -40,21 +48,20 @@ in { input:follow_mouse = 1 general { - gaps_in = 5 + gaps_in = 2 gaps_out = 5 border_size = 2 - no_cursor_warps = true col.active_border = 0xfff5c2e7 col.inactive_border = 0x80cba6f7 } decoration { rounding = 5 - blur = 0 + blur = true } animations { - enabled = 1 + enabled = true animation = workspaces,1,1,default,slide } @@ -69,14 +76,14 @@ in { bind = SUPER_SHIFT,d,togglefloating, bind = SUPER,space,exec,rofi -show drun - bind = SUPER_CTRL,l,movefocus,l - bind = SUPER_CTRL,h,movefocus,r - bind = SUPER_CTRL,k,movefocus,u + bind = SUPER_CTRL,h,movefocus,l bind = SUPER_CTRL,j,movefocus,d + bind = SUPER_CTRL,k,movefocus,u + bind = SUPER_CTRL,l,movefocus,r bind = SUPER_SHIFT,h,movewindow,l - bind = SUPER_SHIFT,l,movewindow,r bind = SUPER_SHIFT,j,movewindow,u bind = SUPER_SHIFT,k,movewindow,d + bind = SUPER_SHIFT,l,movewindow,r bind = SUPER_CTRL,1,workspace,1 bind = SUPER_CTRL,2,workspace,2 @@ -117,6 +124,12 @@ in { # toolkit-specific scale env = GDK_SCALE,2 env = XCURSOR_SIZE,32 + + # cliphist + exec-once = wl-paste --type text --watch cliphist store + exec-once = wl-paste --type image --watch cliphist store + exec-once = swww-daemon + bind = SUPER, V, exec, cliphist list | rofi -dmenu | cliphist decode | wl-copy ''; }; } diff --git a/home/apps/wezterm/wezterm.lua b/home/apps/wezterm/wezterm.lua index 459e46a..67b74f3 100644 --- a/home/apps/wezterm/wezterm.lua +++ b/home/apps/wezterm/wezterm.lua @@ -36,6 +36,7 @@ c.launch_menu = { { label = "Music player", args = { "ncmpcpp" } }, } c.command_palette_font_size = 16.0 +c.window_background_opacity = 0.9 c.window_frame = { font_size = 18.0, }