From 13d66196bfcc9ef840e090f1c6b557716e8c5542 Mon Sep 17 00:00:00 2001 From: Ari Sosnovsky Date: Mon, 13 May 2024 13:02:25 -0400 Subject: [PATCH] using nwg-shell themes --- configs/hypr/hyprland.conf | 141 +++------- configs/hypr/includes.conf | 97 +++++++ configs/hypr/keybindings.conf | 102 +++++++ configs/hypr/monitors.conf | 5 +- configs/hypr/special-window-rules.conf | 13 + configs/nwg-bar/bar.json | 19 +- configs/nwg-bar/hyprland-0.css | 35 +++ configs/nwg-bar/hyprland-1.css | 35 +++ configs/nwg-bar/hyprland-2.css | 35 +++ configs/nwg-bar/hyprland-3.css | 31 +++ configs/nwg-bar/hyprland.json | 22 ++ configs/nwg-bar/preset-0.css | 35 +++ configs/nwg-bar/preset-1.css | 35 +++ configs/nwg-bar/preset-2.css | 35 +++ configs/nwg-bar/preset-3.css | 31 +++ configs/nwg-dock-hyprland/hyprland-0.css | 35 +++ configs/nwg-dock-hyprland/hyprland-1.css | 37 +++ configs/nwg-dock-hyprland/hyprland-2.css | 35 +++ configs/nwg-dock-hyprland/hyprland-3.css | 38 +++ configs/nwg-drawer/hyprland-0.css | 35 +++ configs/nwg-drawer/hyprland-1.css | 35 +++ configs/nwg-drawer/hyprland-2.css | 29 ++ configs/nwg-drawer/hyprland-3.css | 29 ++ configs/nwg-drawer/preset-0.css | 35 +++ configs/nwg-drawer/preset-1.css | 35 +++ configs/nwg-drawer/preset-2.css | 29 ++ configs/nwg-drawer/preset-3.css | 29 ++ configs/nwg-panel/common-settings.json | 3 +- configs/nwg-panel/hyprland-0 | 317 ++++++++++++++++++++++ configs/nwg-panel/hyprland-0.css | 120 +++++++++ configs/nwg-panel/hyprland-1 | 226 ++++++++++++++++ configs/nwg-panel/hyprland-1.css | 116 ++++++++ configs/nwg-panel/hyprland-2 | 232 ++++++++++++++++ configs/nwg-panel/hyprland-2.css | 117 ++++++++ configs/nwg-panel/hyprland-3 | 191 +++++++++++++ configs/nwg-panel/hyprland-3.css | 120 +++++++++ configs/nwg-panel/menu-start.css | 9 +- configs/nwg-panel/preset-0 | 328 +++++++++++++++++++++++ configs/nwg-panel/preset-0.css | 119 ++++++++ configs/nwg-panel/preset-1 | 241 +++++++++++++++++ configs/nwg-panel/preset-1.css | 116 ++++++++ configs/nwg-panel/preset-2 | 249 +++++++++++++++++ configs/nwg-panel/preset-2.css | 117 ++++++++ configs/nwg-panel/preset-3 | 204 ++++++++++++++ configs/nwg-panel/preset-3.css | 120 +++++++++ flake.nix | 1 - hosts/fwbook.nix | 2 + modules/os/hardware.nix | 5 - modules/os/main.nix | 2 +- 49 files changed, 3891 insertions(+), 136 deletions(-) create mode 100644 configs/hypr/includes.conf create mode 100644 configs/hypr/keybindings.conf create mode 100644 configs/hypr/special-window-rules.conf create mode 100644 configs/nwg-bar/hyprland-0.css create mode 100644 configs/nwg-bar/hyprland-1.css create mode 100644 configs/nwg-bar/hyprland-2.css create mode 100644 configs/nwg-bar/hyprland-3.css create mode 100644 configs/nwg-bar/hyprland.json create mode 100644 configs/nwg-bar/preset-0.css create mode 100644 configs/nwg-bar/preset-1.css create mode 100644 configs/nwg-bar/preset-2.css create mode 100644 configs/nwg-bar/preset-3.css create mode 100644 configs/nwg-dock-hyprland/hyprland-0.css create mode 100644 configs/nwg-dock-hyprland/hyprland-1.css create mode 100644 configs/nwg-dock-hyprland/hyprland-2.css create mode 100644 configs/nwg-dock-hyprland/hyprland-3.css create mode 100644 configs/nwg-drawer/hyprland-0.css create mode 100644 configs/nwg-drawer/hyprland-1.css create mode 100644 configs/nwg-drawer/hyprland-2.css create mode 100644 configs/nwg-drawer/hyprland-3.css create mode 100644 configs/nwg-drawer/preset-0.css create mode 100644 configs/nwg-drawer/preset-1.css create mode 100644 configs/nwg-drawer/preset-2.css create mode 100644 configs/nwg-drawer/preset-3.css create mode 100644 configs/nwg-panel/hyprland-0 create mode 100644 configs/nwg-panel/hyprland-0.css create mode 100644 configs/nwg-panel/hyprland-1 create mode 100644 configs/nwg-panel/hyprland-1.css create mode 100644 configs/nwg-panel/hyprland-2 create mode 100644 configs/nwg-panel/hyprland-2.css create mode 100644 configs/nwg-panel/hyprland-3 create mode 100644 configs/nwg-panel/hyprland-3.css create mode 100644 configs/nwg-panel/preset-0 create mode 100644 configs/nwg-panel/preset-0.css create mode 100644 configs/nwg-panel/preset-1 create mode 100644 configs/nwg-panel/preset-1.css create mode 100644 configs/nwg-panel/preset-2 create mode 100644 configs/nwg-panel/preset-2.css create mode 100644 configs/nwg-panel/preset-3 create mode 100644 configs/nwg-panel/preset-3.css diff --git a/configs/hypr/hyprland.conf b/configs/hypr/hyprland.conf index 19f852b..f5d8bd0 100644 --- a/configs/hypr/hyprland.conf +++ b/configs/hypr/hyprland.conf @@ -1,70 +1,51 @@ -# See https://wiki.hyprland.org/Configuring/Monitors/ +# nwg-shell Hyprland config file +# +# The nwg-shell-config utility generates a part of settings for you: +# General, Input devices, Touchpad, Dwindle layout, Master layout. +# Decoration, animations, gestures and per-device config are left to be configured by yourself. +# Refer to the Hyprland wiki at https://wiki.hyprland.org for more information. + +# +# Monitors & workspaces: nwg-displays generates 2 files, which we include here: +# source = ~/.config/hypr/monitors.conf -monitor=,preferred,auto,auto +source = ~/.config/hypr/workspaces.conf +source = ~/.config/hypr/keybindings.conf +source = ~/.config/hypr/special-window-rules.conf +# Include settings generated by nwg-shell-config +source = ~/.config/hypr/includes.conf -# See https://wiki.hyprland.org/Configuring/Keywords/ for more -# Execute your favorite apps at launch -exec-once = lxqt-policykit-agent -exec-once = nwg-panel -exec-once = nwg-dock-hyprland -d -nolauncher -exec-once = nm-applet --indicator -exec-once = dunst - -# Window rules -windowrulev2 = float,class:(lxqt-policykit-agent) -windowrulev2 = float,class:(nm-connection-editor) -windowrulev2 = float,class:(pavucontrol) -windowrulev2 = float,class:(system-config-printer) -windowrulev2 = float,class:(amdgpu_top) -windowrulev2 = float,class:(float) -windowrulev2 = float,class:(nwg-.*) -windowrulev2 = float,class:(org\.kde\..*) -windowrulev2 = float,class:(.*blueman.*) -windowrulev2 = size 40%,40%,class:(pavucontrol) -windowrulev2 = center,class:(pavucontrol) -windowrulev2 = fakefullscreen,class:(Code) -windowrulev2 = fakefullscreen, class:^(code-url-handler)$ - -# Some default env vars. -env = XCURSOR_SIZE,24 - -input { - kb_layout = us - follow_mouse = 1 - touchpad { - natural_scroll = yes - clickfinger_behavior = yes - } - sensitivity = 0 # -1.0 - 1.0, 0 means no modification. -} - - -general { - gaps_in = 5 - gaps_out = 20 - border_size = 2 - col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg - col.inactive_border = rgba(595959aa) - layout = dwindle - allow_tearing = false -} +# +# Autostart. Feel free to add your own entries. +# Shell components will be started in the includes.conf file, which we include below. +# +exec = /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 +exec-once = ~/.azotebg-hyprland # Wallpaper +exec-once = systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP +exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP decoration { + # See https://wiki.hyprland.org/Configuring/Variables/ for more rounding = 5 blur { - enabled = true - size = 3 - passes = 1 + enabled = true + size = 3 + passes = 1 + new_optimizations = true } - drop_shadow = yes + + drop_shadow = true shadow_range = 4 shadow_render_power = 3 col.shadow = rgba(1a1a1aee) } animations { - enabled = yes + enabled = true + + # Some default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more bezier = myBezier, 0.05, 0.9, 0.1, 1.05 + animation = windows, 1, 7, myBezier animation = windowsOut, 1, 7, default, popin 80% animation = border, 1, 10, default @@ -73,67 +54,13 @@ animations { animation = workspaces, 1, 6, default } -dwindle { - pseudotile = yes # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below - preserve_split = yes # you probably want this -} - -master { - new_is_master = true -} - gestures { workspace_swipe = on workspace_swipe_fingers = 4 workspace_swipe_create_new = true } -misc { - force_default_wallpaper = 0 - disable_splash_rendering = false -} xwayland { force_zero_scaling = true } - -$mainMod = SUPER - -# My Binds -bind = $mainMod, T, exec, kitty -bind = $mainMod, F4, killactive, -bind = $mainMod, V, togglefloating, -bind = $mainMod, space, exec, rofi -show drun - -# Screen shot -bind = $mainMod, s, exec, hyprshot -m region -r | swappy -f - - -# Move focus with mainMod + arrow keys -bind = $mainMod, left, movefocus, l -bind = $mainMod, right, movefocus, r -bind = $mainMod, up, movefocus, u -bind = $mainMod, down, movefocus, d - -# Switch workspaces with mainMod -bind = $mainMod, right, workspace, +1 -bind = $mainMod, left, workspace, -1 - -# Move active window to a workspace with mainMod + SHIFT -bind = $mainMod CTRL, right, movetoworkspace, +1 -bind = $mainMod CTRL, left, movetoworkspace, -1 - -# Resize actions -bind = $mainMod SHIFT, right, resizeactive, 10 0 -bind = $mainMod SHIFT, left, resizeactive, -10 0 -bind = $mainMod SHIFT, up, resizeactive, 0 -10 -bind = $mainMod SHIFT, down, resizeactive, 0 10 - -# Scroll through existing workspaces with mainMod + scroll -bind = $mainMod, mouse_down, workspace, e+1 -bind = $mainMod, mouse_up, workspace, e-1 - -# Move/resize windows with mainMod + LMB/RMB and dragging -bindm = $mainMod, mouse:272, movewindow -bindm = $mainMod, Control_L, movewindow -bindm = $mainMod, mouse:273, resizewindow -bindm = $mainMod, ALT_L, resizewindow diff --git a/configs/hypr/includes.conf b/configs/hypr/includes.conf new file mode 100644 index 0000000..65032a0 --- /dev/null +++ b/configs/hypr/includes.conf @@ -0,0 +1,97 @@ +# This content was generated by nwg-shell-config. Do not modify it manually. + +# VARIABLES +$term = kitty +$browser = firefox +$filemanager = dolphin +$editor = code +$launcher = nwg-drawer +$exit = nwg-bar -t hyprland.json -p center -a middle -i 48 -s hyprland-0.css + +# AUTOSTART +exec-once = rm /tmp/nwg-shell-check-update.lock +exec-once = wlsunset -t 4500 -T 6500 -l 52.2322 -L 20.9841 -g 1.1 +exec-once = swaync -c ~/.config/swaync/hyprland.json -s ~/.config/swaync/hyprland-0.css +exec-once = nwg-update-indicator +exec-once = wl-paste --type text --watch cliphist store +exec-once = wl-paste --type image --watch cliphist store +exec = nwg-screenshot-applet +exec = nwg-look -a +exec = nwg-drawer -r -c 6 -is 64 -fscol 2 -s hyprland-0.css -term foot -ft +exec = nwg-panel -c hyprland-0 -s hyprland-0.css +exec = nwg-shell-check-updates +exec-once = nm-applet --indicator +exec = nwg-shell-config -s + +# GENERAL SETTINGS +general { + border_size = 1 + no_border_on_floating = false + gaps_in = 3 + gaps_out = 3 + col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg + col.inactive_border = rgba(595959aa) + layout = dwindle + resize_on_border = true + extend_border_grab_area = true + hover_icon_on_border = true +} + +# DWINDLE LAYOUT +dwindle { + pseudotile = false + force_split = 0 + preserve_split = true + smart_split = false + special_scale_factor = 0.8 + split_width_multiplier = 1.0 + no_gaps_when_only = false + use_active_for_splits = true + default_split_ratio = 1.0 +} + +# MASTER LAYOUT +master { + allow_small_split = false + special_scale_factor = 0.8 + mfact = 0.5 + new_is_master = false + new_on_top = false + no_gaps_when_only = true + orientation = left + inherit_fullscreen = true + always_center_master = true +} + +# INPUT DEVICES +input { + kb_layout = us + numlock_by_default = false + repeat_rate = 25 + repeat_delay = 600 + accel_profile = adaptive + scroll_method = 2fg + follow_mouse = 1 + mouse_refocus = true + float_switch_override_focus = 1 + touchpad { + natural_scroll = yes + clickfinger_behavior = yes + disable_while_typing = true + scroll_factor = 1.0 + tap_button_map = lrm + tap-to-click = true + } +} + +# MISC SETTINGS +misc { + disable_hyprland_logo = true + vrr = 0 + mouse_move_enables_dpms = false + key_press_enables_dpms = false + layers_hog_keyboard_focus = true + focus_on_activate = false + hide_cursor_on_touch = true + mouse_move_focuses_monitor = true +} diff --git a/configs/hypr/keybindings.conf b/configs/hypr/keybindings.conf new file mode 100644 index 0000000..314fd00 --- /dev/null +++ b/configs/hypr/keybindings.conf @@ -0,0 +1,102 @@ +$mainMod = SUPER + + +# # We've defined $term, $editor and so on in includes.conf. +# bind = $mainMod, W, exec, $browser +# bind = $mainMod, E, exec, $editor +# bind = $mainMod, X, exec, $exit +# bind = $mainMod, F, exec, $filemanager +# bind = ALT, F1, exec, $launcher +# bind = ALT, C, exec, nwg-clipman + +# My Binds +bind = $mainMod, T, exec, $term +bind = $mainMod, Q, killactive, +bind = ALT, F4, killactive, +bind = $mainMod, V, togglefloating, +bind = $mainMod, space, exec, rofi -show drun + +# Screen shot +bind = $mainMod, s, exec, hyprshot -m region -r | swappy -f - + +# Move focus with mainMod + arrow keys +bind = $mainMod, left, movefocus, l +bind = $mainMod, right, movefocus, r +bind = $mainMod, up, movefocus, u +bind = $mainMod, down, movefocus, d + +# Switch workspaces with mainMod +bind = $mainMod, right, workspace, +1 +bind = $mainMod, left, workspace, -1 + +# Move active window to a workspace with mainMod + SHIFT +bind = $mainMod CTRL, right, movetoworkspace, +1 +bind = $mainMod CTRL, left, movetoworkspace, -1 + +# Resize actions +bind = $mainMod SHIFT, right, resizeactive, 10 0 +bind = $mainMod SHIFT, left, resizeactive, -10 0 +bind = $mainMod SHIFT, up, resizeactive, 0 -10 +bind = $mainMod SHIFT, down, resizeactive, 0 10 + +# Scroll through existing workspaces with mainMod + scroll +bind = $mainMod, mouse_down, workspace, e+1 +bind = $mainMod, mouse_up, workspace, e-1 + +# Move/resize windows with mainMod + LMB/RMB and dragging +bindm = $mainMod, mouse:272, movewindow +bindm = $mainMod, Control_L, movewindow +bindm = $mainMod, mouse:273, resizewindow +bindm = $mainMod, ALT_L, resizewindow + + +# # + + + +# # Show/hide the dock, if started +# bind = ALT, D, exec, pkill -10 nwg-dock + +# bind = $mainMod, L, exec, nwg-lock # screen locker, according to shell settings +# bind = $mainMod, F1, exec, nwg-shell-help # help window + +bind = $mainMod SHIFT, F, fullscreen +# bind = $mainMod SHIFT, M, exit, +# bind = $mainMod, Space, togglefloating, +# bind = $mainMod, V, togglefloating, +# bind = $mainMod SHIFT, C, exec, hyprctl reload # reload Hyprland +# bind = $mainMod SHIFT, Z, movetoworkspace, special # move to the special workspace +# bind = $mainMod, Z, togglespecialworkspace # show/hide special workspace + +# bind = ALT, Tab, togglesplit, # (dwindle) +# bind = $mainMod, P, pseudo, # (dwindle) +# bind = $mainMod, A, layoutmsg, cycleprev # (master) +# bind = $mainMod, S, layoutmsg, swapwithmaster # (master) +# bind = $mainMod, D, layoutmsg, cyclenext # (master) + +# # SCREENSHOT (/usr/local/bin/screenshot) +# bind = , Print, exec, screenshot fullscreen # full screen +# bind = CONTROL, Print, exec, screenshot display # focused display +# bind = $mainMod SHIFT+CONTROL, Print, exec, screenshot focused # focused window +# bind = SHIFT+CONTROL, Print, exec, screenshot swappy # selected region -> swappy +# # bind = SHIFT+CONTROL, Print, exec, screenshot region # or selected region w/o swappy + +# # MOVE FOCUS with mainMod + arrow keys +# bind = $mainMod, left, movefocus, l +# bind = $mainMod, right, movefocus, r +# bind = $mainMod, up, movefocus, u +# bind = $mainMod, down, movefocus, d + +# # MOVE WINDOW with mainMod SHIFT + arrow keys +# bind = $mainMod SHIFT, left, movewindow, l +# bind = $mainMod SHIFT, right, movewindow, r +# bind = $mainMod SHIFT, up, movewindow, u +# bind = $mainMod SHIFT, down, movewindow, d + +# # SCROLL THROUGH EXISTING WORKSPACES with mainMod + scroll +# bind = $mainMod, mouse_down, workspace, e+1 +# bind = $mainMod, mouse_up, workspace, e-1 + +# # MOVE/RESIZE WINDOWS with mainMod + LMB/RMB and dragging +# bindm = $mainMod, mouse:272, movewindow +# bindm = $mainMod, mouse:273, resizewindow diff --git a/configs/hypr/monitors.conf b/configs/hypr/monitors.conf index 793f469..98c7d02 100644 --- a/configs/hypr/monitors.conf +++ b/configs/hypr/monitors.conf @@ -1,4 +1 @@ -# Generated by nwg-displays on 2024-05-01 at 12:31:53. Do not edit manually. - -monitor=eDP-1,2256x1504,0x0,1 -monitor=DP-9,preferred,0x-1098,auto +monitor=,preferred,auto,1.0 diff --git a/configs/hypr/special-window-rules.conf b/configs/hypr/special-window-rules.conf new file mode 100644 index 0000000..fd08746 --- /dev/null +++ b/configs/hypr/special-window-rules.conf @@ -0,0 +1,13 @@ +windowrulev2 = float,class:(lxqt-policykit-agent) +windowrulev2 = float,class:(nm-connection-editor) +windowrulev2 = float,class:(pavucontrol) +windowrulev2 = float,class:(system-config-printer) +windowrulev2 = float,class:(amdgpu_top) +windowrulev2 = float,class:(float) +windowrulev2 = float,class:(nwg-.*) +windowrulev2 = float,class:(org\.kde\..*) +windowrulev2 = float,class:(.*blueman.*) +windowrulev2 = size 40%,40%,class:(pavucontrol) +windowrulev2 = center,class:(pavucontrol) +windowrulev2 = fakefullscreen,class:(Code) +windowrulev2 = fakefullscreen, class:^(code-url-handler)$ diff --git a/configs/nwg-bar/bar.json b/configs/nwg-bar/bar.json index 11938f6..6c87bdf 100644 --- a/configs/nwg-bar/bar.json +++ b/configs/nwg-bar/bar.json @@ -1,27 +1,22 @@ [ { - "label": "Suspend", - "exec": "systemctl suspend", - "icon": "/nix/store/xl4m836jpyzq43azychrbbjjq1j7d0zq-nwg-bar-0.1.6/share/nwg-bar/images/system-suspend.svg" - }, - { - "label": "Hibernate", - "exec": "systemctl hibernate", - "icon": "/nix/store/xl4m836jpyzq43azychrbbjjq1j7d0zq-nwg-bar-0.1.6/share/nwg-bar/images/system-hibernate.svg" + "label": "Lock", + "exec": "nwg-lock", + "icon": "/usr/share/nwg-bar/images/system-lock-screen.svg" }, { "label": "Logout", - "exec": "hyprctl dispatch exit", - "icon": "/nix/store/xl4m836jpyzq43azychrbbjjq1j7d0zq-nwg-bar-0.1.6/share/nwg-bar/images/system-log-out.svg" + "exec": "swaymsg exit", + "icon": "/usr/share/nwg-bar/images/system-log-out.svg" }, { "label": "Reboot", "exec": "systemctl reboot", - "icon": "/nix/store/xl4m836jpyzq43azychrbbjjq1j7d0zq-nwg-bar-0.1.6/share/nwg-bar/images/system-reboot.svg" + "icon": "/usr/share/nwg-bar/images/system-reboot.svg" }, { "label": "Shutdown", "exec": "systemctl -i poweroff", - "icon": "/nix/store/xl4m836jpyzq43azychrbbjjq1j7d0zq-nwg-bar-0.1.6/share/nwg-bar/images/system-shutdown.svg" + "icon": "/usr/share/nwg-bar/images/system-shutdown.svg" } ] \ No newline at end of file diff --git a/configs/nwg-bar/hyprland-0.css b/configs/nwg-bar/hyprland-0.css new file mode 100644 index 0000000..9b576ba --- /dev/null +++ b/configs/nwg-bar/hyprland-0.css @@ -0,0 +1,35 @@ +window { + background-color: rgba(0, 0, 0, 0.0) +} + +/* Outer bar container, takes all the window width/height */ +#outer-box { + margin: 0 +} + +/* Inner bar container, surrounds buttons */ +#inner-box { + background-color: rgba(37, 37, 37, 0.95); + border-radius: 0; + border-style: solid; + border-width: 1px; + border-color: rgba(0, 0, 0, 1.0); + padding: 5px; + margin: 5px +} + +button, image { + background: none; + border: none; + box-shadow: none +} + +button { + padding-left: 10px; + padding-right: 10px; + margin: 5px +} + +button:hover { + background-color: rgba(255, 255, 255, 0.1) +} diff --git a/configs/nwg-bar/hyprland-1.css b/configs/nwg-bar/hyprland-1.css new file mode 100644 index 0000000..152b8f1 --- /dev/null +++ b/configs/nwg-bar/hyprland-1.css @@ -0,0 +1,35 @@ +window { + background-color: rgba(0, 0, 0, 0.0) +} + +/* Outer bar container, takes all the window width/height */ +#outer-box { + margin: 0 +} + +/* Inner bar container, surrounds buttons */ +#inner-box { + background: #31373A; + border-radius: 10px; + border-style: none; + border-width: 1px; + border-color: rgba(156, 142, 122, 0.7); + padding: 5px; + margin: 5px +} + +button, image { + background: none; + border: none; + box-shadow: none +} + +button { + padding-left: 5px; + padding-right: 5px; + margin: 5px +} + +button:hover { + background-color: rgba(255, 255, 255, 0.1) +} diff --git a/configs/nwg-bar/hyprland-2.css b/configs/nwg-bar/hyprland-2.css new file mode 100644 index 0000000..97141de --- /dev/null +++ b/configs/nwg-bar/hyprland-2.css @@ -0,0 +1,35 @@ +window { + background-color: rgba(0, 0, 0, 0.0) +} + +/* Outer bar container, takes all the window width/height */ +#outer-box { + margin: 0 +} + +/* Inner bar container, surrounds buttons */ +#inner-box { + background-color: rgba(23, 53, 63, 0.95); + border-radius: 0; + border-style: none; + border-width: 1px; + border-color: rgba(156, 142, 122, 0.7); + padding: 5px; + margin: 5px +} + +button, image { + background: none; + border: none; + box-shadow: none +} + +button { + padding-left: 10px; + padding-right: 10px; + margin: 5px +} + +button:hover { + background-color: rgba(255, 255, 255, 0.1) +} diff --git a/configs/nwg-bar/hyprland-3.css b/configs/nwg-bar/hyprland-3.css new file mode 100644 index 0000000..bff4316 --- /dev/null +++ b/configs/nwg-bar/hyprland-3.css @@ -0,0 +1,31 @@ +window { + background-color: rgba(0, 0, 0, 0.0) +} + +/* Outer bar container, takes all the window width/height */ +#outer-box { + margin: 0 +} + +/* Inner bar container, surrounds buttons */ +#inner-box { + background: #27132e; + padding: 0; + margin: 0 +} + +button, image { + background: none; + border: none; + box-shadow: none +} + +button { + padding-left: 10px; + padding-right: 10px; + margin: 5px +} + +button:hover { + background-color: rgba(255, 255, 255, 0.1) +} diff --git a/configs/nwg-bar/hyprland.json b/configs/nwg-bar/hyprland.json new file mode 100644 index 0000000..74557d5 --- /dev/null +++ b/configs/nwg-bar/hyprland.json @@ -0,0 +1,22 @@ +[ + { + "label": "Loc_k", + "exec": "nwg-lock", + "icon": "/usr/share/nwg-bar/images/system-lock-screen.svg" + }, + { + "label": "_Logout", + "exec": "hyprctl dispatch exit", + "icon": "/usr/share/nwg-bar/images/system-log-out.svg" + }, + { + "label": "_Reboot", + "exec": "systemctl reboot", + "icon": "/usr/share/nwg-bar/images/system-reboot.svg" + }, + { + "label": "_Shutdown", + "exec": "systemctl -i poweroff", + "icon": "/usr/share/nwg-bar/images/system-shutdown.svg" + } +] \ No newline at end of file diff --git a/configs/nwg-bar/preset-0.css b/configs/nwg-bar/preset-0.css new file mode 100644 index 0000000..9b576ba --- /dev/null +++ b/configs/nwg-bar/preset-0.css @@ -0,0 +1,35 @@ +window { + background-color: rgba(0, 0, 0, 0.0) +} + +/* Outer bar container, takes all the window width/height */ +#outer-box { + margin: 0 +} + +/* Inner bar container, surrounds buttons */ +#inner-box { + background-color: rgba(37, 37, 37, 0.95); + border-radius: 0; + border-style: solid; + border-width: 1px; + border-color: rgba(0, 0, 0, 1.0); + padding: 5px; + margin: 5px +} + +button, image { + background: none; + border: none; + box-shadow: none +} + +button { + padding-left: 10px; + padding-right: 10px; + margin: 5px +} + +button:hover { + background-color: rgba(255, 255, 255, 0.1) +} diff --git a/configs/nwg-bar/preset-1.css b/configs/nwg-bar/preset-1.css new file mode 100644 index 0000000..152b8f1 --- /dev/null +++ b/configs/nwg-bar/preset-1.css @@ -0,0 +1,35 @@ +window { + background-color: rgba(0, 0, 0, 0.0) +} + +/* Outer bar container, takes all the window width/height */ +#outer-box { + margin: 0 +} + +/* Inner bar container, surrounds buttons */ +#inner-box { + background: #31373A; + border-radius: 10px; + border-style: none; + border-width: 1px; + border-color: rgba(156, 142, 122, 0.7); + padding: 5px; + margin: 5px +} + +button, image { + background: none; + border: none; + box-shadow: none +} + +button { + padding-left: 5px; + padding-right: 5px; + margin: 5px +} + +button:hover { + background-color: rgba(255, 255, 255, 0.1) +} diff --git a/configs/nwg-bar/preset-2.css b/configs/nwg-bar/preset-2.css new file mode 100644 index 0000000..97141de --- /dev/null +++ b/configs/nwg-bar/preset-2.css @@ -0,0 +1,35 @@ +window { + background-color: rgba(0, 0, 0, 0.0) +} + +/* Outer bar container, takes all the window width/height */ +#outer-box { + margin: 0 +} + +/* Inner bar container, surrounds buttons */ +#inner-box { + background-color: rgba(23, 53, 63, 0.95); + border-radius: 0; + border-style: none; + border-width: 1px; + border-color: rgba(156, 142, 122, 0.7); + padding: 5px; + margin: 5px +} + +button, image { + background: none; + border: none; + box-shadow: none +} + +button { + padding-left: 10px; + padding-right: 10px; + margin: 5px +} + +button:hover { + background-color: rgba(255, 255, 255, 0.1) +} diff --git a/configs/nwg-bar/preset-3.css b/configs/nwg-bar/preset-3.css new file mode 100644 index 0000000..bff4316 --- /dev/null +++ b/configs/nwg-bar/preset-3.css @@ -0,0 +1,31 @@ +window { + background-color: rgba(0, 0, 0, 0.0) +} + +/* Outer bar container, takes all the window width/height */ +#outer-box { + margin: 0 +} + +/* Inner bar container, surrounds buttons */ +#inner-box { + background: #27132e; + padding: 0; + margin: 0 +} + +button, image { + background: none; + border: none; + box-shadow: none +} + +button { + padding-left: 10px; + padding-right: 10px; + margin: 5px +} + +button:hover { + background-color: rgba(255, 255, 255, 0.1) +} diff --git a/configs/nwg-dock-hyprland/hyprland-0.css b/configs/nwg-dock-hyprland/hyprland-0.css new file mode 100644 index 0000000..9946182 --- /dev/null +++ b/configs/nwg-dock-hyprland/hyprland-0.css @@ -0,0 +1,35 @@ +window { + background-color: rgba(37, 37, 37, 0.95); + border-style: none; + border-width: 1px; + border-color: rgba(0, 0, 0, 1.0); +} + +#box { + /* Define attributes of the box surrounding icons here */ + padding: 10px +} + +button, image { + background: none; + border-style: none; + box-shadow: none; + color: #999 +} + +button { + padding: 4px; + margin-left: 4px; + margin-right: 4px; + color: #eee; + font-size: 12px +} + +button:hover { + background-color: rgba(255, 255, 255, 0.15); + border-radius: 2px; +} + +button:focus { + box-shadow: 0 0 2px; +} diff --git a/configs/nwg-dock-hyprland/hyprland-1.css b/configs/nwg-dock-hyprland/hyprland-1.css new file mode 100644 index 0000000..6eec182 --- /dev/null +++ b/configs/nwg-dock-hyprland/hyprland-1.css @@ -0,0 +1,37 @@ +window { + /*background-color: rgba (0, 0, 0, 0.8);*/ + background: #31373A; + border-radius: 10px; + border-style: none; + border-width: 1px; + border-color: rgba(156, 142, 122, 0.7) +} + +#box { + /* Define attributes of the box surrounding icons here */ + padding: 10px +} + +button, image { + background: none; + border-style: none; + box-shadow: none; + color: #999 +} + +button { + padding: 4px; + margin-left: 4px; + margin-right: 4px; + color: #eee; + font-size: 12px +} + +button:hover { + background-color: rgba(255, 255, 255, 0.15); + border-radius: 2px; +} + +button:focus { + box-shadow: 0 0 2px; +} diff --git a/configs/nwg-dock-hyprland/hyprland-2.css b/configs/nwg-dock-hyprland/hyprland-2.css new file mode 100644 index 0000000..534d46d --- /dev/null +++ b/configs/nwg-dock-hyprland/hyprland-2.css @@ -0,0 +1,35 @@ +window { + background: #27132e; + border-style: none; + border-width: 1px; + border-color: rgba(156, 142, 122, 0.7) +} + +#box { + /* Define attributes of the box surrounding icons here */ + padding: 10px +} + +button, image { + background: none; + border-style: none; + box-shadow: none; + color: #999 +} + +button { + padding: 4px; + margin-left: 4px; + margin-right: 4px; + color: #eee; + font-size: 12px +} + +button:hover { + background-color: rgba(255, 255, 255, 0.15); + border-radius: 2px; +} + +button:focus { + box-shadow: 0 0 2px; +} diff --git a/configs/nwg-dock-hyprland/hyprland-3.css b/configs/nwg-dock-hyprland/hyprland-3.css new file mode 100644 index 0000000..c36f8ac --- /dev/null +++ b/configs/nwg-dock-hyprland/hyprland-3.css @@ -0,0 +1,38 @@ +* { border-radius: 0 } + +window { + background: #27132e; + border-style: none; + border-width: 1px; + border-radius: 0; + border-color: rgba(156, 142, 122, 0.7) +} + +#box { + /* Define attributes of the box surrounding icons here */ + padding: 10px +} + +button, image { + background: none; + border-style: none; + box-shadow: none; + color: #999 +} + +button { + padding: 4px; + margin-left: 4px; + margin-right: 4px; + color: #eee; + font-size: 12px +} + +button:hover { + background-color: rgba(255, 255, 255, 0.15); + border-radius: 2px; +} + +button:focus { + box-shadow: 0 0 2px; +} diff --git a/configs/nwg-drawer/hyprland-0.css b/configs/nwg-drawer/hyprland-0.css new file mode 100644 index 0000000..c90828b --- /dev/null +++ b/configs/nwg-drawer/hyprland-0.css @@ -0,0 +1,35 @@ +window { + background-color: rgba(20, 20, 20, 0.95); + border-radius: 0; + color: #eeeeee +} + +/* search entry */ +entry { + background-color: rgba(0, 0, 0, 0.2) +} + +button, image { + background: none; + border: none +} + +button:hover { + background-color: rgba(255, 255, 255, 0.1) +} + +/* in case you wanted to give category buttons a different look */ +#category-button { + margin: 0 10px 0 10px +} + +#pinned-box { + padding-bottom: 5px; + border-bottom: 1px dotted gray +} + +#files-box { + padding: 5px; + border: 1px dotted gray; + border-radius: 15px +} diff --git a/configs/nwg-drawer/hyprland-1.css b/configs/nwg-drawer/hyprland-1.css new file mode 100644 index 0000000..50e3e34 --- /dev/null +++ b/configs/nwg-drawer/hyprland-1.css @@ -0,0 +1,35 @@ +window { + background: #282828; + border-radius: 0; + color: #eeeeee +} + +/* search entry */ +entry { + background-color: rgba(0, 0, 0, 0.2) +} + +button, image { + background: none; + border: none +} + +button:hover { + background-color: rgba(255, 255, 255, 0.1) +} + +/* in case you wanted to give category buttons a different look */ +#category-button { + margin: 0 10px 0 10px +} + +#pinned-box { + padding-bottom: 5px; + border-bottom: 1px dotted gray +} + +#files-box { + padding: 5px; + border: 1px dotted gray; + border-radius: 15px +} diff --git a/configs/nwg-drawer/hyprland-2.css b/configs/nwg-drawer/hyprland-2.css new file mode 100644 index 0000000..4c5af63 --- /dev/null +++ b/configs/nwg-drawer/hyprland-2.css @@ -0,0 +1,29 @@ +window { + background-color: rgba(20, 1, 21, 0.9); + border-radius: 0; + color: #eeeeee +} + +entry { + background-color: rgba(0, 0, 0, 0.2) +} + +button { + background: none; + border: none +} + +button:hover { + background-color: rgba(255, 255, 255, 0.1) +} + +#pinned-box { + padding-bottom: 5px; + border-bottom: 1px dotted gray +} + +#files-box { + padding: 5px; + border: 1px dotted gray; + border-radius: 15px +} diff --git a/configs/nwg-drawer/hyprland-3.css b/configs/nwg-drawer/hyprland-3.css new file mode 100644 index 0000000..4c5af63 --- /dev/null +++ b/configs/nwg-drawer/hyprland-3.css @@ -0,0 +1,29 @@ +window { + background-color: rgba(20, 1, 21, 0.9); + border-radius: 0; + color: #eeeeee +} + +entry { + background-color: rgba(0, 0, 0, 0.2) +} + +button { + background: none; + border: none +} + +button:hover { + background-color: rgba(255, 255, 255, 0.1) +} + +#pinned-box { + padding-bottom: 5px; + border-bottom: 1px dotted gray +} + +#files-box { + padding: 5px; + border: 1px dotted gray; + border-radius: 15px +} diff --git a/configs/nwg-drawer/preset-0.css b/configs/nwg-drawer/preset-0.css new file mode 100644 index 0000000..c90828b --- /dev/null +++ b/configs/nwg-drawer/preset-0.css @@ -0,0 +1,35 @@ +window { + background-color: rgba(20, 20, 20, 0.95); + border-radius: 0; + color: #eeeeee +} + +/* search entry */ +entry { + background-color: rgba(0, 0, 0, 0.2) +} + +button, image { + background: none; + border: none +} + +button:hover { + background-color: rgba(255, 255, 255, 0.1) +} + +/* in case you wanted to give category buttons a different look */ +#category-button { + margin: 0 10px 0 10px +} + +#pinned-box { + padding-bottom: 5px; + border-bottom: 1px dotted gray +} + +#files-box { + padding: 5px; + border: 1px dotted gray; + border-radius: 15px +} diff --git a/configs/nwg-drawer/preset-1.css b/configs/nwg-drawer/preset-1.css new file mode 100644 index 0000000..50e3e34 --- /dev/null +++ b/configs/nwg-drawer/preset-1.css @@ -0,0 +1,35 @@ +window { + background: #282828; + border-radius: 0; + color: #eeeeee +} + +/* search entry */ +entry { + background-color: rgba(0, 0, 0, 0.2) +} + +button, image { + background: none; + border: none +} + +button:hover { + background-color: rgba(255, 255, 255, 0.1) +} + +/* in case you wanted to give category buttons a different look */ +#category-button { + margin: 0 10px 0 10px +} + +#pinned-box { + padding-bottom: 5px; + border-bottom: 1px dotted gray +} + +#files-box { + padding: 5px; + border: 1px dotted gray; + border-radius: 15px +} diff --git a/configs/nwg-drawer/preset-2.css b/configs/nwg-drawer/preset-2.css new file mode 100644 index 0000000..4c5af63 --- /dev/null +++ b/configs/nwg-drawer/preset-2.css @@ -0,0 +1,29 @@ +window { + background-color: rgba(20, 1, 21, 0.9); + border-radius: 0; + color: #eeeeee +} + +entry { + background-color: rgba(0, 0, 0, 0.2) +} + +button { + background: none; + border: none +} + +button:hover { + background-color: rgba(255, 255, 255, 0.1) +} + +#pinned-box { + padding-bottom: 5px; + border-bottom: 1px dotted gray +} + +#files-box { + padding: 5px; + border: 1px dotted gray; + border-radius: 15px +} diff --git a/configs/nwg-drawer/preset-3.css b/configs/nwg-drawer/preset-3.css new file mode 100644 index 0000000..4c5af63 --- /dev/null +++ b/configs/nwg-drawer/preset-3.css @@ -0,0 +1,29 @@ +window { + background-color: rgba(20, 1, 21, 0.9); + border-radius: 0; + color: #eeeeee +} + +entry { + background-color: rgba(0, 0, 0, 0.2) +} + +button { + background: none; + border: none +} + +button:hover { + background-color: rgba(255, 255, 255, 0.1) +} + +#pinned-box { + padding-bottom: 5px; + border-bottom: 1px dotted gray +} + +#files-box { + padding: 5px; + border: 1px dotted gray; + border-radius: 15px +} diff --git a/configs/nwg-panel/common-settings.json b/configs/nwg-panel/common-settings.json index 70914d0..17f4fe4 100644 --- a/configs/nwg-panel/common-settings.json +++ b/configs/nwg-panel/common-settings.json @@ -3,6 +3,5 @@ "restart-delay": 500, "processes-background-only": false, "processes-own-only": true, - "processes-interval-ms": 2000, - "run-through-compositor": true + "processes-interval-ms": 2000 } \ No newline at end of file diff --git a/configs/nwg-panel/hyprland-0 b/configs/nwg-panel/hyprland-0 new file mode 100644 index 0000000..9f94f33 --- /dev/null +++ b/configs/nwg-panel/hyprland-0 @@ -0,0 +1,317 @@ +[ + { + "name": "top", + "output": "", + "layer": "overlay", + "position": "top", + "width": "auto", + "height": 30, + "homogeneous": true, + "margin-top": 0, + "margin-bottom": 0, + "padding-horizontal": 0, + "padding-vertical": 0, + "spacing": 2, + "items-padding": 0, + "css-name": "panel-top", + "icons": "light", + "menu-start": "off", + "modules-left": [ + "button-launcher", + "playerctl" + ], + "modules-center": [ + "clock" + ], + "modules-right": [ + "tray", + "button-help", + "button-clipman" + ], + "controls": "right", + "controls-settings": { + "alignment": "right", + "components": [ + "brightness", + "battery", + "volume", + "processes", + "readme" + ], + "commands": { + "battery": "", + "net": "", + "bluetooth": "blueman-manager" + }, + "custom-items": [ + { + "name": "Wallpapers", + "icon": "azote", + "cmd": "azote" + }, + { + "name": "GTK settings", + "icon": "nwg-look", + "cmd": "nwg-look" + }, + { + "name": "Displays", + "icon": "nwg-displays", + "cmd": "nwg-displays" + }, + { + "name": "Panel settings", + "icon": "nwg-panel", + "cmd": "nwg-panel-config" + }, + { + "name": "Shell settings", + "icon": "nwg-shell-config", + "cmd": "nwg-shell-config" + } + ], + "menu": { + "name": "Exit", + "icon": "system-shutdown-symbolic", + "items": [ + { + "name": "Lock", + "cmd": "nwg-lock" + }, + { + "name": "Exit Hyprland session", + "cmd": "nwg-dialog -p exit-hyprland -c \"hyprctl dispatch exit\"" + }, + { + "name": "Restart", + "cmd": "nwg-dialog -p reboot -c \"systemctl reboot\"" + }, + { + "name": "Shutdown", + "cmd": "nwg-dialog -p poweroff -c \"systemctl -i poweroff\"" + } + ] + }, + "show-values": false, + "interval": 1, + "icon-size": 18, + "hover-opens": false, + "leave-closes": false, + "click-closes": true, + "css-name": "controls-window", + "net-interface": "wlo1", + "system-shutdown-symbolic": "system-shutdown", + "output-switcher": true, + "window-width": 320, + "window-margin": 0, + "battery-low-level": 0, + "root-css-name": "controls-overview", + "backlight-device": "", + "backlight-controller": "brightnessctl" + }, + "playerctl": { + "interval": 1, + "buttons": true, + "buttons-position": "left", + "chars": 50, + "css-name": "button-grid", + "icon-size": 16, + "button-css-name": "button-custom", + "label-css-name": "panel-top" + }, + "clock": { + "format": "%a, %d. %b %H:%M:%S", + "interval": 1, + "on-right-click": "", + "tooltip-text": "", + "on-left-click": "", + "on-middle-click": "", + "on-scroll-up": "", + "on-scroll-down": "", + "css-name": "clock", + "root-css-name": "root-clock" + }, + "sway-taskbar": {}, + "sway-workspaces": {}, + "scratchpad": {}, + "dwl-tags": {}, + "tray": { + "icon-size": 16, + "root-css-name": "tray", + "inner-css-name": "inner-tray", + "smooth-scrolling-threshold": 0 + }, + "swaync": { + "tooltip-text": "Notifications", + "on-left-click": "swaync-client -t", + "on-middle-click": "", + "on-right-click": "", + "on-scroll-up": "", + "on-scroll-down": "", + "root-css-name": "root-executor", + "css-name": "executor", + "icon-placement": "left", + "icon-size": 16, + "interval": 1, + "always-show-icon": true + }, + "exclusive-zone": true, + "openweather": {}, + "brightness-slider": {}, + "button-launcher": { + "command": "nwg-drawer", + "icon": "grid", + "label": "", + "label-position": "right", + "tooltip": "Application drawer [Alt]+F1", + "css-name": "button-custom", + "icon-size": 16 + }, + "button-help": { + "command": "nwg-shell-help", + "icon": "help-about", + "label": "", + "label-position": "right", + "tooltip": "Show/hide help [S]+F1", + "css-name": "button-custom", + "icon-size": 16 + }, + "button-clipman": { + "command": "nwg-clipman", + "icon": "nwg-clipman", + "label": "", + "label-position": "right", + "tooltip": "Clipboard history [Alt]+c", + "css-name": "button-custom", + "icon-size": 16 + } + }, + { + "name": "bottom", + "output": "", + "layer": "top", + "position": "bottom", + "height": 30, + "margin-top": 0, + "margin-bottom": 0, + "padding-horizontal": 6, + "padding-vertical": 0, + "spacing": 10, + "items-padding": 0, + "css-name": "panel-bottom", + "icons": "", + "menu-start": "off", + "width": "auto", + "controls": "off", + "controls-settings": {}, + "scratchpad": { + "css-name": "", + "icon-size": 16, + "angle": 0.0, + "single-output": false + }, + "clock": {}, + "menu-start-settings": {}, + "modules-left": [ + "hyprland-taskbar", + "scratchpad" + ], + "modules-center": [], + "modules-right": [ + "executor-cpuav", + "executor-cpubar", + "executor-temp", + "executor-memory", + "executor-drives" + ], + "hyprland-taskbar": { + "name-max-len": 15, + "image-size": 16, + "workspaces-spacing": 0, + "task-padding": 0, + "show-app-icon": true, + "show-app-name": true, + "show-layout": true, + "workspace-clickable": false, + "mark-xwayland": true, + "all-outputs": false, + "angle": 0.0, + "icon-size": 16, + "client-padding": 0, + "show-app-name-special": false + }, + "executor-cpubar": { + "script": "gopsuinfo -c g", + "interval": 2, + "tooltip-text": "", + "on-left-click": "", + "on-middle-click": "", + "on-right-click": "", + "on-scroll-up": "", + "on-scroll-down": "", + "css-name": "", + "icon-size": 16, + "icon-placement": "left" + }, + "executor-cpuav": { + "script": "gopsuinfo -i a", + "interval": 2, + "tooltip-text": "CPU average load", + "on-left-click": "nwg-processes", + "on-middle-click": "", + "on-right-click": "", + "on-scroll-up": "", + "on-scroll-down": "", + "css-name": "", + "icon-size": 16, + "icon-placement": "right" + }, + "executor-temp": { + "script": "gopsuinfo -i t", + "interval": 5, + "tooltip-text": "", + "on-left-click": "", + "on-middle-click": "", + "on-right-click": "", + "on-scroll-up": "", + "on-scroll-down": "", + "css-name": "", + "icon-size": 16, + "icon-placement": "left" + }, + "executor-memory": { + "script": "gopsuinfo -i m", + "interval": 5, + "tooltip-text": "", + "on-left-click": "", + "on-middle-click": "", + "on-right-click": "", + "on-scroll-up": "", + "on-scroll-down": "", + "css-name": "", + "icon-size": 16, + "icon-placement": "left" + }, + "executor-drives": { + "script": "gopsuinfo -i n", + "interval": 15, + "tooltip-text": "", + "on-left-click": "", + "on-middle-click": "", + "on-right-click": "", + "on-scroll-up": "", + "on-scroll-down": "", + "css-name": "", + "icon-size": 16, + "icon-placement": "left" + }, + "playerctl": {}, + "sway-taskbar": {}, + "sway-workspaces": {}, + "exclusive-zone": true, + "openweather": {}, + "brightness-slider": {}, + "dwl-tags": {}, + "tray": {} + } +] \ No newline at end of file diff --git a/configs/nwg-panel/hyprland-0.css b/configs/nwg-panel/hyprland-0.css new file mode 100644 index 0000000..69140b2 --- /dev/null +++ b/configs/nwg-panel/hyprland-0.css @@ -0,0 +1,120 @@ +/***** SUGGESTED TO CHANGE CAREFULLY *****/ + +/* Recommended if panel "height" unset or smaller then your theme default button height */ +button { + margin: 2px; + background: none; + border: none +} + +/* SwayTaskBar and SwayWorkspaces use custom widgets, that need this and the next name + to highlight currently focused task / workspace. */ +#task-box { + padding-left: 4px; + padding-right: 4px +} + +#task-box-focused { + background-color: rgba(255, 255, 255, 0.12); + padding-left: 4px; + padding-right: 4px +} + + +/***** MODIFY TO YOUR TASTE *****/ + +/* Default custom button */ +#button-custom { + background: rgba(0, 0, 0, 0.0); + border: 0 +} + +#button-custom:hover { + border: none; + border-radius: 3px; + background: #cd7ebf; + color: #fff +} + +/* Top panel in sample config uses this name */ +#panel-top { + background: #030303; + border-radius: 0; + color: #eeeeee +} + +/* Bottom panel in sample config uses this name */ +#panel-bottom { + background-color: #030303; + border-radius: 0; + color: #eeeeee +} + +/* Controls window in sample config uses this name */ +#controls-window { + background-color: rgba(37, 37, 37, 0.95); + border-radius: 0; + border-style: solid; + border-width: 1px; + border-color: rgba(0, 0, 0, 1.0); + color: #eeeeee +} + +/* Executors usually behave better in monospace fonts */ +#executor-label { + font-family: DejaVu Sans Mono, monospace; + font-size: 16px +} + +/* and so does the Clock */ +#clock { + font-family: DejaVu Sans Mono, monospace; + font-size: 16px +} + +/* Sample executor-weather uses "css-name": "weather" */ +#weather { + font-size: 16px +} + +/* dwl module */ +#dwl-tag-box { + padding-top: 4px; + padding-bottom: 4px +} + +#dwl-tag-occupied { + font-family: monospace; + color: #eee; + background-color: #006699; + padding-left: 3px; + padding-right: 3px; +} + +#dwl-tag-free { + font-family: monospace; + color: #eee; + background-color: rgba(32, 50, 90, 1.0); + padding-left: 3px; + padding-right: 3px; +} + +#dwl-tag-urgent { + font-family: monospace; + color: #eee; + background-color: #ee6600; + padding-left: 3px; + padding-right: 3px; +} + +#dwl-tag-selected { + border: 2px solid #81a1c1; +} + +/* Selected (hovered) UI elements */ +*:selected { + border: none; + border-radius: 3px; + background: #cd7ebf; + color: #fff +} diff --git a/configs/nwg-panel/hyprland-1 b/configs/nwg-panel/hyprland-1 new file mode 100644 index 0000000..2169024 --- /dev/null +++ b/configs/nwg-panel/hyprland-1 @@ -0,0 +1,226 @@ +[ + { + "name": "top", + "output": "", + "layer": "top", + "position": "top", + "height": 30, + "homogeneous": true, + "margin-top": 0, + "margin-bottom": 0, + "padding-horizontal": 0, + "padding-vertical": 0, + "spacing": 2, + "controls": "right", + "items-padding": 0, + "css-name": "panel-top", + "icons": "light", + "modules-left": [ + "button-launcher", + "hyprland-workspaces" + ], + "modules-center": [ + "clock" + ], + "modules-right": [ + "executor-cpuav", + "executor-cpubar", + "scratchpad", + "tray", + "button-help", + "button-clipman" + ], + "sway-taskbar": {}, + "controls-settings": { + "alignment": "right", + "components": [ + "brightness", + "battery", + "volume", + "processes", + "readme" + ], + "commands": { + "battery": "", + "net": "nm-connection-editor", + "bluetooth": "blueman-manager" + }, + "custom-items": [ + { + "name": "Wallpapers", + "icon": "azote", + "cmd": "azote" + }, + { + "name": "GTK settings", + "icon": "nwg-look", + "cmd": "nwg-look" + }, + { + "name": "Displays", + "icon": "nwg-displays", + "cmd": "nwg-displays" + }, + { + "name": "Panel settings", + "icon": "nwg-panel", + "cmd": "nwg-panel-config" + }, + { + "name": "Shell settings", + "icon": "nwg-shell-config", + "cmd": "nwg-shell-config" + } + ], + "menu": { + "name": "Exit", + "icon": "system-shutdown-symbolic", + "items": [ + { + "name": "Lock", + "cmd": "nwg-lock" + }, + { + "name": "Exit Hyprland session", + "cmd": "nwg-dialog -p exit-hyprland -c \"hyprctl dispatch exit\"" + }, + { + "name": "Restart", + "cmd": "nwg-dialog -p reboot -c \"systemctl reboot\"" + }, + { + "name": "Shutdown", + "cmd": "nwg-dialog -p poweroff -c \"systemctl -i poweroff\"" + } + ] + }, + "show-values": false, + "interval": 1, + "icon-size": 18, + "hover-opens": false, + "leave-closes": true, + "click-closes": true, + "css-name": "controls-window", + "net-interface": "wlo1", + "system-shutdown-symbolic": "system-shutdown", + "output-switcher": true, + "window-width": 320, + "window-margin": 6, + "battery-low-level": 0, + "backlight-device": "", + "backlight-controller": "brightnessctl", + "root-css-name": "controls-overview", + "window-margin-horizontal": 4, + "window-margin-vertical": 4, + "angle": 0.0 + }, + "playerctl": {}, + "clock": { + "format": "%a, %d. %b %H:%M:%S", + "interval": 1, + "on-right-click": "", + "tooltip-text": "", + "on-left-click": "", + "on-middle-click": "", + "on-scroll-up": "", + "on-scroll-down": "", + "css-name": "clock" + }, + "width": "auto", + "sway-workspaces": {}, + "hyprland-workspaces": { + "num-ws": 10, + "show-icon": true, + "image-size": 16, + "show-name": true, + "name-length": 20, + "show-empty": true, + "mark-content": true, + "show-names": true, + "mark-floating": true, + "angle": 0.0, + "mark-xwayland": true + }, + "menu-start": "off", + "menu-start-settings": {}, + "executor-cpuav": { + "script": "gopsuinfo -i a", + "tooltip-text": "average CPU load", + "on-left-click": "nwg-processes", + "on-middle-click": "", + "on-right-click": "", + "on-scroll-up": "", + "on-scroll-down": "", + "root-css-name": "", + "css-name": "", + "icon-placement": "right", + "icon-size": 16, + "interval": 3 + }, + "executor-cpubar": { + "script": "gopsuinfo -c g", + "tooltip-text": "", + "on-left-click": "", + "on-middle-click": "", + "on-right-click": "", + "on-scroll-up": "", + "on-scroll-down": "", + "root-css-name": "", + "css-name": "", + "icon-placement": "left", + "icon-size": 16, + "interval": 3 + }, + "dwl-tags": {}, + "tray": { + "icon-size": 16, + "root-css-name": "tray", + "inner-css-name": "inner-tray", + "smooth-scrolling-threshold": 0 + }, + "swaync": { + "tooltip-text": "Notifications", + "on-left-click": "swaync-client -t", + "on-middle-click": "", + "on-right-click": "", + "on-scroll-up": "", + "on-scroll-down": "", + "root-css-name": "root-executor", + "css-name": "executor", + "icon-placement": "left", + "icon-size": 16, + "interval": 1, + "always-show-icon": true + }, + "exclusive-zone": true, + "openweather": {}, + "brightness-slider": {}, + "button-launcher": { + "command": "nwg-drawer", + "icon": "grid", + "label": "", + "label-position": "right", + "tooltip": "Application drawer [Alt]+F1", + "css-name": "button-custom", + "icon-size": 16 + }, + "button-help": { + "command": "nwg-shell-help", + "icon": "help-about", + "label": "", + "label-position": "right", + "tooltip": "Show/hide help [S]+F1", + "css-name": "button-custom", + "icon-size": 16 + }, + "button-clipman": { + "command": "nwg-clipman", + "icon": "nwg-clipman", + "label": "", + "label-position": "right", + "tooltip": "Clipboard history [Alt]+c", + "css-name": "button-custom", + "icon-size": 16 + } + } +] \ No newline at end of file diff --git a/configs/nwg-panel/hyprland-1.css b/configs/nwg-panel/hyprland-1.css new file mode 100644 index 0000000..d541cc8 --- /dev/null +++ b/configs/nwg-panel/hyprland-1.css @@ -0,0 +1,116 @@ +/***** SUGGESTED TO CHANGE CAREFULLY *****/ + +/* Recommended if panel "height" unset or smaller then your theme default button height */ +button { + margin: 2px; + background: none; + border: none +} + +/* SwayTaskBar and SwayWorkspaces use custom widgets, that need this and the next name + to highlight currently focused task / workspace. */ +#task-box { + padding-left: 4px; + padding-right: 4px +} + +#task-box-focused { + background-color: rgba(255, 255, 255, 0.12); + padding-left: 4px; + padding-right: 4px +} + + +/***** MODIFY TO YOUR TASTE *****/ + +/* Default custom button */ +#button-custom { + background: rgba(0, 0, 0, 0.0); + border: 0 +} + +#button-custom:hover { + border: none; + border-radius: 3px; + background: #cd7ebf; + color: #fff +} + +/* Top panel in sample config uses this name */ +#panel-top { + background: #101010; + border-radius: 0; + color: #eeeeee +} + +/* Bottom panel in sample config uses this name */ +#panel-bottom { + background: #3b4559; + border-radius: 0; + color: #eeeeee +} + +/* Controls window in sample config uses this name */ +#controls-window { + border-radius: 10px; + background: #31373A; + color: #eeeeee +} + +/* Executors usually behave better in monospace fonts */ +#executor-label { + font-family: DejaVu Sans Mono, monospace +} + +/* and so does the Clock */ +#clock { + font-family: DejaVu Sans Mono, monospace; + font-size: 16px +} + +/* Sample executor-weather uses "css-name": "weather" */ +#weather { + font-size: 16px +} + +/* dwl-tags module */ +#dwl-tag-box { + padding-top: 4px; + padding-bottom: 4px +} + +#dwl-tag-occupied { + font-family: monospace; + color: #eee; + background-color: #006699; + padding-left: 3px; + padding-right: 3px; +} + +#dwl-tag-free { + font-family: monospace; + color: #eee; + background-color: rgba(32, 50, 90, 1.0); + padding-left: 3px; + padding-right: 3px; +} + +#dwl-tag-urgent { + font-family: monospace; + color: #eee; + background-color: #ee6600; + padding-left: 3px; + padding-right: 3px; +} + +#dwl-tag-selected { + border: 2px solid #81a1c1; +} + +/* Selected (hovered) UI elements */ +*:selected { + border: none; + border-radius: 3px; + background: #cd7ebf; + color: #fff +} diff --git a/configs/nwg-panel/hyprland-2 b/configs/nwg-panel/hyprland-2 new file mode 100644 index 0000000..261bc9a --- /dev/null +++ b/configs/nwg-panel/hyprland-2 @@ -0,0 +1,232 @@ +[ + { + "name": "bottom", + "output": "", + "layer": "overlay", + "position": "bottom", + "height": 36, + "width": "auto", + "margin-top": 0, + "margin-bottom": 0, + "padding-horizontal": 4, + "padding-vertical": 0, + "spacing": 2, + "controls": "right", + "items-padding": 0, + "css-name": "panel-bottom", + "icons": "", + "modules-left": [ + "hyprland-taskbar" + ], + "modules-center": [], + "modules-right": [ + "executor-cpuavg", + "executor-cpubar", + "clock", + "tray", + "button-help", + "button-clipman" + ], + "sway-taskbar": {}, + "controls-settings": { + "alignment": "right", + "components": [ + "brightness", + "battery", + "volume", + "processes", + "readme" + ], + "commands": { + "battery": "", + "net": "", + "bluetooth": "blueman-manager" + }, + "custom-items": [ + { + "name": "Wallpapers", + "icon": "azote", + "cmd": "azote" + }, + { + "name": "GTK settings", + "icon": "nwg-look", + "cmd": "nwg-look" + }, + { + "name": "Displays", + "icon": "nwg-displays", + "cmd": "nwg-displays" + }, + { + "name": "Panel settings", + "icon": "nwg-panel", + "cmd": "nwg-panel-config" + }, + { + "name": "Shell settings", + "icon": "nwg-shell-config", + "cmd": "nwg-shell-config" + } + ], + "menu": { + "name": "Exit", + "icon": "system-shutdown-symbolic", + "items": [ + { + "name": "Lock", + "cmd": "nwg-lock" + }, + { + "name": "Exit Hyprland session", + "cmd": "nwg-dialog -p exit-hyprland -c \"hyprctl dispatch exit\"" + }, + { + "name": "Restart", + "cmd": "nwg-dialog -p reboot -c \"systemctl reboot\"" + }, + { + "name": "Shutdown", + "cmd": "nwg-dialog -p poweroff -c \"systemctl -i poweroff\"" + } + ] + }, + "show-values": false, + "interval": 1, + "icon-size": 16, + "hover-opens": false, + "leave-closes": true, + "click-closes": true, + "css-name": "controls-window", + "net-interface": "wlan0", + "system-shutdown-symbolic": "system-shutdown", + "output-switcher": true, + "window-width": 320, + "window-margin": 0, + "battery-low-level": 0, + "root-css-name": "controls-overview", + "backlight-device": "", + "backlight-controller": "brightnessctl" + }, + "playerctl": {}, + "clock": { + "format": "%H:%M:%S", + "interval": 1, + "on-right-click": "", + "tooltip-text": "", + "on-left-click": "", + "on-middle-click": "", + "on-scroll-up": "", + "on-scroll-down": "", + "css-name": "clock", + "root-css-name": "root-clock", + "tooltip-date-format": false, + "angle": 0.0, + "calendar-path": "", + "calendar-css-name": "calendar-window", + "calendar-placement": "bottom-right", + "calendar-margin-horizontal": 0, + "calendar-margin-vertical": 0, + "calendar-icon-size": 24, + "calendar-interval": 60, + "calendar-on": true + }, + "sway-workspaces": {}, + "scratchpad": { + "css-name": "", + "icon-size": 24, + "angle": 0.0, + "single-output": false + }, + "menu-start": "left", + "menu-start-settings": { + "cmd-lock": "swaylock -f -c 000000", + "cmd-logout": "swaymsg exit", + "cmd-restart": "systemctl reboot", + "cmd-shutdown": "systemctl -i poweroff", + "autohide": true, + "file-manager": "thunar", + "height": 0, + "icon-size-large": 32, + "icon-size-small": 16, + "icon-size-button": 18, + "margin-bottom": 0, + "margin-left": 0, + "margin-right": 8, + "margin-top": 8, + "padding": 2, + "terminal": "foot", + "width": 0 + }, + "executor-cpubar": { + "script": "gopsuinfo -i g", + "tooltip-text": "", + "on-left-click": "", + "on-middle-click": "", + "on-right-click": "", + "on-scroll-up": "", + "on-scroll-down": "", + "root-css-name": "", + "css-name": "", + "icon-placement": "left", + "icon-size": 16, + "interval": 3 + }, + "executor-cpuavg": { + "script": "gopsuinfo -i a", + "tooltip-text": "", + "on-left-click": "nwg-processes", + "on-middle-click": "", + "on-right-click": "", + "on-scroll-up": "", + "on-scroll-down": "", + "root-css-name": "", + "css-name": "", + "icon-placement": "right", + "icon-size": 14, + "interval": 3 + }, + "dwl-tags": {}, + "tray": { + "icon-size": 16, + "root-css-name": "tray", + "inner-css-name": "inner-tray", + "smooth-scrolling-threshold": 0 + }, + "swaync": { + "tooltip-text": "Notifications", + "on-left-click": "swaync-client -t", + "on-middle-click": "", + "on-right-click": "", + "on-scroll-up": "", + "on-scroll-down": "", + "root-css-name": "root-executor", + "css-name": "executor", + "icon-placement": "left", + "icon-size": 16, + "interval": 1, + "always-show-icon": true + }, + "exclusive-zone": true, + "openweather": {}, + "brightness-slider": {}, + "button-help": { + "command": "nwg-shell-help", + "icon": "help-about", + "label": "", + "label-position": "right", + "tooltip": "Show/hide help [S]+F1", + "css-name": "button-custom", + "icon-size": 16 + }, + "button-clipman": { + "command": "nwg-clipman", + "icon": "nwg-clipman", + "label": "", + "label-position": "right", + "tooltip": "Clipboard history [Alt]+c", + "css-name": "button-custom", + "icon-size": 16 + } + } +] \ No newline at end of file diff --git a/configs/nwg-panel/hyprland-2.css b/configs/nwg-panel/hyprland-2.css new file mode 100644 index 0000000..3f279be --- /dev/null +++ b/configs/nwg-panel/hyprland-2.css @@ -0,0 +1,117 @@ +/***** SUGGESTED TO CHANGE CAREFULLY *****/ + +/* Recommended if panel "height" unset or smaller then your theme default button height */ +button { + margin: 2px; + background: none; + border: none +} + +/* SwayTaskBar and SwayWorkspaces use custom widgets, that need this and the next name + to highlight currently focused task / workspace. */ +#task-box { + padding-left: 4px; + padding-right: 4px +} +#task-box-focused { + background-color: rgba(255, 255, 255, 0.12); + padding-left: 4px; + padding-right: 4px +} + + +/***** MODIFY TO YOUR TASTE *****/ + +* { border-radius: 0 } + +/* Default custom button */ +#button-custom { + background: rgba(0, 0, 0, 0.0); + border: 0 +} + +#button-custom:hover { + border: none; + border-radius: 3px; + background: #cd7ebf; + color: #fff +} + +/* Top panel in sample config uses this name */ +#panel-top { + background: #030303; + border-radius: 0; + color: #eeeeee +} + +/* Bottom panel in sample config uses this name */ +#panel-bottom { + background-color: #213540; + border-radius: 0; + color: #eeeeee +} + +/* Controls window in sample config uses this name */ +#controls-window { + background-color: rgba(23, 53, 63, 0.95); + color: #eeeeee +} + +/* Executors usually behave better in monospace fonts */ +#executor-label { + font-family: DejaVu Sans Mono, monospace; + font-size: 16px +} + +/* and so does the Clock */ +#clock { + font-family: DejaVu Sans Mono, monospace; + font-size: 16px +} + +/* Sample executor-weather uses "css-name": "weather" */ +#weather { + font-size: 16px +} + +/* dwl module */ +#dwl-tag-box { + padding-top: 4px; + padding-bottom: 4px +} + +#dwl-tag-occupied { + font-family: monospace; + color: #eee; + background-color: #006699; + padding-left: 3px; + padding-right: 3px; +} + +#dwl-tag-free { + font-family: monospace; + color: #eee; + background-color: rgba(32, 50, 90, 1.0); + padding-left: 3px; + padding-right: 3px; +} + +#dwl-tag-urgent { + font-family: monospace; + color: #eee; + background-color: #ee6600; + padding-left: 3px; + padding-right: 3px; +} + +#dwl-tag-selected { + border: 2px solid #81a1c1; +} + +/* Selected (hovered) UI elements */ +*:selected { + border: none; + border-radius: 3px; + background: #cd7ebf; + color: #fff +} diff --git a/configs/nwg-panel/hyprland-3 b/configs/nwg-panel/hyprland-3 new file mode 100644 index 0000000..479996d --- /dev/null +++ b/configs/nwg-panel/hyprland-3 @@ -0,0 +1,191 @@ +[ + { + "name": "top", + "output": "", + "layer": "top", + "position": "top", + "height": 30, + "width": "auto", + "margin-top": 0, + "margin-bottom": 0, + "padding-horizontal": 0, + "padding-vertical": 0, + "spacing": 2, + "controls": "right", + "items-padding": 0, + "css-name": "panel-top", + "icons": "", + "modules-left": [ + "sway-workspaces" + ], + "modules-center": [ + "clock" + ], + "modules-right": [ + "scratchpad", + "tray", + "button-help", + "button-clipman" + ], + "controls-settings": { + "alignment": "right", + "components": [ + "brightness", + "battery", + "volume", + "processes", + "readme" + ], + "commands": { + "battery": "", + "net": "", + "bluetooth": "blueman-manager" + }, + "custom-items": [ + { + "name": "Wallpapers", + "icon": "azote", + "cmd": "azote" + }, + { + "name": "GTK settings", + "icon": "nwg-look", + "cmd": "nwg-look" + }, + { + "name": "Displays", + "icon": "nwg-displays", + "cmd": "nwg-displays" + }, + { + "name": "Panel settings", + "icon": "nwg-panel", + "cmd": "nwg-panel-config" + }, + { + "name": "Shell settings", + "icon": "nwg-shell-config", + "cmd": "nwg-shell-config" + } + ], + "menu": { + "name": "Exit", + "icon": "system-shutdown-symbolic", + "items": [ + { + "name": "Lock", + "cmd": "nwg-lock" + }, + { + "name": "Exit Hyprland session", + "cmd": "nwg-dialog -p exit-hyprland -c \"hyprctl dispatch exit\"" + }, + { + "name": "Restart", + "cmd": "nwg-dialog -p reboot -c \"systemctl reboot\"" + }, + { + "name": "Shutdown", + "cmd": "nwg-dialog -p poweroff -c \"systemctl -i poweroff\"" + } + ] + }, + "show-values": false, + "interval": 1, + "icon-size": 18, + "hover-opens": false, + "leave-closes": false, + "click-closes": true, + "css-name": "controls-window", + "net-interface": "wlo1", + "system-shutdown-symbolic": "system-shutdown", + "output-switcher": true, + "window-width": 320, + "window-margin": 0, + "battery-low-level": 0, + "root-css-name": "controls-overview", + "backlight-device": "", + "backlight-controller": "brightnessctl" + }, + "clock": { + "format": "%a, %d. %b %H:%M:%S", + "interval": 1, + "on-right-click": "", + "tooltip-text": "", + "on-left-click": "", + "on-middle-click": "", + "on-scroll-up": "", + "on-scroll-down": "", + "css-name": "clock" + }, + "sway-workspaces": { + "numbers": [ + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8" + ], + "show-icon": true, + "image-size": 16, + "show-name": true, + "name-length": 20, + "mark-autotiling": false, + "mark-content": true, + "show-layout": true + }, + "scratchpad": { + "css-name": "", + "icon-size": 20 + }, + "menu-start": "off", + "menu-start-settings": {}, + "playerctl": {}, + "sway-taskbar": {}, + "dwl-tags": {}, + "tray": { + "icon-size": 16, + "root-css-name": "tray", + "inner-css-name": "inner-tray", + "smooth-scrolling-threshold": 0 + }, + "swaync": { + "tooltip-text": "Notifications", + "on-left-click": "swaync-client -t", + "on-middle-click": "", + "on-right-click": "", + "on-scroll-up": "", + "on-scroll-down": "", + "root-css-name": "root-executor", + "css-name": "executor", + "icon-placement": "left", + "icon-size": 16, + "interval": 1, + "always-show-icon": true + }, + "exclusive-zone": true, + "openweather": {}, + "brightness-slider": {}, + "button-help": { + "command": "nwg-shell-help", + "icon": "help-about", + "label": "", + "label-position": "right", + "tooltip": "Show/hide help [S]+F1", + "css-name": "button-custom", + "icon-size": 16 + }, + "button-clipman": { + "command": "nwg-clipman", + "icon": "nwg-clipman", + "label": "", + "label-position": "right", + "tooltip": "Clipboard history [Alt]+c", + "css-name": "button-custom", + "icon-size": 16 + } + } +] \ No newline at end of file diff --git a/configs/nwg-panel/hyprland-3.css b/configs/nwg-panel/hyprland-3.css new file mode 100644 index 0000000..5d25bd7 --- /dev/null +++ b/configs/nwg-panel/hyprland-3.css @@ -0,0 +1,120 @@ +/***** SUGGESTED TO CHANGE CAREFULLY *****/ + +/* Recommended if panel "height" unset or smaller then your theme default button height */ +button { + margin: 2px; + background: none; + border: none +} + +#button-start { + background: none; + border: 0 +} + +/* WindowBox in SwayTaskBar is a custom widget, that needs this and the next name + to highlight currently focused task */ +#task-box { + padding-left: 4px; + padding-right: 4px +} +#task-box-focused { + background-color: rgba(255, 255, 255, 0.12); + padding-left: 4px; + padding-right: 4px +} + + +/***** MODIFY TO YOUR TASTE *****/ + +/* Default custom button */ +#button-custom { + background: rgba(0, 0, 0, 0.0); + border: 0 +} + +#button-custom:hover { + border: none; + border-radius: 3px; + background: #cd7ebf; + color: #fff +} + +/* Top panel in sample config uses this name */ +#panel-top { + background-color: rgba(11, 11, 11, 0.9); + border-radius: 0; + color: #eeeeee +} + +/* Bottom panel in sample config uses this name */ +#panel-bottom { + background-color: rgba(0, 0, 0, 0.9); + border-radius: 0; + color: #eeeeee +} + +/* Controls window in sample config uses this name */ +#controls-window { + background: #27132e; + border-radius: 0; + color: #eeeeee +} + +/* Executors usually behave better in monospace fonts */ +#executor-label { + font-family: DejaVu Sans Mono, monospace +} + +/* and so does the Clock */ +#clock { + font-family: DejaVu Sans Mono, monospace; + font-size: 14px +} + +/* Sample executor-weather uses "css-name": "weather" */ +#weather { + font-size: 14px +} + +/* dwl-tags */ +#dwl-tag-box { + padding-top: 4px; + padding-bottom: 4px +} + +#dwl-tag-occupied { + font-family: monospace; + color: #eee; + background-color: #006699; + padding-left: 3px; + padding-right: 3px; +} + +#dwl-tag-free { + font-family: monospace; + color: #eee; + background-color: #333; + padding-left: 3px; + padding-right: 3px; +} + +#dwl-tag-urgent { + font-family: monospace; + color: #eee; + background-color: #ee6600; + padding-left: 3px; + padding-right: 3px; +} + +#dwl-tag-selected { + border: 2px solid #81a1c1; +} + +/* Selected (hovered) UI elements */ +*:selected { + border: none; + border-radius: 3px; + background: #cd7ebf; + color: #fff +} diff --git a/configs/nwg-panel/menu-start.css b/configs/nwg-panel/menu-start.css index 874514e..05f3bf9 100644 --- a/configs/nwg-panel/menu-start.css +++ b/configs/nwg-panel/menu-start.css @@ -1,6 +1,7 @@ window { - background-color: rgba (36, 47, 79, 0.92); - color: #eeeeee + background-color: rgba(23, 53, 63, 0.95); + color: #eeeeee; + border-radius: 0 } list { @@ -9,7 +10,7 @@ list { } entry { - background-color: rgba (0, 0, 0, 0.2) + background-color: rgba(0, 0, 0, 0.2) } button { @@ -18,5 +19,5 @@ button { } button:hover { - background-color: rgba (255, 255, 255, 0.1) + background-color: rgba(255, 255, 255, 0.1) } \ No newline at end of file diff --git a/configs/nwg-panel/preset-0 b/configs/nwg-panel/preset-0 new file mode 100644 index 0000000..4bbdcb1 --- /dev/null +++ b/configs/nwg-panel/preset-0 @@ -0,0 +1,328 @@ +[ + { + "name": "top", + "output": "", + "layer": "bottom", + "position": "top", + "width": "auto", + "height": 30, + "homogeneous": true, + "margin-top": 0, + "margin-bottom": 0, + "padding-horizontal": 0, + "padding-vertical": 0, + "spacing": 2, + "items-padding": 0, + "css-name": "panel-top", + "icons": "light", + "menu-start": "off", + "modules-left": [ + "button-launcher", + "playerctl" + ], + "modules-center": [ + "clock" + ], + "modules-right": [ + "sway-mode", + "tray", + "button-help", + "button-clipman" + ], + "controls": "right", + "controls-settings": { + "alignment": "right", + "components": [ + "brightness", + "battery", + "volume", + "processes", + "readme" + ], + "commands": { + "battery": "", + "net": "", + "bluetooth": "blueman-manager" + }, + "custom-items": [ + { + "name": "Wallpapers", + "icon": "azote", + "cmd": "azote" + }, + { + "name": "GTK settings", + "icon": "nwg-look", + "cmd": "nwg-look" + }, + { + "name": "Displays", + "icon": "nwg-displays", + "cmd": "nwg-displays" + }, + { + "name": "Panel settings", + "icon": "nwg-panel", + "cmd": "nwg-panel-config" + }, + { + "name": "Shell settings", + "icon": "nwg-shell-config", + "cmd": "nwg-shell-config" + } + ], + "menu": { + "name": "Exit", + "icon": "system-shutdown-symbolic", + "items": [ + { + "name": "Lock", + "cmd": "nwg-lock" + }, + { + "name": "Exit sway session", + "cmd": "nwg-dialog -p exit-sway -c \"swaymsg exit\"" + }, + { + "name": "Restart", + "cmd": "nwg-dialog -p reboot -c \"systemctl reboot\"" + }, + { + "name": "Shutdown", + "cmd": "nwg-dialog -p poweroff -c \"systemctl -i poweroff\"" + } + ] + }, + "show-values": false, + "interval": 1, + "icon-size": 18, + "hover-opens": false, + "leave-closes": false, + "click-closes": true, + "css-name": "controls-window", + "net-interface": "wlo1", + "system-shutdown-symbolic": "system-shutdown", + "output-switcher": true, + "window-width": 320, + "window-margin": 0, + "battery-low-level": 0, + "root-css-name": "controls-overview", + "backlight-device": "", + "backlight-controller": "brightnessctl" + }, + "playerctl": { + "interval": 1, + "buttons": true, + "buttons-position": "left", + "chars": 50, + "css-name": "button-grid", + "icon-size": 16, + "button-css-name": "button-custom", + "label-css-name": "panel-top" + }, + "clock": { + "format": "%a, %d. %b %H:%M:%S", + "interval": 1, + "on-right-click": "", + "tooltip-text": "", + "on-left-click": "", + "on-middle-click": "", + "on-scroll-up": "", + "on-scroll-down": "", + "css-name": "clock", + "root-css-name": "root-clock" + }, + "sway-taskbar": {}, + "sway-workspaces": {}, + "scratchpad": {}, + "dwl-tags": {}, + "tray": { + "icon-size": 16, + "root-css-name": "tray", + "inner-css-name": "inner-tray", + "smooth-scrolling-threshold": 0 + }, + "swaync": { + "tooltip-text": "Notifications", + "on-left-click": "swaync-client -t", + "on-middle-click": "", + "on-right-click": "", + "on-scroll-up": "", + "on-scroll-down": "", + "root-css-name": "root-executor", + "css-name": "executor", + "icon-placement": "left", + "icon-size": 16, + "interval": 1, + "always-show-icon": true + }, + "exclusive-zone": true, + "openweather": {}, + "brightness-slider": {}, + "button-launcher": { + "command": "nwg-drawer", + "icon": "grid", + "label": "", + "label-position": "right", + "tooltip": "Application drawer [Alt]+F1", + "css-name": "button-custom", + "icon-size": 16 + }, + "button-help": { + "command": "nwg-shell-help", + "icon": "help-about", + "label": "", + "label-position": "right", + "tooltip": "Show/hide help [S]+F1", + "css-name": "button-custom", + "icon-size": 16 + }, + "button-clipman": { + "command": "nwg-clipman", + "icon": "nwg-clipman", + "label": "", + "label-position": "right", + "tooltip": "Clipboard history [Alt]+c", + "css-name": "button-custom", + "icon-size": 16 + }, + "sigrt": 64, + "use-sigrt": false, + "sway-mode": {}, + "hyprland-taskbar": {}, + "hyprland-workspaces": {} + }, + { + "name": "bottom", + "output": "", + "layer": "bottom", + "position": "bottom", + "height": 30, + "margin-top": 0, + "margin-bottom": 0, + "padding-horizontal": 6, + "padding-vertical": 0, + "spacing": 10, + "items-padding": 0, + "css-name": "panel-bottom", + "icons": "", + "menu-start": "off", + "width": "auto", + "controls": "off", + "controls-settings": {}, + "scratchpad": { + "css-name": "", + "icon-size": 16, + "angle": 0.0, + "single-output": false + }, + "clock": {}, + "menu-start-settings": {}, + "modules-left": [ + "sway-taskbar", + "scratchpad" + ], + "modules-center": [], + "modules-right": [ + "executor-cpuav", + "executor-cpubar", + "executor-temp", + "executor-memory", + "executor-drives" + ], + "sway-taskbar": { + "workspace-buttons": false, + "show-app-icon": true, + "show-layout": true, + "show-app-name": true, + "name-max-len": 15, + "workspaces-spacing": 0, + "task-padding": 0, + "all-outputs": false, + "image-size": 16, + "workspace-menu": [ + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8" + ], + "all-workspaces": true + }, + "executor-cpubar": { + "script": "gopsuinfo -c g", + "interval": 2, + "tooltip-text": "", + "on-left-click": "", + "on-middle-click": "", + "on-right-click": "", + "on-scroll-up": "", + "on-scroll-down": "", + "css-name": "", + "icon-size": 16, + "icon-placement": "left" + }, + "executor-cpuav": { + "script": "gopsuinfo -i a", + "interval": 2, + "tooltip-text": "CPU average load", + "on-left-click": "nwg-processes", + "on-middle-click": "", + "on-right-click": "", + "on-scroll-up": "", + "on-scroll-down": "", + "css-name": "", + "icon-size": 16, + "icon-placement": "right" + }, + "executor-temp": { + "script": "gopsuinfo -i t", + "interval": 5, + "tooltip-text": "", + "on-left-click": "", + "on-middle-click": "", + "on-right-click": "", + "on-scroll-up": "", + "on-scroll-down": "", + "css-name": "", + "icon-size": 16, + "icon-placement": "left" + }, + "executor-memory": { + "script": "gopsuinfo -i m", + "interval": 5, + "tooltip-text": "", + "on-left-click": "", + "on-middle-click": "", + "on-right-click": "", + "on-scroll-up": "", + "on-scroll-down": "", + "css-name": "", + "icon-size": 16, + "icon-placement": "left" + }, + "executor-drives": { + "script": "gopsuinfo -i n", + "interval": 15, + "tooltip-text": "", + "on-left-click": "", + "on-middle-click": "", + "on-right-click": "", + "on-scroll-up": "", + "on-scroll-down": "", + "css-name": "", + "icon-size": 16, + "icon-placement": "left" + }, + "playerctl": {}, + "sway-workspaces": {}, + "exclusive-zone": true, + "openweather": {}, + "brightness-slider": {}, + "dwl-tags": {}, + "tray": {} + } +] \ No newline at end of file diff --git a/configs/nwg-panel/preset-0.css b/configs/nwg-panel/preset-0.css new file mode 100644 index 0000000..70bb9b9 --- /dev/null +++ b/configs/nwg-panel/preset-0.css @@ -0,0 +1,119 @@ +/***** SUGGESTED TO CHANGE CAREFULLY *****/ + +/* Recommended if panel "height" unset or smaller then your theme default button height */ +button { + margin: 2px; + background: none; + border: none +} + +/* SwayTaskBar and SwayWorkspaces use custom widgets, that need this and the next name + to highlight currently focused task / workspace. */ +#task-box { + padding-left: 4px; + padding-right: 4px +} +#task-box-focused { + background-color: rgba(255, 255, 255, 0.12); + padding-left: 4px; + padding-right: 4px +} + + +/***** MODIFY TO YOUR TASTE *****/ + +/* Default custom button */ +#button-custom { + background: rgba(0, 0, 0, 0.0); + border: 0 +} + +#button-custom:hover { + border: none; + border-radius: 3px; + background: #cd7ebf; + color: #fff +} + +/* Top panel in sample config uses this name */ +#panel-top { + background: #030303; + border-radius: 0; + color: #eeeeee +} + +/* Bottom panel in sample config uses this name */ +#panel-bottom { + background-color: #030303; + border-radius: 0; + color: #eeeeee +} + +/* Controls window in sample config uses this name */ +#controls-window { + background-color: rgba(37, 37, 37, 0.95); + border-radius: 0; + border-style: solid; + border-width: 1px; + border-color: rgba(0, 0, 0, 1.0); + color: #eeeeee +} + +/* Executors usually behave better in monospace fonts */ +#executor-label { + font-family: DejaVu Sans Mono, monospace; + font-size: 16px +} + +/* and so does the Clock */ +#clock { + font-family: DejaVu Sans Mono, monospace; + font-size: 16px +} + +/* Sample executor-weather uses "css-name": "weather" */ +#weather { + font-size: 16px +} + +/* dwl module */ +#dwl-tag-box { + padding-top: 4px; + padding-bottom: 4px +} + +#dwl-tag-occupied { + font-family: monospace; + color: #eee; + background-color: #006699; + padding-left: 3px; + padding-right: 3px; +} + +#dwl-tag-free { + font-family: monospace; + color: #eee; + background-color: rgba(32, 50, 90, 1.0); + padding-left: 3px; + padding-right: 3px; +} + +#dwl-tag-urgent { + font-family: monospace; + color: #eee; + background-color: #ee6600; + padding-left: 3px; + padding-right: 3px; +} + +#dwl-tag-selected { + border: 2px solid #81a1c1; +} + +/* Selected (hovered) UI elements */ +*:selected { + border: none; + border-radius: 3px; + background: #cd7ebf; + color: #fff +} diff --git a/configs/nwg-panel/preset-1 b/configs/nwg-panel/preset-1 new file mode 100644 index 0000000..77ffd47 --- /dev/null +++ b/configs/nwg-panel/preset-1 @@ -0,0 +1,241 @@ +[ + { + "name": "top", + "output": "", + "layer": "bottom", + "position": "top", + "height": 30, + "homogeneous": true, + "margin-top": 0, + "margin-bottom": 0, + "padding-horizontal": 0, + "padding-vertical": 0, + "spacing": 2, + "controls": "right", + "items-padding": 0, + "css-name": "panel-top", + "icons": "light", + "modules-left": [ + "button-launcher", + "sway-workspaces" + ], + "modules-center": [ + "clock" + ], + "modules-right": [ + "executor-cpuav", + "executor-cpubar", + "sway-mode", + "scratchpad", + "tray", + "button-help", + "button-clipman" + ], + "sway-taskbar": {}, + "controls-settings": { + "alignment": "right", + "components": [ + "brightness", + "battery", + "volume", + "processes", + "readme" + ], + "commands": { + "battery": "", + "net": "nm-connection-editor", + "bluetooth": "blueman-manager" + }, + "custom-items": [ + { + "name": "Wallpapers", + "icon": "azote", + "cmd": "azote" + }, + { + "name": "GTK settings", + "icon": "nwg-look", + "cmd": "nwg-look" + }, + { + "name": "Displays", + "icon": "nwg-displays", + "cmd": "nwg-displays" + }, + { + "name": "Panel settings", + "icon": "nwg-panel", + "cmd": "nwg-panel-config" + }, + { + "name": "Shell settings", + "icon": "nwg-shell-config", + "cmd": "nwg-shell-config" + } + ], + "menu": { + "name": "Exit", + "icon": "system-shutdown-symbolic", + "items": [ + { + "name": "Lock", + "cmd": "nwg-lock" + }, + { + "name": "Exit sway session", + "cmd": "nwg-dialog -p exit-sway -c \"swaymsg exit\"" + }, + { + "name": "Restart", + "cmd": "nwg-dialog -p reboot -c \"systemctl reboot\"" + }, + { + "name": "Shutdown", + "cmd": "nwg-dialog -p poweroff -c \"systemctl -i poweroff\"" + } + ] + }, + "show-values": false, + "interval": 1, + "icon-size": 18, + "hover-opens": false, + "leave-closes": true, + "click-closes": false, + "css-name": "controls-window", + "net-interface": "wlo1", + "system-shutdown-symbolic": "system-shutdown", + "output-switcher": true, + "window-width": 320, + "window-margin": 6, + "battery-low-level": 0, + "backlight-device": "", + "backlight-controller": "brightnessctl", + "root-css-name": "controls-overview", + "window-margin-horizontal": 4, + "window-margin-vertical": 4, + "angle": 0.0 + }, + "playerctl": {}, + "clock": { + "format": "%a, %d. %b %H:%M:%S", + "interval": 1, + "on-right-click": "", + "tooltip-text": "", + "on-left-click": "", + "on-middle-click": "", + "on-scroll-up": "", + "on-scroll-down": "", + "css-name": "clock" + }, + "width": "auto", + "sway-workspaces": { + "numbers": [ + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8" + ], + "show-icon": true, + "image-size": 16, + "show-name": true, + "name-length": 20, + "mark-autotiling": false, + "mark-content": true, + "show-layout": true + }, + "scratchpad": { + "css-name": "", + "icon-size": 20 + }, + "menu-start": "off", + "menu-start-settings": {}, + "executor-cpuav": { + "script": "gopsuinfo -i a", + "tooltip-text": "average CPU load", + "on-left-click": "nwg-processes", + "on-middle-click": "", + "on-right-click": "", + "on-scroll-up": "", + "on-scroll-down": "", + "root-css-name": "", + "css-name": "", + "icon-placement": "right", + "icon-size": 16, + "interval": 3 + }, + "executor-cpubar": { + "script": "gopsuinfo -c g", + "tooltip-text": "", + "on-left-click": "", + "on-middle-click": "", + "on-right-click": "", + "on-scroll-up": "", + "on-scroll-down": "", + "root-css-name": "", + "css-name": "", + "icon-placement": "left", + "icon-size": 16, + "interval": 3 + }, + "dwl-tags": {}, + "tray": { + "icon-size": 16, + "root-css-name": "tray", + "inner-css-name": "inner-tray", + "smooth-scrolling-threshold": 0 + }, + "swaync": { + "tooltip-text": "Notifications", + "on-left-click": "swaync-client -t", + "on-middle-click": "", + "on-right-click": "", + "on-scroll-up": "", + "on-scroll-down": "", + "root-css-name": "root-executor", + "css-name": "executor", + "icon-placement": "left", + "icon-size": 16, + "interval": 1, + "always-show-icon": true + }, + "exclusive-zone": true, + "openweather": {}, + "brightness-slider": {}, + "button-launcher": { + "command": "nwg-drawer", + "icon": "grid", + "label": "", + "label-position": "right", + "tooltip": "Application drawer [Alt]+F1", + "css-name": "button-custom", + "icon-size": 16 + }, + "button-help": { + "command": "nwg-shell-help", + "icon": "help-about", + "label": "", + "label-position": "right", + "tooltip": "Show/hide help [S]+F1", + "css-name": "button-custom", + "icon-size": 16 + }, + "button-clipman": { + "command": "nwg-clipman", + "icon": "nwg-clipman", + "label": "", + "label-position": "right", + "tooltip": "Clipboard history [Alt]+c", + "css-name": "button-custom", + "icon-size": 16 + }, + "sigrt": 64, + "use-sigrt": false, + "sway-mode": {}, + "hyprland-taskbar": {}, + "hyprland-workspaces": {} + } +] \ No newline at end of file diff --git a/configs/nwg-panel/preset-1.css b/configs/nwg-panel/preset-1.css new file mode 100644 index 0000000..d541cc8 --- /dev/null +++ b/configs/nwg-panel/preset-1.css @@ -0,0 +1,116 @@ +/***** SUGGESTED TO CHANGE CAREFULLY *****/ + +/* Recommended if panel "height" unset or smaller then your theme default button height */ +button { + margin: 2px; + background: none; + border: none +} + +/* SwayTaskBar and SwayWorkspaces use custom widgets, that need this and the next name + to highlight currently focused task / workspace. */ +#task-box { + padding-left: 4px; + padding-right: 4px +} + +#task-box-focused { + background-color: rgba(255, 255, 255, 0.12); + padding-left: 4px; + padding-right: 4px +} + + +/***** MODIFY TO YOUR TASTE *****/ + +/* Default custom button */ +#button-custom { + background: rgba(0, 0, 0, 0.0); + border: 0 +} + +#button-custom:hover { + border: none; + border-radius: 3px; + background: #cd7ebf; + color: #fff +} + +/* Top panel in sample config uses this name */ +#panel-top { + background: #101010; + border-radius: 0; + color: #eeeeee +} + +/* Bottom panel in sample config uses this name */ +#panel-bottom { + background: #3b4559; + border-radius: 0; + color: #eeeeee +} + +/* Controls window in sample config uses this name */ +#controls-window { + border-radius: 10px; + background: #31373A; + color: #eeeeee +} + +/* Executors usually behave better in monospace fonts */ +#executor-label { + font-family: DejaVu Sans Mono, monospace +} + +/* and so does the Clock */ +#clock { + font-family: DejaVu Sans Mono, monospace; + font-size: 16px +} + +/* Sample executor-weather uses "css-name": "weather" */ +#weather { + font-size: 16px +} + +/* dwl-tags module */ +#dwl-tag-box { + padding-top: 4px; + padding-bottom: 4px +} + +#dwl-tag-occupied { + font-family: monospace; + color: #eee; + background-color: #006699; + padding-left: 3px; + padding-right: 3px; +} + +#dwl-tag-free { + font-family: monospace; + color: #eee; + background-color: rgba(32, 50, 90, 1.0); + padding-left: 3px; + padding-right: 3px; +} + +#dwl-tag-urgent { + font-family: monospace; + color: #eee; + background-color: #ee6600; + padding-left: 3px; + padding-right: 3px; +} + +#dwl-tag-selected { + border: 2px solid #81a1c1; +} + +/* Selected (hovered) UI elements */ +*:selected { + border: none; + border-radius: 3px; + background: #cd7ebf; + color: #fff +} diff --git a/configs/nwg-panel/preset-2 b/configs/nwg-panel/preset-2 new file mode 100644 index 0000000..5bb4ef6 --- /dev/null +++ b/configs/nwg-panel/preset-2 @@ -0,0 +1,249 @@ +[ + { + "name": "bottom", + "output": "", + "layer": "bottom", + "position": "bottom", + "height": 36, + "width": "auto", + "margin-top": 0, + "margin-bottom": 0, + "padding-horizontal": 4, + "padding-vertical": 0, + "spacing": 2, + "controls": "right", + "items-padding": 0, + "css-name": "panel-bottom", + "icons": "", + "modules-left": [ + "hyprland-taskbar" + ], + "modules-center": [], + "modules-right": [ + "executor-cpuavg", + "executor-cpubar", + "sway-mode", + "clock", + "tray", + "button-help", + "button-clipman" + ], + "sway-taskbar": {}, + "hyprland-taskbar": { + "name-max-len": 24, + "icon-size": 16, + "workspaces-spacing": 0, + "client-padding": 0, + "show-app-icon": true, + "show-app-name": false, + "show-app-name-special": false, + "show-layout": true, + "all-outputs": false, + "mark-xwayland": true, + "angle": 0.0, + "image-size": 24, + "task-padding": 0 + }, + "controls-settings": { + "alignment": "right", + "components": [ + "brightness", + "battery", + "volume", + "processes", + "readme" + ], + "commands": { + "battery": "", + "net": "", + "bluetooth": "blueman-manager" + }, + "custom-items": [ + { + "name": "Wallpapers", + "icon": "azote", + "cmd": "azote" + }, + { + "name": "GTK settings", + "icon": "nwg-look", + "cmd": "nwg-look" + }, + { + "name": "Displays", + "icon": "nwg-displays", + "cmd": "nwg-displays" + }, + { + "name": "Panel settings", + "icon": "nwg-panel", + "cmd": "nwg-panel-config" + }, + { + "name": "Shell settings", + "icon": "nwg-shell-config", + "cmd": "nwg-shell-config" + } + ], + "menu": { + "name": "Exit", + "icon": "system-shutdown-symbolic", + "items": [ + { + "name": "Lock", + "cmd": "nwg-lock" + }, + { + "name": "Exit sway session", + "cmd": "nwg-dialog -p exit-sway -c \"swaymsg exit\"" + }, + { + "name": "Restart", + "cmd": "nwg-dialog -p reboot -c \"systemctl reboot\"" + }, + { + "name": "Shutdown", + "cmd": "nwg-dialog -p poweroff -c \"systemctl -i poweroff\"" + } + ] + }, + "show-values": false, + "interval": 1, + "icon-size": 16, + "hover-opens": false, + "leave-closes": true, + "click-closes": false, + "css-name": "controls-window", + "net-interface": "wlan0", + "system-shutdown-symbolic": "system-shutdown", + "output-switcher": true, + "window-width": 320, + "window-margin": 0, + "battery-low-level": 0, + "root-css-name": "controls-overview", + "backlight-device": "", + "backlight-controller": "brightnessctl" + }, + "playerctl": {}, + "clock": { + "format": "%H:%M:%S", + "interval": 1, + "on-right-click": "", + "tooltip-text": "", + "on-left-click": "", + "on-middle-click": "", + "on-scroll-up": "", + "on-scroll-down": "", + "css-name": "clock", + "root-css-name": "root-clock" + }, + "sway-workspaces": {}, + "scratchpad": { + "css-name": "", + "icon-size": 24, + "angle": 0.0, + "single-output": false + }, + "menu-start": "left", + "menu-start-settings": { + "cmd-lock": "swaylock -f -c 000000", + "cmd-logout": "swaymsg exit", + "cmd-restart": "systemctl reboot", + "cmd-shutdown": "systemctl -i poweroff", + "autohide": true, + "file-manager": "thunar", + "height": 0, + "icon-size-large": 32, + "icon-size-small": 16, + "icon-size-button": 18, + "margin-bottom": 0, + "margin-left": 0, + "margin-right": 8, + "margin-top": 8, + "padding": 2, + "terminal": "foot", + "width": 0 + }, + "executor-cpubar": { + "script": "gopsuinfo -i g", + "tooltip-text": "", + "on-left-click": "", + "on-middle-click": "", + "on-right-click": "", + "on-scroll-up": "", + "on-scroll-down": "", + "root-css-name": "", + "css-name": "", + "icon-placement": "left", + "icon-size": 16, + "interval": 3 + }, + "executor-cpuavg": { + "script": "gopsuinfo -i a", + "tooltip-text": "", + "on-left-click": "nwg-processes", + "on-middle-click": "", + "on-right-click": "", + "on-scroll-up": "", + "on-scroll-down": "", + "root-css-name": "", + "css-name": "", + "icon-placement": "right", + "icon-size": 14, + "interval": 3 + }, + "dwl-tags": {}, + "tray": { + "icon-size": 16, + "root-css-name": "tray", + "inner-css-name": "inner-tray", + "smooth-scrolling-threshold": 0 + }, + "swaync": { + "tooltip-text": "Notifications", + "on-left-click": "swaync-client -t", + "on-middle-click": "", + "on-right-click": "", + "on-scroll-up": "", + "on-scroll-down": "", + "root-css-name": "root-executor", + "css-name": "executor", + "icon-placement": "left", + "icon-size": 16, + "interval": 1, + "always-show-icon": true + }, + "exclusive-zone": true, + "openweather": {}, + "brightness-slider": {}, + "button-help": { + "command": "nwg-shell-help", + "icon": "help-about", + "label": "", + "label-position": "right", + "tooltip": "Show/hide help [S]+F1", + "css-name": "button-custom", + "icon-size": 16 + }, + "button-clipman": { + "command": "nwg-clipman", + "icon": "nwg-clipman", + "label": "", + "label-position": "right", + "tooltip": "Clipboard history [Alt]+c", + "css-name": "button-custom", + "icon-size": 16 + }, + "homogeneous": true, + "sigrt": 64, + "use-sigrt": false, + "sway-mode": { + "show-default": false, + "show-icon": false, + "css-name": "", + "icon-size": 16, + "angle": 0.0 + }, + "hyprland-workspaces": {} + } +] \ No newline at end of file diff --git a/configs/nwg-panel/preset-2.css b/configs/nwg-panel/preset-2.css new file mode 100644 index 0000000..3f279be --- /dev/null +++ b/configs/nwg-panel/preset-2.css @@ -0,0 +1,117 @@ +/***** SUGGESTED TO CHANGE CAREFULLY *****/ + +/* Recommended if panel "height" unset or smaller then your theme default button height */ +button { + margin: 2px; + background: none; + border: none +} + +/* SwayTaskBar and SwayWorkspaces use custom widgets, that need this and the next name + to highlight currently focused task / workspace. */ +#task-box { + padding-left: 4px; + padding-right: 4px +} +#task-box-focused { + background-color: rgba(255, 255, 255, 0.12); + padding-left: 4px; + padding-right: 4px +} + + +/***** MODIFY TO YOUR TASTE *****/ + +* { border-radius: 0 } + +/* Default custom button */ +#button-custom { + background: rgba(0, 0, 0, 0.0); + border: 0 +} + +#button-custom:hover { + border: none; + border-radius: 3px; + background: #cd7ebf; + color: #fff +} + +/* Top panel in sample config uses this name */ +#panel-top { + background: #030303; + border-radius: 0; + color: #eeeeee +} + +/* Bottom panel in sample config uses this name */ +#panel-bottom { + background-color: #213540; + border-radius: 0; + color: #eeeeee +} + +/* Controls window in sample config uses this name */ +#controls-window { + background-color: rgba(23, 53, 63, 0.95); + color: #eeeeee +} + +/* Executors usually behave better in monospace fonts */ +#executor-label { + font-family: DejaVu Sans Mono, monospace; + font-size: 16px +} + +/* and so does the Clock */ +#clock { + font-family: DejaVu Sans Mono, monospace; + font-size: 16px +} + +/* Sample executor-weather uses "css-name": "weather" */ +#weather { + font-size: 16px +} + +/* dwl module */ +#dwl-tag-box { + padding-top: 4px; + padding-bottom: 4px +} + +#dwl-tag-occupied { + font-family: monospace; + color: #eee; + background-color: #006699; + padding-left: 3px; + padding-right: 3px; +} + +#dwl-tag-free { + font-family: monospace; + color: #eee; + background-color: rgba(32, 50, 90, 1.0); + padding-left: 3px; + padding-right: 3px; +} + +#dwl-tag-urgent { + font-family: monospace; + color: #eee; + background-color: #ee6600; + padding-left: 3px; + padding-right: 3px; +} + +#dwl-tag-selected { + border: 2px solid #81a1c1; +} + +/* Selected (hovered) UI elements */ +*:selected { + border: none; + border-radius: 3px; + background: #cd7ebf; + color: #fff +} diff --git a/configs/nwg-panel/preset-3 b/configs/nwg-panel/preset-3 new file mode 100644 index 0000000..5d6d37b --- /dev/null +++ b/configs/nwg-panel/preset-3 @@ -0,0 +1,204 @@ +[ + { + "name": "top", + "output": "", + "layer": "top", + "position": "top", + "height": 30, + "width": "auto", + "margin-top": 0, + "margin-bottom": 0, + "padding-horizontal": 0, + "padding-vertical": 0, + "spacing": 2, + "controls": "right", + "items-padding": 0, + "css-name": "panel-top", + "icons": "", + "modules-left": [ + "sway-workspaces", + "scratchpad" + ], + "modules-center": [ + "clock" + ], + "modules-right": [ + "sway-mode", + "tray", + "button-help", + "button-clipman" + ], + "controls-settings": { + "alignment": "right", + "components": [ + "brightness", + "battery", + "volume", + "processes", + "readme" + ], + "commands": { + "battery": "", + "net": "", + "bluetooth": "blueman-manager" + }, + "custom-items": [ + { + "name": "Wallpapers", + "icon": "azote", + "cmd": "azote" + }, + { + "name": "GTK settings", + "icon": "nwg-look", + "cmd": "nwg-look" + }, + { + "name": "Displays", + "icon": "nwg-displays", + "cmd": "nwg-displays" + }, + { + "name": "Panel settings", + "icon": "nwg-panel", + "cmd": "nwg-panel-config" + }, + { + "name": "Shell settings", + "icon": "nwg-shell-config", + "cmd": "nwg-shell-config" + } + ], + "menu": { + "name": "Exit", + "icon": "system-shutdown-symbolic", + "items": [ + { + "name": "Lock", + "cmd": "nwg-lock" + }, + { + "name": "Exit sway session", + "cmd": "nwg-dialog -p exit-sway -c \"swaymsg exit\"" + }, + { + "name": "Restart", + "cmd": "nwg-dialog -p reboot -c \"systemctl reboot\"" + }, + { + "name": "Shutdown", + "cmd": "nwg-dialog -p poweroff -c \"systemctl -i poweroff\"" + } + ] + }, + "show-values": false, + "interval": 1, + "icon-size": 18, + "hover-opens": false, + "leave-closes": false, + "click-closes": true, + "css-name": "controls-window", + "net-interface": "wlo1", + "system-shutdown-symbolic": "system-shutdown", + "output-switcher": true, + "window-width": 320, + "window-margin": 0, + "battery-low-level": 0, + "root-css-name": "controls-overview", + "backlight-device": "", + "backlight-controller": "brightnessctl" + }, + "clock": { + "format": "%a, %d. %b %H:%M:%S", + "interval": 1, + "on-right-click": "", + "tooltip-text": "", + "on-left-click": "", + "on-middle-click": "", + "on-scroll-up": "", + "on-scroll-down": "", + "css-name": "clock" + }, + "sway-workspaces": { + "numbers": [ + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8" + ], + "show-icon": true, + "image-size": 16, + "show-name": true, + "name-length": 20, + "mark-autotiling": false, + "mark-content": true, + "show-layout": true + }, + "scratchpad": { + "css-name": "", + "icon-size": 20 + }, + "menu-start": "off", + "menu-start-settings": {}, + "playerctl": {}, + "sway-taskbar": {}, + "dwl-tags": {}, + "tray": { + "icon-size": 16, + "root-css-name": "tray", + "inner-css-name": "inner-tray", + "smooth-scrolling-threshold": 0 + }, + "swaync": { + "tooltip-text": "Notifications", + "on-left-click": "swaync-client -t", + "on-middle-click": "", + "on-right-click": "", + "on-scroll-up": "", + "on-scroll-down": "", + "root-css-name": "root-executor", + "css-name": "executor", + "icon-placement": "left", + "icon-size": 16, + "interval": 1, + "always-show-icon": true + }, + "exclusive-zone": true, + "openweather": {}, + "brightness-slider": {}, + "button-help": { + "command": "nwg-shell-help", + "icon": "help-about", + "label": "", + "label-position": "right", + "tooltip": "Show/hide help [S]+F1", + "css-name": "button-custom", + "icon-size": 16 + }, + "button-clipman": { + "command": "nwg-clipman", + "icon": "nwg-clipman", + "label": "", + "label-position": "right", + "tooltip": "Clipboard history [Alt]+c", + "css-name": "button-custom", + "icon-size": 16 + }, + "homogeneous": true, + "sigrt": 64, + "use-sigrt": false, + "sway-mode": { + "show-default": false, + "show-icon": false, + "css-name": "", + "icon-size": 16, + "angle": 0.0 + }, + "hyprland-taskbar": {}, + "hyprland-workspaces": {} + } +] \ No newline at end of file diff --git a/configs/nwg-panel/preset-3.css b/configs/nwg-panel/preset-3.css new file mode 100644 index 0000000..5d25bd7 --- /dev/null +++ b/configs/nwg-panel/preset-3.css @@ -0,0 +1,120 @@ +/***** SUGGESTED TO CHANGE CAREFULLY *****/ + +/* Recommended if panel "height" unset or smaller then your theme default button height */ +button { + margin: 2px; + background: none; + border: none +} + +#button-start { + background: none; + border: 0 +} + +/* WindowBox in SwayTaskBar is a custom widget, that needs this and the next name + to highlight currently focused task */ +#task-box { + padding-left: 4px; + padding-right: 4px +} +#task-box-focused { + background-color: rgba(255, 255, 255, 0.12); + padding-left: 4px; + padding-right: 4px +} + + +/***** MODIFY TO YOUR TASTE *****/ + +/* Default custom button */ +#button-custom { + background: rgba(0, 0, 0, 0.0); + border: 0 +} + +#button-custom:hover { + border: none; + border-radius: 3px; + background: #cd7ebf; + color: #fff +} + +/* Top panel in sample config uses this name */ +#panel-top { + background-color: rgba(11, 11, 11, 0.9); + border-radius: 0; + color: #eeeeee +} + +/* Bottom panel in sample config uses this name */ +#panel-bottom { + background-color: rgba(0, 0, 0, 0.9); + border-radius: 0; + color: #eeeeee +} + +/* Controls window in sample config uses this name */ +#controls-window { + background: #27132e; + border-radius: 0; + color: #eeeeee +} + +/* Executors usually behave better in monospace fonts */ +#executor-label { + font-family: DejaVu Sans Mono, monospace +} + +/* and so does the Clock */ +#clock { + font-family: DejaVu Sans Mono, monospace; + font-size: 14px +} + +/* Sample executor-weather uses "css-name": "weather" */ +#weather { + font-size: 14px +} + +/* dwl-tags */ +#dwl-tag-box { + padding-top: 4px; + padding-bottom: 4px +} + +#dwl-tag-occupied { + font-family: monospace; + color: #eee; + background-color: #006699; + padding-left: 3px; + padding-right: 3px; +} + +#dwl-tag-free { + font-family: monospace; + color: #eee; + background-color: #333; + padding-left: 3px; + padding-right: 3px; +} + +#dwl-tag-urgent { + font-family: monospace; + color: #eee; + background-color: #ee6600; + padding-left: 3px; + padding-right: 3px; +} + +#dwl-tag-selected { + border: 2px solid #81a1c1; +} + +/* Selected (hovered) UI elements */ +*:selected { + border: none; + border-radius: 3px; + background: #cd7ebf; + color: #fff +} diff --git a/flake.nix b/flake.nix index b29ceb8..c762b70 100644 --- a/flake.nix +++ b/flake.nix @@ -41,7 +41,6 @@ enableSSH = false; hardware = { enable = true; - enableFingerPrint = true; }; systemStateVersion = systemStateVersion; }) diff --git a/hosts/fwbook.nix b/hosts/fwbook.nix index b5a7343..c22f2e1 100644 --- a/hosts/fwbook.nix +++ b/hosts/fwbook.nix @@ -8,6 +8,7 @@ ./fwbook.hardware-configuration.nix ]; services.fwupd.enable = true; + services.fprintd.enable = true; fileSystems."${dataDir}" = { device = "/dev/sda1"; fsType = "ext4"; @@ -29,6 +30,7 @@ rocmPackages.rocm-runtime rocmPackages.hipblas rocmPackages.llvm.clang + displaylink amdgpu_top amdctl ]; diff --git a/modules/os/hardware.nix b/modules/os/hardware.nix index 2e5d405..1a5bc6b 100644 --- a/modules/os/hardware.nix +++ b/modules/os/hardware.nix @@ -1,12 +1,7 @@ -{ enableFingerPrint ? false, ... }: { pkgs, ... }: { # Firmware Updater services.fwupd.enable = true; - services.fprintd = - if enableFingerPrint then { - enable = true; - } else { }; # Enable all license firmware hardware.enableAllFirmware = true; diff --git a/modules/os/main.nix b/modules/os/main.nix index 048bdef..78a47c5 100644 --- a/modules/os/main.nix +++ b/modules/os/main.nix @@ -24,7 +24,7 @@ ] else [ ]) ++ (if enableFonts then [ ./fonts.nix ] else [ ]) ++ (if hardware.enable then [ - (import ./hardware.nix hardware) + ./hardware.nix ] else [ ]) ++ (if enableNetowrking then [ (import ./networking.nix { hostName = hostName;