sway with notification center

This commit is contained in:
Dmitri 2025-11-07 08:57:38 +01:00
parent 06f4d43e7e
commit 1b31f4dd4d
Signed by: kanopo
GPG Key ID: 759ADD40E3132AC7
5 changed files with 47 additions and 6 deletions

4
.zshrc
View File

@ -13,7 +13,7 @@ plug "zap-zsh/completions"
plug "zsh-users/zsh-syntax-highlighting" plug "zsh-users/zsh-syntax-highlighting"
plug "wintermi/zsh-lsd" plug "wintermi/zsh-lsd"
plug "romkatv/powerlevel10k" plug "romkatv/powerlevel10k"
plug "zap-zsh/nvm" # plug "zap-zsh/nvm"
# #
# #
# # Load and initialise completion system # # Load and initialise completion system
@ -22,7 +22,7 @@ plug "zap-zsh/nvm"
# compinit # compinit
# # nvm initialization # # nvm initialization
source /usr/share/nvm/init-nvm.sh # source /usr/share/nvm/init-nvm.sh
alias v="nvim" alias v="nvim"
alias conservation-on="sudo ectool chargecontrol normal 80 80" alias conservation-on="sudo ectool chargecontrol normal 80 80"

View File

@ -116,7 +116,7 @@ return {
local servers = { local servers = {
texlab = {}, texlab = {},
-- clangd = {}, -- clangd = {},
-- gopls = {}, gopls = {},
-- nil_ls = {}, -- nil_ls = {},
ts_ls = {}, ts_ls = {},
lua_ls = { lua_ls = {

View File

@ -85,7 +85,7 @@ floating_modifier $mod normal
bindsym $mod+Shift+c reload bindsym $mod+Shift+c reload
# Esci da Sway (con conferma tramite swaynag) # Esci da Sway (con conferma tramite swaynag)
bindsym $mod+Shift+e exec swaynag -t warning -m 'Hai premuto la scorciatoia per uscire. Vuoi davvero uscire da Sway?' -B 'Sì, esci' 'swaymsg exit' # bindsym $mod+Shift+e exec swaynag -t warning -m 'Hai premuto la scorciatoia per uscire. Vuoi davvero uscire da Sway?' -B 'Sì, esci' 'swaymsg exit'
### Navigazione e spostamento tra finestre ### Navigazione e spostamento tra finestre
# Sposta il focus # Sposta il focus
@ -286,7 +286,8 @@ exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CU
exec dbus-update-activation-environment WAYLAND_DISPLAY DISPLAY XDG_CURRENT_DESKTOP SWAYSOCK I3SOCK XCURSOR_SIZE XCURSOR_THEME exec dbus-update-activation-environment WAYLAND_DISPLAY DISPLAY XDG_CURRENT_DESKTOP SWAYSOCK I3SOCK XCURSOR_SIZE XCURSOR_THEME
### Notifiche Desktop e Clip History ### Notifiche Desktop e Clip History
exec mako exec swaync
# exec mako
exec wl-paste --type text --watch cliphist store exec wl-paste --type text --watch cliphist store
exec wl-paste --type image --watch cliphist store exec wl-paste --type image --watch cliphist store

View File

@ -1,7 +1,11 @@
// -*- mode: jsonc -*- // -*- mode: jsonc -*-
{ {
"height": 34, // Waybar height (to be removed for auto height) "height": 34, // Waybar height (to be removed for auto height)
"modules-left": ["sway/workspaces", "sway/mode", "sway/scratchpad"], "modules-left": [
// "hyprland/workspaces",
// // "hyprland/window",
"sway/workspaces", "sway/mode", "sway/scratchpad"
],
"modules-center": ["clock"], "modules-center": ["clock"],
"modules-right": [ "modules-right": [
"idle_inhibitor", "idle_inhibitor",
@ -13,6 +17,7 @@
"backlight", "backlight",
"battery", "battery",
"tray", "tray",
"custom/notification"
], ],
"sway/mode": { "sway/mode": {
"format": "<span style=\"italic\">{}</span>", "format": "<span style=\"italic\">{}</span>",
@ -112,4 +117,24 @@
}, },
"on-click": "pavucontrol", "on-click": "pavucontrol",
}, },
"custom/notification" : {
"tooltip" : false,
"format" : "{} {icon}",
"format-icons" : {
"notification" : "󱅫",
"none" : "",
"dnd-notification" : " ",
"dnd-none" : "󰂛",
"inhibited-notification" : " ",
"inhibited-none" : "",
"dnd-inhibited-notification" : " ",
"dnd-inhibited-none" : " ",
},
"return-type" : "json",
"exec-if" : "which swaync-client",
"exec" : "swaync-client -swb",
"on-click" : "sleep 0.1 && swaync-client -t -sw",
"on-click-right" : "sleep 0.1 && swaync-client -d -sw",
"escape" : true,
}
} }

View File

@ -1,6 +1,8 @@
* { * {
font-family: "Iosevka Nerd Font", "Font Awesome 6 Free", "monospace"; font-family: "Iosevka Nerd Font", "Font Awesome 6 Free", "monospace";
font-size: 16px; font-size: 16px;
margin: 0;
padding: 0;
} }
@define-color background #282828; @define-color background #282828;
@ -25,6 +27,18 @@ window#waybar {
background-color: @background; background-color: @background;
padding: 0; padding: 0;
margin: 0; margin: 0;
margin-right: 10px;
}
.module-left * {
padding: 10px;
}
#custom-notification {
/* padding: 0 20px; */
padding-left: 10px;
padding-right: 20px;
font-size: 18px;
} }
#custom-scratch { #custom-scratch {
@ -34,6 +48,7 @@ window#waybar {
} }
#workspaces button { #workspaces button {
padding: 0 10px;
border-radius: 0px; border-radius: 0px;
color: @foreground; color: @foreground;
} }