Updated config

This commit is contained in:
Eduard Urbach 2024-03-02 23:49:00 +01:00
parent 2569e705ed
commit 632694bbcd
Signed by: akyoto
GPG Key ID: C874F672B1AF20C0
10 changed files with 71 additions and 33 deletions

25
.config/dunst/dunstrc Normal file
View File

@ -0,0 +1,25 @@
[global]
font = Ubuntu Nerd Font 10
corner_radius = 10
follow = mouse
origin = top-center
offset = 0x0
frame_width = 1
frame_color = "#232323"
format = "<big>%s</big>\n<span color='#ffffff7f'>%b</span>"
[urgency_low]
background = "#232323"
foreground = "#ffffff"
timeout = 10
[urgency_normal]
background = "#232323"
foreground = "#ffffff"
timeout = 10
[urgency_critical]
background = "#d64e4e"
foreground = "#f0e0e0"
frame_color = "#d64e4e"
timeout = 0

View File

@ -1,13 +1,8 @@
exec-once = dunst
exec-once = $statusbar exec-once = $statusbar
exec-once = waypaper --restore exec-once = waypaper --restore
exec-once = dunst
exec-once = wl-paste --watch cliphist store exec-once = wl-paste --watch cliphist store
exec-once = dbus-update-activation-environment --all
exec-once = gnome-keyring-daemon --start --components=pkcs11,secrets,ssh
exec-once = [workspace 3 silent] $browser exec-once = [workspace 1 silent] $browser
exec-once = [workspace 4 silent] $terminal
exec-once = [workspace 5 silent] $terminal
exec-once = [workspace 6 silent] $terminal
exec-once = [workspace 7 silent] $files exec-once = [workspace 7 silent] $files
exec-once = [workspace 9 silent] $email exec-once = [workspace 9 silent] $email

View File

@ -1,6 +1,6 @@
# Some default env vars. # Cursor
env = XCURSOR_SIZE,24 env = XCURSOR_SIZE,24
env = TERMINAL,$terminal env = WLR_NO_HARDWARE_CURSORS,1
# Firefox # Firefox
env = MOZ_ENABLE_WAYLAND,1 env = MOZ_ENABLE_WAYLAND,1
@ -9,7 +9,10 @@ env = MOZ_ENABLE_WAYLAND,1
env = LIBVA_DRIVER_NAME,nvidia env = LIBVA_DRIVER_NAME,nvidia
env = GBM_BACKEND,nvidia-drm env = GBM_BACKEND,nvidia-drm
env = __GLX_VENDOR_LIBRARY_NAME,nvidia env = __GLX_VENDOR_LIBRARY_NAME,nvidia
env = WLR_NO_HARDWARE_CURSORS,1
# Programs
env = EDITOR,$editor
env = TERMINAL,$terminal
# Qt # Qt
env = QT_QPA_PLATFORM,wayland env = QT_QPA_PLATFORM,wayland
@ -22,4 +25,3 @@ env = SSH_AUTH_SOCK,$XDG_RUNTIME_DIR/gcr/ssh
# Wayland # Wayland
env = XDG_SESSION_TYPE,wayland env = XDG_SESSION_TYPE,wayland
env = GDK_BACKEND,wayland env = GDK_BACKEND,wayland
env = SDL_VIDEODRIVER,wayland

View File

