From 3bff77b17eef05ab7fd917eaf920dbb88cbf4652 Mon Sep 17 00:00:00 2001 From: Alex Stan <90788596+Ultra980@users.noreply.github.com> Date: Mon, 5 Jun 2023 18:31:41 +0300 Subject: [PATCH] more hyprland stuff + eww (basically ricing) Signed-off-by: Alex Stan --- hosts/ultrapc/configuration.nix | 8 +-- users/ultra/configs/eww/eww.scss | 30 ++++++++++++ users/ultra/configs/eww/eww.yuck | 51 ++++++++++++++++++++ users/ultra/configs/hyprland/hyprland.conf | 14 ++++-- users/ultra/configs/hyprpaper/hyprpaper.conf | 7 +++ users/ultra/configs/tofi/config | 26 ++++++++++ 6 files changed, 129 insertions(+), 7 deletions(-) create mode 100644 users/ultra/configs/eww/eww.scss create mode 100644 users/ultra/configs/eww/eww.yuck create mode 100644 users/ultra/configs/hyprpaper/hyprpaper.conf create mode 100644 users/ultra/configs/tofi/config diff --git a/hosts/ultrapc/configuration.nix b/hosts/ultrapc/configuration.nix index dec0d5a..4af9fc9 100644 --- a/hosts/ultrapc/configuration.nix +++ b/hosts/ultrapc/configuration.nix @@ -12,7 +12,6 @@ in { ./hardware-configuration.nix ./cachix.nix ]; - nix.settings = { trusted-users = [ "root" "ultra" ]; experimental-features = [ "nix-command" "flakes" ]; @@ -112,6 +111,9 @@ in { # List packages installed in system profile. To search, run: # $ nix search wget environment = { + sessionVariables = { + QT_QPA_PLATFORMTHEME = "qt5ct"; + }; systemPackages = with pkgs; [ wget neovim @@ -221,10 +223,8 @@ in { # Enable KDE Plasma 5 displayManager = { - - # Enable autologin autoLogin = { - enable = true; + enable = false; user = "ultra"; }; diff --git a/users/ultra/configs/eww/eww.scss b/users/ultra/configs/eww/eww.scss new file mode 100644 index 0000000..e1d5673 --- /dev/null +++ b/users/ultra/configs/eww/eww.scss @@ -0,0 +1,30 @@ +* { + all: unset; + font-family: "JetBrainsMono Nerd Font"; +} + +.bar { + border-radius: 10px; + background-color: #0e2a3f; +} + +.time { + font-size: 19px; + color: #00e0f0; +} + +.workspace { + // border-top: 1px solid #00aaaa; + padding: 10px; + font-size: 15px; + border-radius: 5px; + background-color: #0e2636; + color: #00b0d0; + // padding-top: 0px; +} + +/* +.workspace { + border-top: 0px; +} +*/ \ No newline at end of file diff --git a/users/ultra/configs/eww/eww.yuck b/users/ultra/configs/eww/eww.yuck new file mode 100644 index 0000000..b250e8e --- /dev/null +++ b/users/ultra/configs/eww/eww.yuck @@ -0,0 +1,51 @@ +(defwindow bar + :monitor 0 + :windowtype "dock" + :stacking "fg" + :exclusive true + :position "left" + :reserve (struts :distance "4%" :side "left") + :class "bar" + :valign "start" + ; :spacing "4px" + :geometry ( geometry :width "2%" + :height "99%" + :x "8px" + :y "0%" + :anchor "left center" ) + (box + :orientation "v" + :valign "start" + :halign "center" + :space-evenly true + :spacing 5 + (time) + (workspaces) + ) + ;(greeter :text "Amogus" + ; :name "Sus") +) + +(defwidget time [] + (box + :class "time" + time)) +(defpoll time :interval "1s" + `date +'%I +%M +%S +%p'`) + +(defvar workspace_nums "[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]") +(defwidget workspaces [] + (box :class "workspaces" + :orientation "v" + :space-evenly true + :halign "start" + :spacing 10 + (for num in workspace_nums + (workspace :number num)))) + +(defwidget workspace [number] + (box :class "workspace" + (button :onclick "hyprctl dispatch workspace ${number}" number))) diff --git a/users/ultra/configs/hyprland/hyprland.conf b/users/ultra/configs/hyprland/hyprland.conf index 3f81ab5..8520742 100644 --- a/users/ultra/configs/hyprland/hyprland.conf +++ b/users/ultra/configs/hyprland/hyprland.conf @@ -18,12 +18,14 @@ autogenerated = 0 # remove this line to remove the warning monitor = DP-1, 2560x1440@165, 1920x0, 1 monitor = HDMI-A-2, 1920x1080@120, 0x360, 1 +monitor = DP-4, 2560x1440@165, 1920x0, 1 +monitor = HDMI-A-4, 1920x1080@120, 0x360, 1 # See https://wiki.hyprland.org/Configuring/Keywords/ for more # Execute your favorite apps at launch # exec-once = waybar & hyprpaper & firefox -exec-once = dunst & polkit-kde-agent +exec-once = dunst & polkit-kde-agent & hyprpaper & eww daemon & eww open bar # Source a file (multi-file configs) # source = ~/.config/hypr/myColors.conf @@ -131,14 +133,14 @@ bind = $mainMod, M, exit, bind = $mainMod, E, exec, dolphin bind = $mainMod, V, togglefloating, # bind = $mainMod, D, execr, [float], alacritty -T launcher --class launcher -e /home/ultra/.local/bin/fzf-launch -# bind = $mainMod, R, exec, fish -c 'eval (tofi-drun) & disown (jobs -p)' +# bind = $mainMod, R, exec, fish -c 'eval (tofi-drun)' bind = $mainMod, P, pseudo, # dwindle bind = $mainMod, J, togglesplit, # dwindle bind = $mainMod + Shift, F, fullscreen bind = $mainMod, F, togglefloating bind = $mainMod, Return, exec, konsole bind = , Print, exec, grimblast copy area -bind = $mainMod, Space, exec, tofi-drun +bind = $mainMod, Space, exec, tofi-drun --drun-launch=true bind = $mainMod, S, exec, scratchpad bind = $mainMod + Shift, S, exec, scratchpad -g @@ -162,6 +164,12 @@ bind = $mainMod, right, movefocus, r bind = $mainMod, up, movefocus, u bind = $mainMod, down, movefocus, d +# Move focus with mainMod + hjkl +bind = $mainMod, H, movefocus, l +bind = $mainMod, J, movefocus, d +bind = $mainMod, K, movefocus, u +bind = $mainMod, L, movefocus, r + # Switch workspaces with mainMod + [0-9] bind = $mainMod, 1, workspace, 1 bind = $mainMod, 2, workspace, 2 diff --git a/users/ultra/configs/hyprpaper/hyprpaper.conf b/users/ultra/configs/hyprpaper/hyprpaper.conf new file mode 100644 index 0000000..a3706bf --- /dev/null +++ b/users/ultra/configs/hyprpaper/hyprpaper.conf @@ -0,0 +1,7 @@ +preload = /home/ultra/Pictures/wallpaper.png + +wallpaper = DP-1, /home/ultra/Pictures/wallpaper.png +wallpaper = HDMI-A-2, /home/ultra/Pictures/wallpaper.png + +wallpaper = DP-4, /home/ultra/Pictures/wallpaper.png +wallpaper = HDMI-A-4, /home/ultra/Pictures/wallpaper.png diff --git a/users/ultra/configs/tofi/config b/users/ultra/configs/tofi/config new file mode 100644 index 0000000..beb14ed --- /dev/null +++ b/users/ultra/configs/tofi/config @@ -0,0 +1,26 @@ +font = "/home/ultra/.local/share/fonts/j/JetBrainsMonoNerdFont_Regular.ttf" +font-size = 23 + +font-features = "liga 1" +text-color = #DDFFFF + +selection-color = #00CCDD +placeholder-color = #112233 + +width = 50% +height = 50% +background-color = #001222 +outline-color = #001111 +outline-width = 10 +border-color = #00CCDD +corner-radius = 15 + +text-cursor-style = bar +text-cursor-color = #DDFFFF +text-cursor-thickness = 2 + +prompt-text = "> " +placeholder-text = "Konsole" + +text-cursor = true +history = true