I just wanna tell you how I'm feeling

This commit is contained in:
Matthieu Fortin (CPC/CCP) 2024-12-18 14:47:40 -05:00
parent 6e04cc74d6
commit 29f198f89a
6 changed files with 240 additions and 3 deletions

View file

@ -35,7 +35,7 @@ exec-once=wl-paste --type image --watch cliphist store
exec-once=~/.config/hypr/hypridle_launch.sh
exec-once=swww-daemon
exec-once=hyprshade on vibrance
exec-once=waybar
exec-once=~/.config/hypr/waybar_launch.sh
exec-once=~/.config/hypr/xdg-desktop-portal.sh
exec-once=kanshi
exec-once=wlsunset -l 45.424721 -L -75.695000

View file

@ -118,7 +118,7 @@ bind = $mainMod, Escape, exec, wlogout # Session logout
bind = CTRL ALT, P, exec, "$HOME/.config/hypr/scripts/Wlogout.sh" # Session logout
# Waybar
bind = CTRL, Escape, exec, killall waybar || waybar # Toggle waybar
bind = CTRL, Escape, exec, killall waybar || ~/.config/hypr/waybar_launch.sh # Toggle waybar
# Screenshot

View file

@ -0,0 +1,16 @@
#!/bin/bash
# Define the desired hostname to compare
EXPECTED_HOSTNAME="dell7770-linux"
# Get the current hostname
CURRENT_HOSTNAME=$(hostname)
# Check if the current hostname is not equal to the expected hostname
if [[ "$CURRENT_HOSTNAME" != "$EXPECTED_HOSTNAME" ]]; then
waybar &
# notify-send "$EXPECTED_HOSTNAME // $CURRENT_HOSTNAME"
# notify-send "hypridle launched!!"
else
waybar --config ~/.config/waybar/config-laptop.jsonc
fi

View file