@ -1,6 +1,6 @@
general { general {
gaps_in = 5 gaps_in = 5
gaps_out = 10 gaps_out = 20
border_size = 2 border_size = 2
col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg
col.inactive_border = rgba(595959aa) col.inactive_border = rgba(595959aa)

View File

@ -5,8 +5,8 @@ $movews = CTRL ALT
bind = $leader, T, exec, $terminal bind = $leader, T, exec, $terminal
bind = $leader, B, exec, $browser bind = $leader, B, exec, $browser
bind = $leader, E, exec, $files bind = $leader, E, exec, $files
bind = $leader, Super_L, exec, $menu
bind = $leader, L, exec, $lockscreen bind = $leader, L, exec, $lockscreen
bind = $leader, Space, exec, $menu
bind = $leader, F12, exec, $logout bind = $leader, F12, exec, $logout
bind = , Print, exec, $screenshot bind = , Print, exec, $screenshot
@ -14,8 +14,8 @@ bind = , Print, exec, $screenshot
bind = $leader, C, killactive, bind = $leader, C, killactive,
bind = $leader, F, fullscreen, bind = $leader, F, fullscreen,
bind = $leader, V, togglefloating, bind = $leader, V, togglefloating,
bind = $leader, P, pseudo, # dwindle bind = $leader, P, pseudo,
bind = $leader, J, togglesplit, # dwindle bind = $leader, J, togglesplit,
bind = $leader, M, exit, bind = $leader, M, exit,
# Move focus with leader + arrow keys # Move focus with leader + arrow keys

View File

@ -4,7 +4,7 @@ $email = geary
$files = nautilus $files = nautilus
$logout = wlogout $logout = wlogout
$lockscreen = swaylock $lockscreen = swaylock
$menu = ~/.bin/toggle-fuzzel $menu = pkill fuzzel || fuzzel
$screenshot = grim -g "$(slurp -d)" - | wl-copy $screenshot = grim -g "$(slurp -d)" - | wl-copy
$statusbar = ~/.bin/launch-waybar $statusbar = ~/.bin/launch-waybar
$terminal = alacritty $terminal = alacritty

View File

@ -1,2 +1,2 @@
windowrulev2 = tile, class:.*
windowrulev2 = suppressevent maximize, class:.* windowrulev2 = suppressevent maximize, class:.*
#windowrulev2 = tile, class:.*

View File

@ -2,39 +2,51 @@
"layer": "top", "layer": "top",
"modules-left": ["custom/os","hyprland/workspaces"], "modules-left": ["custom/os","hyprland/workspaces"],
"modules-center": ["clock"], "modules-center": ["clock"],
"modules-right": ["cpu","memory","disk","network","custom/power"], "modules-right": ["cpu","custom/gpu","memory","disk","network","custom/power"],
"clock": { "clock": {
"interval": 60, "interval": 60,
"format": "{:%a %H : %M}", "format": "{:%H : %M}",
"tooltip-format": "{:%Y-%m-%d}" "tooltip-format": "{:%A, %Y-%m-%d}",
"on-click": "date -u +'%Y-%m-%dT%H:%M:%SZ' | wl-copy"
}, },
"cpu": { "cpu": {
"interval": 2, "interval": 2,
"format": "{icon} {usage}%", "format": "{icon} {usage}%",
"format-icons": ["󰾆", "󰾅", "󰓅"], "format-icons": ["󰾆", "󰾅", "󰓅"],
"max-length": 10 "max-length": 10,
"on-click": "$TERMINAL -e btop",
},
"custom/gpu": {
"exec": "nvidia-smi --query-gpu=utilization.gpu --format=csv,noheader,nounits",
"format": " {}%",
"return-type": "",
"interval": 2,
"on-click": "$TERMINAL -e nvtop",
}, },
"memory": { "memory": {
"interval": 2, "interval": 2,
"format": " {used} GiB", "format": " {used} GiB",
"max-length": 10 "max-length": 10,
"on-click": "$TERMINAL -e btop",
}, },
"network": { "network": {
"interval": 2, "interval": 2,
"format": " {ifname}", "format": " {ifname}",
"format-wifi": " {essid}", "format-wifi": " {essid}",
"format-ethernet": " {bandwidthUpBits}  {bandwidthDownBits}", "format-ethernet": " {bandwidthUpBits}  {bandwidthDownBits}",
"format-disconnected": "", "format-disconnected": "",
"tooltip-format": "{ifname} via {gwaddr}", "tooltip-format": "{ifname} via {gwaddr}",
"tooltip-format-wifi": " {essid} ({signalStrength}%)", "tooltip-format-wifi": " {essid} ({signalStrength}%)",
"tooltip-format-ethernet": " {ifname}", "tooltip-format-ethernet": " {ifname}",
"tooltip-format-disconnected": "", "tooltip-format-disconnected": "",
"max-length": 50 "max-length": 50,
"on-click": "$TERMINAL -e nethogs",
}, },
"disk": { "disk": {
"interval": 30, "interval": 30,
"format": "󰋊 {used}", "format": "󰋊 {used}",
"path": "/" "path": "/",
"on-click": "$TERMINAL -e dua i",
}, },
"mpris": { "mpris": {
"format": "{player_icon} {title}", "format": "{player_icon} {title}",
@ -53,7 +65,7 @@
"format-muted": "", "format-muted": "",
"scroll-step": 5, "scroll-step": 5,
"on-click": "helvum", "on-click": "helvum",
"format-icons": ["", "", ""] "format-icons": ["", "", ""],
}, },
"hyprland/workspaces": { "hyprland/workspaces": {
"format": "{icon}", "format": "{icon}",
@ -66,11 +78,11 @@
"active": "", "active": "",
"default": "" "default": ""
}, },
"sort-by-number": true "sort-by-number": true,
}, },
"custom/os":{ "custom/os":{
"format": "", "format": "",
"tooltip": false, "tooltip": false,
"on-click": "alacritty --hold -e neofetch", "on-click": "$TERMINAL --hold -e neofetch",
} },
} }

View File

@ -22,23 +22,27 @@ window#waybar.hidden {
#network, #network,
#wireplumber, #wireplumber,
#workspaces, #workspaces,
#custom-os { #custom-os,
#custom-gpu {
color: @fg; color: @fg;
background: @bg; background: @bg;
margin: 0 4px; margin: 0 8px;
transition: none; transition: none;
} }
#workspaces button { #workspaces button {
padding: 0px 5px; padding: 0px 5px;
color: rgba(255, 255, 255, 0.5); color: rgba(255, 255, 255, 0.5);
background: transparent;
text-shadow: none;
} }
#workspaces button:hover,
#workspaces button.active { #workspaces button.active {
color: rgba(255, 255, 255, 1.0); color: rgba(255, 255, 255, 1.0);
} }
#custom-os { #custom-os {
font-size: 24px; font-size: 24px;
color: #89DCEB; color: rgb(137, 220, 235);
} }

2
.gitignore vendored
View File

@ -8,11 +8,11 @@
!/.config !/.config
/.config/* /.config/*
!/.config/alacritty !/.config/alacritty
!/.config/dunst
!/.config/fish !/.config/fish
!/.config/fuzzel !/.config/fuzzel
!/.config/htop !/.config/htop
!/.config/hypr !/.config/hypr
!/.config/nushell
!/.config/nvim !/.config/nvim
!/.config/swaylock !/.config/swaylock
!/.config/tmux !/.config/tmux