First commit
This commit is contained in:
77
modules/desktop/wayland/config/hypr/frappe.conf
Normal file
77
modules/desktop/wayland/config/hypr/frappe.conf
Normal file
@@ -0,0 +1,77 @@
|
||||
$rosewater = rgb(f2d5cf)
|
||||
$rosewaterAlpha = f2d5cf
|
||||
|
||||
$flamingo = rgb(eebebe)
|
||||
$flamingoAlpha = eebebe
|
||||
|
||||
$pink = rgb(f4b8e4)
|
||||
$pinkAlpha = f4b8e4
|
||||
|
||||
$mauve = rgb(ca9ee6)
|
||||
$mauveAlpha = ca9ee6
|
||||
|
||||
$red = rgb(e78284)
|
||||
$redAlpha = e78284
|
||||
|
||||
$maroon = rgb(ea999c)
|
||||
$maroonAlpha = ea999c
|
||||
|
||||
$peach = rgb(ef9f76)
|
||||
$peachAlpha = ef9f76
|
||||
|
||||
$yellow = rgb(e5c890)
|
||||
$yellowAlpha = e5c890
|
||||
|
||||
$green = rgb(a6d189)
|
||||
$greenAlpha = a6d189
|
||||
|
||||
$teal = rgb(81c8be)
|
||||
$tealAlpha = 81c8be
|
||||
|
||||
$sky = rgb(99d1db)
|
||||
$skyAlpha = 99d1db
|
||||
|
||||
$sapphire = rgb(85c1dc)
|
||||
$sapphireAlpha = 85c1dc
|
||||
|
||||
$blue = rgb(8caaee)
|
||||
$blueAlpha = 8caaee
|
||||
|
||||
$lavender = rgb(babbf1)
|
||||
$lavenderAlpha = babbf1
|
||||
|
||||
$text = rgb(c6d0f5)
|
||||
$textAlpha = c6d0f5
|
||||
|
||||
$subtext1 = rgb(b5bfe2)
|
||||
$subtext1Alpha = b5bfe2
|
||||
|
||||
$subtext0 = rgb(a5adce)
|
||||
$subtext0Alpha = a5adce
|
||||
|
||||
$overlay2 = rgb(949cbb)
|
||||
$overlay2Alpha = 949cbb
|
||||
|
||||
$overlay1 = rgb(838ba7)
|
||||
$overlay1Alpha = 838ba7
|
||||
|
||||
$overlay0 = rgb(737994)
|
||||
$overlay0Alpha = 737994
|
||||
|
||||
$surface2 = rgb(626880)
|
||||
$surface2Alpha = 626880
|
||||
|
||||
$surface1 = rgb(51576d)
|
||||
$surface1Alpha = 51576d
|
||||
|
||||
$surface0 = rgb(414559)
|
||||
$surface0Alpha = 414559
|
||||
|
||||
$base = rgb(303446)
|
||||
$baseAlpha = 303446
|
||||
|
||||
$mantle = rgb(292c3c)
|
||||
$mantleAlpha = 292c3c
|
||||
|
||||
$crust = rgb(232634)
|
||||
$crustAlpha = 232634
|
||||
327
modules/desktop/wayland/config/hypr/hyprland.conf
Normal file
327
modules/desktop/wayland/config/hypr/hyprland.conf
Normal file
@@ -0,0 +1,327 @@
|
||||
################
|
||||
### MONITORS ###
|
||||
################
|
||||
|
||||
# See https://wiki.hyprland.org/Configuring/Monitors/
|
||||
monitor=,preferred,auto,auto
|
||||
|
||||
workspace = 1, monitor:HDMI-A-1
|
||||
workspace = 2, monitor:HDMI-A-1
|
||||
workspace = 3, monitor:HDMI-A-1
|
||||
workspace = 4, monitor:HDMI-A-1
|
||||
workspace = 5, monitor:HDMI-A-2
|
||||
workspace = 6, monitor:HDMI-A-2
|
||||
workspace = 7, monitor:HDMI-A-2
|
||||
workspace = 8, monitor:HDMI-A-2
|
||||
|
||||
###################
|
||||
### MY PROGRAMS ###
|
||||
###################
|
||||
|
||||
$terminal = kitty
|
||||
source = /etc/xdg/hypr/rofi.conf
|
||||
|
||||
#################
|
||||
### AUTOSTART ###
|
||||
#################
|
||||
|
||||
exec-once = waybar &
|
||||
exec-once = hyprpaper
|
||||
|
||||
#############################
|
||||
### ENVIRONMENT VARIABLES ###
|
||||
#############################
|
||||
|
||||
env = LIBVA_DRIVER_NAME,nvidia
|
||||
env = __GLX_VENDOR_LIBRARY_NAME,nvidia
|
||||
env = XCURSOR_SIZE,24
|
||||
env = HYPRCURSOR_SIZE,24
|
||||
|
||||
###################
|
||||
### PERMISSIONS ###
|
||||
###################
|
||||
|
||||
# permission = /usr/(bin|local/bin)/grim, screencopy, allow
|
||||
# permission = /usr/(lib|libexec|lib64)/xdg-desktop-portal-hyprland, screencopy, allow
|
||||
# permission = /usr/(bin|local/bin)/hyprpm, plugin, allow
|
||||
|
||||
|
||||
#####################
|
||||
### LOOK AND FEEL ###
|
||||
#####################
|
||||
|
||||
general {
|
||||
gaps_in = 5
|
||||
gaps_out = 10
|
||||
|
||||
border_size = 2
|
||||
|
||||
# https://wiki.hyprland.org/Configuring/Variables/#variable-types for info about colors
|
||||
# col.active_border = rgb(81c8be) rgb(8caaee) 45deg
|
||||
col.active_border = rgb(81c8be)
|
||||
col.inactive_border = rgb(737994)
|
||||
|
||||
# Set to true enable resizing windows by clicking and dragging on borders and gaps
|
||||
resize_on_border = false
|
||||
|
||||
# Please see https://wiki.hyprland.org/Configuring/Tearing/ before you turn this on
|
||||
allow_tearing = false
|
||||
|
||||
layout = dwindle
|
||||
}
|
||||
|
||||
# https://wiki.hyprland.org/Configuring/Variables/#decoration
|
||||
decoration {
|
||||
rounding = 10
|
||||
rounding_power = 2
|
||||
|
||||
# Change transparency of focused and unfocused windows
|
||||
active_opacity = 0.95
|
||||
inactive_opacity = 0.80
|
||||
|
||||
shadow {
|
||||
enabled = false
|
||||
range = 4
|
||||
render_power = 3
|
||||
color = rgba(1a1a1aee)
|
||||
}
|
||||
|
||||
# https://wiki.hyprland.org/Configuring/Variables/#blur
|
||||
blur {
|
||||
enabled = true
|
||||
size = 3
|
||||
passes = 1
|
||||
|
||||
vibrancy = 0.1696
|
||||
}
|
||||
}
|
||||
|
||||
# https://wiki.hypr.land/Configuring/Variables/#group
|
||||
group {
|
||||
col.border_active = rgb(81c8be) # Violet par exemple
|
||||
col.border_inactive = rgb(737994) # Gris par exemple
|
||||
col.border_locked_active = rgb(81c8be) # Rose
|
||||
col.border_locked_inactive = rgb(737994) # Gris foncé
|
||||
groupbar {
|
||||
font_family = CaskaydiaCove Nerd Font
|
||||
font_size = 16
|
||||
font_weight_active = bold
|
||||
font_weight_inactive = normal
|
||||
indicator_gap = 5
|
||||
indicator_height = 2
|
||||
text_color = rgb(81c8be)
|
||||
col.active = rgb(81c8be)
|
||||
col.inactive = rgb(737994)
|
||||
col.locked_inactive = rgb(737994)
|
||||
gaps_in = 10
|
||||
gaps_out = 5
|
||||
}
|
||||
}
|
||||
|
||||
# https://wiki.hyprland.org/Configuring/Variables/#animations
|
||||
animations {
|
||||
enabled = true, please :)
|
||||
|
||||
# Default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more
|
||||
|
||||
bezier = easeOutQuint,0.23,1,0.32,1
|
||||
bezier = easeInOutCubic,0.65,0.05,0.36,1
|
||||
bezier = linear,0,0,1,1
|
||||
bezier = almostLinear,0.5,0.5,0.75,1.0
|
||||
bezier = quick,0.15,0,0.1,1
|
||||
|
||||
animation = global, 1, 10, default
|
||||
animation = border, 1, 5.39, easeOutQuint
|
||||
animation = windows, 1, 4.79, easeOutQuint
|
||||
animation = windowsIn, 1, 4.1, easeOutQuint, popin 87%
|
||||
animation = windowsOut, 1, 1.49, linear, popin 87%
|
||||
animation = fadeIn, 1, 1.73, almostLinear
|
||||
animation = fadeOut, 1, 1.46, almostLinear
|
||||
animation = fade, 1, 3.03, quick
|
||||
animation = layers, 1, 3.81, easeOutQuint
|
||||
animation = layersIn, 1, 4, easeOutQuint, fade
|
||||
animation = layersOut, 1, 1.5, linear, fade
|
||||
animation = fadeLayersIn, 1, 1.79, almostLinear
|
||||
animation = fadeLayersOut, 1, 1.39, almostLinear
|
||||
animation = workspaces, 1, 1.94, almostLinear, slidefade
|
||||
}
|
||||
|
||||
# Ref https://wiki.hyprland.org/Configuring/Workspace-Rules/
|
||||
# "Smart gaps" / "No gaps when only"
|
||||
# uncomment all if you wish to use that.
|
||||
# workspace = w[tv1], gapsout:0, gapsin:0
|
||||
# workspace = f[1], gapsout:0, gapsin:0
|
||||
# windowrule = bordersize 0, floating:0, onworkspace:w[tv1]
|
||||
# windowrule = rounding 0, floating:0, onworkspace:w[tv1]
|
||||
# windowrule = bordersize 0, floating:0, onworkspace:f[1]
|
||||
# windowrule = rounding 0, floating:0, onworkspace:f[1]
|
||||
|
||||
# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
|
||||
dwindle {
|
||||
pseudotile = true # Master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
|
||||
preserve_split = true # You probably want this
|
||||
force_split = 2
|
||||
}
|
||||
|
||||
# See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
|
||||
master {
|
||||
new_status = master
|
||||
}
|
||||
|
||||
# https://wiki.hyprland.org/Configuring/Variables/#misc
|
||||
misc {
|
||||
force_default_wallpaper = -1 # Set to 0 or 1 to disable the anime mascot wallpapers
|
||||
disable_hyprland_logo = false # If true disables the random hyprland logo / anime girl background. :(
|
||||
}
|
||||
|
||||
|
||||
#############
|
||||
### INPUT ###
|
||||
#############
|
||||
|
||||
# https://wiki.hyprland.org/Configuring/Variables/#input
|
||||
input {
|
||||
kb_layout = qwerty-fr
|
||||
kb_variant =
|
||||
kb_model =
|
||||
kb_options =
|
||||
kb_rules =
|
||||
|
||||
follow_mouse = 1
|
||||
|
||||
sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
|
||||
|
||||
touchpad {
|
||||
natural_scroll = false
|
||||
}
|
||||
|
||||
numlock_by_default = true
|
||||
}
|
||||
|
||||
# https://wiki.hyprland.org/Configuring/Variables/#gestures
|
||||
gestures {
|
||||
workspace_swipe = false
|
||||
}
|
||||
|
||||
# Example per-device config
|
||||
# See https://wiki.hyprland.org/Configuring/Keywords/#per-device-input-configs for more
|
||||
device {
|
||||
name = epic-mouse-v1
|
||||
sensitivity = -0.5
|
||||
}
|
||||
|
||||
|
||||
###################
|
||||
### KEYBINDINGS ###
|
||||
###################
|
||||
|
||||
$mainMod = SUPER # Sets "Windows" key as main modifier
|
||||
# Apps shortcut
|
||||
bind = $mainMod, D, exec, $rofi
|
||||
bind = $mainMod, L, exec, /etc/xdg/scripts/wayland-disconnect.sh
|
||||
bind = $mainMod, M, exec, /etc/xdg/scripts/wayland-mpv.sh
|
||||
bind = $mainMod SHIFT, P, exec, pavucontrol
|
||||
bind = $mainMod SHIFT, T, exec, teams-for-linux
|
||||
bind = $mainMod SHIFT, D, exec, discord
|
||||
bind = $mainMod SHIFT, F, exec, firefox
|
||||
bind = $mainMod SHIFT, S, exec, steam
|
||||
bind = $mainMod SHIFT, L, exec, lutris
|
||||
bind = ,Print, exec, grim -g "$(slurp)" - | swappy -f -
|
||||
|
||||
# Reload Restart config | moved to rofi
|
||||
bind = $mainMod, E, exit,
|
||||
|
||||
# Kill focused window
|
||||
bind = $mainMod, Return, exec, $terminal
|
||||
|
||||
# Créer un groupe
|
||||
bind = SUPER, G, togglegroup
|
||||
# Naviguer dans le groupe
|
||||
bind = SUPER, TAB, changegroupactive
|
||||
|
||||
bind = $mainMod, Q, killactive,
|
||||
bind = $mainMod, F, fullscreenstate, 3
|
||||
bind = $mainMod, V, togglefloating,
|
||||
bind = $mainMod, SPACE, togglesplit, # dwindle
|
||||
|
||||
# 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
|
||||
|
||||
# Déplacement de fenêtres avec CONTROL + flèches
|
||||
bind = $mainMod CONTROL, left, movewindow, l
|
||||
bind = $mainMod CONTROL, right, movewindow, r
|
||||
bind = $mainMod CONTROL, up, movewindow, u
|
||||
bind = $mainMod CONTROL, down, movewindow, d
|
||||
|
||||
# Navigation workspace avec keypad (NumLock OFF)
|
||||
bind = $mainMod, KP_End, workspace, 1
|
||||
bind = $mainMod, KP_Down, workspace, 2
|
||||
bind = $mainMod, KP_Next, workspace, 3
|
||||
bind = $mainMod, KP_Left, workspace, 4
|
||||
bind = $mainMod, KP_Begin, workspace, 5
|
||||
bind = $mainMod, KP_Right, workspace, 6
|
||||
bind = $mainMod, KP_Home, workspace, 7
|
||||
bind = $mainMod, KP_Up, workspace, 8
|
||||
|
||||
# Déplacement de fenêtre avec keypad
|
||||
bind = $mainMod CONTROL, KP_End, movetoworkspacesilent, 1
|
||||
bind = $mainMod CONTROL, KP_Down, movetoworkspacesilent, 2
|
||||
bind = $mainMod CONTROL, KP_Next, movetoworkspacesilent, 3
|
||||
bind = $mainMod CONTROL, KP_Left, movetoworkspacesilent, 4
|
||||
bind = $mainMod CONTROL, KP_Begin, movetoworkspacesilent, 5
|
||||
bind = $mainMod CONTROL, KP_Right, movetoworkspacesilent, 6
|
||||
bind = $mainMod CONTROL, KP_Home, movetoworkspacesilent, 7
|
||||
bind = $mainMod CONTROL, KP_Up, movetoworkspacesilent, 8
|
||||
|
||||
# Example special workspace (scratchpad)
|
||||
bind = $mainMod, S, togglespecialworkspace, magic
|
||||
bind = $mainMod CONTROL, S, movetoworkspacesilent, special:magic
|
||||
|
||||
# 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
|
||||
|
||||
# Laptop multimedia keys for volume and LCD brightness
|
||||
bindel = ,XF86AudioRaiseVolume, exec, wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+
|
||||
bindel = ,XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
|
||||
bindel = ,XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
|
||||
bindel = ,XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle
|
||||
bindel = ,XF86MonBrightnessUp, exec, brightnessctl -e4 -n2 set 5%+
|
||||
bindel = ,XF86MonBrightnessDown, exec, brightnessctl -e4 -n2 set 5%-
|
||||
|
||||
# Requires playerctl
|
||||
bindl = , XF86AudioNext, exec, playerctl next
|
||||
bindl = , XF86AudioPause, exec, playerctl play-pause
|
||||
bindl = , XF86AudioPlay, exec, playerctl play-pause
|
||||
bindl = , XF86AudioPrev, exec, playerctl previous
|
||||
|
||||
##############################
|
||||
### WINDOWS AND WORKSPACES ###
|
||||
##############################
|
||||
|
||||
# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
|
||||
# See https://wiki.hyprland.org/Configuring/Workspace-Rules/ for workspace rules
|
||||
|
||||
# Example windowrule
|
||||
# windowrule = float,class:^(kitty)$,title:^(kitty)$
|
||||
|
||||
# Ignore maximize requests from apps. You'll probably like this.
|
||||
windowrule = suppressevent maximize, class:.*
|
||||
|
||||
# Fix some dragging issues with XWayland
|
||||
windowrule = nofocus,class:^$,title:^$,xwayland:1,floating:1,fullscreen:0,pinned:0
|
||||
|
||||
# Supprimer la transparence pour des applications spécifiques
|
||||
windowrulev2 = opacity 1.0 override,class:firefox
|
||||
windowrulev2 = opacity 1.0 override,class:^(chromium)$
|
||||
windowrulev2 = opacity 1.0 override,class:^(mpv)$
|
||||
windowrulev2 = opacity 1.0 override,class:^(mpv)$
|
||||
|
||||
windowrulev2 = fullscreen,class:^(mpv)$
|
||||
100
modules/desktop/wayland/config/hypr/hyprlock.conf
Normal file
100
modules/desktop/wayland/config/hypr/hyprlock.conf
Normal file
@@ -0,0 +1,100 @@
|
||||
source = /etc/xdg/hypr/frappe.conf
|
||||
|
||||
$accent = $mauve
|
||||
$accentAlpha = $mauveAlpha
|
||||
$font = JetBrainsMono Nerd Font
|
||||
|
||||
# GENERAL
|
||||
general {
|
||||
hide_cursor = true
|
||||
}
|
||||
|
||||
# BACKGROUND
|
||||
background {
|
||||
monitor =
|
||||
path = screenshot
|
||||
blur_passes = 2
|
||||
color = $base
|
||||
}
|
||||
|
||||
# LAYOUT
|
||||
label {
|
||||
monitor =
|
||||
text = Layout: $LAYOUT
|
||||
color = $blue
|
||||
font_size = 15
|
||||
font_family = $font
|
||||
position = 30, -30
|
||||
halign = left
|
||||
valign = top
|
||||
}
|
||||
|
||||
# TIME
|
||||
label {
|
||||
monitor =
|
||||
text = $TIME
|
||||
color = $blue
|
||||
font_size = 90
|
||||
font_family = $font
|
||||
position = -30, 0
|
||||
halign = right
|
||||
valign = top
|
||||
}
|
||||
|
||||
# DATE
|
||||
label {
|
||||
monitor =
|
||||
text = cmd[update:43200000] date +"%A, %d %B %Y"
|
||||
color = $sapphire
|
||||
font_size = 25
|
||||
font_family = $font
|
||||
position = -30, -150
|
||||
halign = right
|
||||
valign = top
|
||||
}
|
||||
|
||||
# FINGERPRINT
|
||||
{
|
||||
monitor = "";
|
||||
text = "$FPRINTPROMPT";
|
||||
color = "$text";
|
||||
font_size = 14;
|
||||
font_family = $font;
|
||||
position = "0, -107";
|
||||
halign = "center";
|
||||
valign = "center";
|
||||
}
|
||||
|
||||
# USER AVATAR
|
||||
image {
|
||||
monitor =
|
||||
path = $HOME/.face
|
||||
size = 100
|
||||
border_color = $accent
|
||||
position = 0, 75
|
||||
halign = center
|
||||
valign = center
|
||||
}
|
||||
|
||||
# INPUT FIELD
|
||||
input-field {
|
||||
monitor =
|
||||
size = 300, 60
|
||||
outline_thickness = 4
|
||||
dots_size = 0.2
|
||||
dots_spacing = 0.2
|
||||
dots_center = true
|
||||
outer_color = $sky
|
||||
inner_color = $surface0
|
||||
font_color = $teal
|
||||
fade_on_empty = false
|
||||
placeholder_text = <span foreground="##$textAlpha"><i> Logged in as </i><span foreground="##$tealAlpha">$USER</span></span>
|
||||
hide_input = false
|
||||
check_color = $accent
|
||||
fail_color = $red
|
||||
fail_text = <i>$FAIL <b>($ATTEMPTS)</b></i>
|
||||
capslock_color = $yellow
|
||||
position = 0, -47
|
||||
halign = center
|
||||
valign = center
|
||||
}
|
||||
2
modules/desktop/wayland/config/hypr/hyprpaper.conf
Normal file
2
modules/desktop/wayland/config/hypr/hyprpaper.conf
Normal file
@@ -0,0 +1,2 @@
|
||||
preload = ~/Downloads/wallpaper1.jpg
|
||||
wallpaper = , ~/Downloads/wallpaper1.jpg
|
||||
26
modules/desktop/wayland/config/scripts/update.sh
Executable file
26
modules/desktop/wayland/config/scripts/update.sh
Executable file
@@ -0,0 +1,26 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
cd ~/nixos-dotfiles || exit
|
||||
|
||||
# Obtenir le hash actuel
|
||||
current_hash=$(nix flake metadata --json 2>/dev/null | jq -r '.locks.nodes.nixpkgs.locked.rev')
|
||||
|
||||
# Obtenir le hash le plus récent
|
||||
latest_hash=$(nix flake metadata github:NixOS/nixpkgs/nixos-unstable --json | jq -r '.locked.rev')
|
||||
|
||||
# Date du commit local
|
||||
local_commit_date=$(nix flake metadata --json 2>/dev/null | jq -r '.locks.nodes.nixpkgs.locked.lastModified')
|
||||
local_commit_date=$(date -d "@${local_commit_date}" "+%d/%m/%Y à %H:%M")
|
||||
|
||||
if [ "$current_hash" != "$latest_hash" ]; then
|
||||
# Nombre de commits de retard
|
||||
maj_count=$(curl -s "https://api.github.com/repos/NixOS/nixpkgs/compare/${current_hash}...${latest_hash}" | jq -r '.ahead_by // 0' 2>/dev/null || echo "?")
|
||||
|
||||
# Date du commit distant
|
||||
remote_commit_date=$(curl -s https://api.github.com/repos/NixOS/nixpkgs/commits/c87b95e25065c028d31a94f06a62927d18763fdf | jq -r '.commit.author.date')
|
||||
remote_commit_date=$(date -d "${remote_commit_date}" "+%d/%m/%Y à %H:%M")
|
||||
printf '{"text": "%s ", "tooltip": "Commit distant : %s\\nCommit local : %s"}' "${maj_count}" "${remote_commit_date}" "${local_commit_date}"
|
||||
# Compter les commits entre les deux
|
||||
else
|
||||
printf '{"text": "0 ", "tooltip": "Date du dernier commit :\\n%s"}' "${local_commit_date}"
|
||||
fi
|
||||
26
modules/desktop/wayland/config/waybar/colors.css
Normal file
26
modules/desktop/wayland/config/waybar/colors.css
Normal file
@@ -0,0 +1,26 @@
|
||||
@define-color rosewater #f2d5cf;
|
||||
@define-color flamingo #eebebe;
|
||||
@define-color pink #f4b8e4;
|
||||
@define-color mauve #ca9ee6;
|
||||
@define-color red #e78284;
|
||||
@define-color maroon #ea999c;
|
||||
@define-color peach #ef9f76;
|
||||
@define-color yellow #e5c890;
|
||||
@define-color green #a6d189;
|
||||
@define-color teal #81c8be;
|
||||
@define-color sky #99d1db;
|
||||
@define-color sapphire #85c1dc;
|
||||
@define-color blue #8caaee;
|
||||
@define-color lavender #babbf1;
|
||||
@define-color text #c6d0f5;
|
||||
@define-color subtext1 #b5bfe2;
|
||||
@define-color subtext0 #a5adce;
|
||||
@define-color overlay2 #949cbb;
|
||||
@define-color overlay1 #838ba7;
|
||||
@define-color overlay0 #737994;
|
||||
@define-color surface2 #626880;
|
||||
@define-color surface1 #51576d;
|
||||
@define-color surface0 #414559;
|
||||
@define-color base #303446;
|
||||
@define-color mantle #292c3c;
|
||||
@define-color crust #232634;
|
||||
101
modules/desktop/wayland/config/waybar/config.jsonc
Normal file
101
modules/desktop/wayland/config/waybar/config.jsonc
Normal file
@@ -0,0 +1,101 @@
|
||||
{
|
||||
"position": "top",
|
||||
"reload_style_on_change": true,
|
||||
"modules-left": [
|
||||
"custom/logo",
|
||||
"cpu",
|
||||
"memory",
|
||||
"disk",
|
||||
"network",
|
||||
"pulseaudio",
|
||||
],
|
||||
"modules-center": [
|
||||
"hyprland/workspaces"
|
||||
],
|
||||
"modules-right": [
|
||||
"custom/maj",
|
||||
"clock",
|
||||
"tray"
|
||||
],
|
||||
"custom/logo": {
|
||||
"format": "{icon}",
|
||||
"format-icons": {
|
||||
"default": " "
|
||||
}
|
||||
},
|
||||
"cpu": {
|
||||
"format": " {usage}% ",
|
||||
"tooltip": true
|
||||
},
|
||||
"memory": {
|
||||
"format": " {percentage}% ",
|
||||
"tooltip": true,
|
||||
"tooltip-format": "asd: {used:0.2f} G / {total:0.2f} G"
|
||||
},
|
||||
"disk": {
|
||||
"interval": 300,
|
||||
"format": " {percentage_free}% ",
|
||||
"path": "/"
|
||||
},
|
||||
"network": {
|
||||
"format-wifi": "<span size='12000'> </span>{essid} ",
|
||||
"format-ethernet": " {ipaddr} ",
|
||||
"tooltip-format": " {bandwidthUpBytes} {bandwidthDownBytes}",
|
||||
"format-linked": " {ifname} (No IP) ",
|
||||
"format-disconnected": " Disconnected ",
|
||||
"format-alt": " {signalStrength}% ",
|
||||
"interval": 1
|
||||
},
|
||||
"pulseaudio": {
|
||||
"format": "{icon}{volume}% ",
|
||||
"format-muted": " 0% ",
|
||||
"format-icons": {
|
||||
"headphone": " ",
|
||||
"hands-free": " ",
|
||||
"headset": " ",
|
||||
"phone": " ",
|
||||
"portable": " ",
|
||||
"car": " ",
|
||||
"default": [
|
||||
" ",
|
||||
" ",
|
||||
" "
|
||||
]
|
||||
},
|
||||
"on-click-right": "pavucontrol -t 3",
|
||||
"on-click": "pactl -- set-sink-mute 0 toggle",
|
||||
"tooltip": false,
|
||||
"tooltip-format": "{volume}%",
|
||||
"scroll-step": 5.0,
|
||||
},
|
||||
"hyprland/workspaces": {
|
||||
"disable-scroll": false,
|
||||
"all-outputs": false,
|
||||
"on-click": "activate",
|
||||
"persistent-workspaces": {
|
||||
"HDMI-A-1": [1, 2, 3, 4],
|
||||
"HDMI-A-2": [5, 6, 7, 8],
|
||||
},
|
||||
"format": "{name}",
|
||||
"format-icons": {
|
||||
"default": "",
|
||||
},
|
||||
},
|
||||
"custom/maj": {
|
||||
"exec": "/etc/xdg/scripts/update.sh",
|
||||
"interval": 300,
|
||||
"return-type": "json",
|
||||
"format": "{icon}{text}",
|
||||
"format-icons": {
|
||||
"default": " "
|
||||
}
|
||||
},
|
||||
"clock": {
|
||||
"format": " {:%a %d %H:%M} ",
|
||||
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>"
|
||||
},
|
||||
"tray": {
|
||||
"icon-size": 18,
|
||||
"spacing": 6
|
||||
}
|
||||
}
|
||||
116
modules/desktop/wayland/config/waybar/style.css
Normal file
116
modules/desktop/wayland/config/waybar/style.css
Normal file
@@ -0,0 +1,116 @@
|
||||
@import "colors.css";
|
||||
|
||||
* {
|
||||
/*font-family: "Font Awesome 6 Free Solid", "Font Awesome 6 Free Regular", "Font Awesome 6 Brands Regular", "CaskaydiaCove Nerd Font Propo";*/
|
||||
font-family: "CaskaydiaCove Nerd Font Propo";
|
||||
font-size: 16px;
|
||||
font-weight: bold;
|
||||
min-height: 0px;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#waybar {
|
||||
color: @text;
|
||||
border: none;
|
||||
box-shadow: none;
|
||||
background-color: rgba(48, 52, 70, 0);
|
||||
}
|
||||
|
||||
#custom-logo,
|
||||
#cpu,
|
||||
#memory,
|
||||
#disk,
|
||||
#network,
|
||||
#workspaces,
|
||||
#custom-maj,
|
||||
#pulseaudio,
|
||||
#memory,
|
||||
#clock,
|
||||
#tray {
|
||||
border-radius: 10px;
|
||||
background-color: rgba(48, 52, 70, 0.8);
|
||||
margin: 10px 10px 0px 10px;
|
||||
border: @overlay0 2px solid;
|
||||
}
|
||||
|
||||
#custom-settings {
|
||||
color: @pink;
|
||||
}
|
||||
|
||||
#custom-lockscreen {
|
||||
color: @green;
|
||||
}
|
||||
|
||||
#workspaces {
|
||||
padding: 0 5px;
|
||||
min-width: 152px;
|
||||
}
|
||||
|
||||
#workspaces button {
|
||||
background-color: @overlay0;
|
||||
margin: 5px 5px;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
#workspaces button:hover,
|
||||
#workspaces button.empty:hover,
|
||||
#workspaces button.active:hover,
|
||||
#workspaces button.visible:hover,
|
||||
#workspaces button.urgent:hover {
|
||||
background: @overlay2;
|
||||
border: 0px solid @red;
|
||||
}
|
||||
|
||||
#workspaces button label {
|
||||
color: @teal;
|
||||
opacity: 0;
|
||||
padding: 1px 6px 0px 6px;
|
||||
transition: padding 0.2s;
|
||||
}
|
||||
|
||||
#workspaces button.visible label {
|
||||
opacity: 1;
|
||||
padding: 1px 20px;
|
||||
transition: padding 0.2s;
|
||||
}
|
||||
|
||||
#workspaces button.empty {
|
||||
background: @surface0;
|
||||
}
|
||||
|
||||
#workspaces button.active {
|
||||
background: @overlay1;
|
||||
}
|
||||
|
||||
#workspaces button.visible {
|
||||
background: @overlay0;
|
||||
}
|
||||
|
||||
#workspaces button.urgent {
|
||||
background: @red;
|
||||
}
|
||||
|
||||
#network {
|
||||
color: @pink;
|
||||
}
|
||||
|
||||
#pulseaudio {
|
||||
color: @yellow;
|
||||
}
|
||||
|
||||
#cpu {
|
||||
color: @blue;
|
||||
}
|
||||
|
||||
#memory {
|
||||
color: @green;
|
||||
}
|
||||
|
||||
#clock {
|
||||
color: @red;
|
||||
}
|
||||
|
||||
#tray {
|
||||
padding: 0 8px 0 10px;
|
||||
}
|
||||
Reference in New Issue
Block a user