@ -0,0 +1,208 @@
{
"layer": "top",
"position": "top",
"mode": "dock",
"exclusive": true,
"passthrough": false,
"gtk-layer-shell": true,
"height": 40,
"modules-left": [
"custom/launcher",
"custom/hostname",
"hyprland/workspaces"
],
"modules-right": [
"custom/updates",
"memory",
"cpu",
"network",
"backlight",
"battery",
"idle_inhibitor",
"wireplumber",
"hyprland/language",
"custom/notification",
"tray",
"clock"
],
"backlight": {
"device": "intel_backlight",
"format": "{icon} {percent}%",
"format-icons": ["󰃞", "󰃟", "󰃠"],
"on-scroll-up": "brightnessctl set 1%+",
"on-scroll-down": "brightnessctl set 1%-",
"min-length": 6
},
"battery": {
"states": {
"good": 95,
"warning": 30,
"critical": 20
},
"format": "{icon} {capacity}%",
"format-charging": " {capacity}%",
"format-plugged": " {capacity}%",
"format-alt": "{time} {icon}",
"format-icons": ["󰂃", "󰁺", "󰁻", "󰁼", "󰁽", "󰁾", "󰁿", "󰂀", "󰂁", "󰂂", "󰁹"]
},
"hyprland/language" :{
//
"format": "{} ",
"format-en": "",
"format-fr": "󱌃"
},
"custom/hostname" :{
"format": "{}",
"return-type":"text",
"exec": "hostnamectl hostname"
},
"custom/updates": {
"format": "{} ",
"interval": 3600,
"exec": "checkupdates | wc -l",
"exec-if": "exit 0",
"on-click": "kitty --class update paru; pkill -SIGRTMIN+8 waybar",
"signal": 8
// "format": "{} {icon}",
// "return-type": "json",
// "format-icons": {
// "has-updates": "󱍷",
// "updated": "󰂪",
// "updated": "󰂪",
// "interval": 3600,
// },
// "exec-if": "which waybar-module-pacman-updates",
// "exec": "waybar-module-pacman-updates",
// "on-click": "kitty --class update paru"
},
"hyprland/workspaces": {
"disable-scroll": true,
"all-outputs": true,
"on-click": "activate",
},
"tray": {
"icon-size": 21,
"spacing": 10
},
"clock": {
"format": " {:%H:%M}",
"format-alt": " {:%Y-%m-%d  %H:%M}",
"interval": 1,
"rotate": 0,
"tooltip-format": "<tt>{calendar}</tt>",
"calendar": {
"mode": "month",
"mode-mon-col": 3,
"on-scroll": 1,
"on-click-right": "mode",
"format": {
"months": "<span color='#a6adc8'><b>{}</b></span>",
"weekdays": "<span color='#a6adc8'><b>{}</b></span>",
"today": "<span color='#a6adc8'><b>{}</b></span>",
"days": "<span color='#555869'><b>{}</b></span>"
}
}
},
"wireplumber": {
"format": "{icon} {volume} %",
"format-muted": " Mute",
"on-click": "$HOME/.config/hypr/scripts/Volume.sh --toggle",
"on-click-right": "pavucontrol -t 3",
"on-scroll-up": "$HOME/.config/hypr/scripts/Volume.sh --inc",
"on-scroll-down": "$HOME/.config/hypr/scripts/Volume.sh --dec",
"format-icons": [
"", "", "󰕾", ""
],
},
"memory": {
"states": {
"c": 90, // critical
"h": 60, // high
"m": 30 // medium
},
"interval": 10,
"format": "󰾆 {used}GB",
"format-m": "󰾅 {used}GB",
"format-h": "󰓅 {used}GB",
"format-c": " {used}GB",
"format-alt": "󰾆 {percentage}%",
"max-length": 10,
"tooltip": true,
"tooltip-format": "󰾆 {percentage}%\n {used:0.1f}GB/{total:0.1f}GB"
},
"cpu": {
"interval": 1,
"format": "󰍛 {usage}%",
"format-alt": "{icon0}{icon1}{icon2}{icon3}{icon4}{icon5}{icon6}{icon7}",
"format-icons": [
"<span color='#69ff94'>▁</span>", // green
"<span color='#2aa9ff'>▂</span>", // blue
"<span color='#f8f8f2'>▃</span>", // white
"<span color='#f8f8f2'>▄</span>", // white
"<span color='#ffffa5'>▅</span>", // yellow
"<span color='#ffffa5'>▆</span>", // yellow
"<span color='#ff9977'>▇</span>", // orange
"<span color='#dd532e'>█</span>" // red
]
},
"idle_inhibitor" : {
"format": "{icon}",
"tooltip": true,
"format-icons":{
"activated":"󰈈 ",
"deactivated":"󰈉 "
},
"on-click-right":"hyprlock"
},
"network": {
"tooltip": true,
"format-wifi": " {essid}",
"format-ethernet": "󰈀 ",
"tooltip-format": "Network: <big><b>{essid}</b></big>\nSignal strength: <b>{signaldBm}dBm ({signalStrength}%)</b>\nFrequency: <b>{frequency}MHz</b>\nInterface: <b>{ifname}</b>\nIP: <b>{ipaddr}/{cidr}</b>\nGateway: <b>{gwaddr}</b>\nNetmask: <b>{netmask}</b>",
"format-linked": "󰈀 {ifname} (No IP)",
"format-disconnected": "󰖪 ",
"tooltip-format-disconnected": "Disconnected",
"format-alt": "<span foreground='#99ffdd'> {bandwidthDownBytes}</span> <span foreground='#ffcc66'> {bandwidthUpBytes}</span>",
"interval": 2
},
"custom/launcher": {
"format": " ",
"on-click": "exec nwg-drawer -c 7 -is 96 -spacing 24",
//"on-click": "~/.config/rofi/launchers/type-3/launcher.sh",
"tooltip": false
},
"custom/notification": {
"tooltip": true,
"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": "swaync-client -t -sw",
"on-click-right": "swaync-client -d -sw",
"escape": true
}
}

View file

@ -23,7 +23,7 @@
"tray",
"clock"
],
"hyprland/language" :{
//
"format": "{} ",

View file

@ -55,15 +55,28 @@ window#waybar {
#custom-launcher,
#custom-hostname,
#custom-notification,
#backlight,
#language {
background: #1e1e2e;
padding: 0px 10px;
margin: 3px 0px;
margin-top: 5px;
/* border: 1px solid #181825; */
}
/*
#custom-launcher {}
#memory {}
#backlight {
border-radius: 10px 0px 0px 10px;
#battery {
color:#a6adc8;
border-radius: 0px 10px 10px 0px;
margin-right: 10px;
}
}
*/
#custom-notification {