Me suis trompé j'avais mis des liens
This commit is contained in:
@@ -1 +0,0 @@
|
||||
/home/ssfunerals/.config/waybar
|
||||
305
config/waybar/config
Executable file
305
config/waybar/config
Executable file
@@ -0,0 +1,305 @@
|
||||
// vim:ft=jsonc
|
||||
{
|
||||
"layer": "top",
|
||||
"position": "top",
|
||||
"height": 52,
|
||||
"margin-left": 20,
|
||||
"margin-right": 20,
|
||||
"margin-top": 10,
|
||||
"margin-bottom": 0,
|
||||
"spacing": 2,
|
||||
"reload_style_on_change": true,
|
||||
|
||||
// Choose the order of the modules
|
||||
|
||||
"modules-left": ["hyprland/workspaces", "river/tags", "tray"],
|
||||
|
||||
//"modules-center": ["clock"],
|
||||
|
||||
"modules-right": [
|
||||
"network",
|
||||
"cpu",
|
||||
"memory",
|
||||
"battery",
|
||||
"temperature",
|
||||
"backlight",
|
||||
"wireplumber",
|
||||
"clock",
|
||||
"custom/separator",
|
||||
"group/custom-group",
|
||||
"custom/separator",
|
||||
"custom/power"
|
||||
|
||||
],
|
||||
|
||||
"group/custom-group": {
|
||||
"orientation": "horizontal",
|
||||
"modules": [
|
||||
"idle_inhibitor"
|
||||
//"custom/bluetooth",
|
||||
//"custom/wifi",
|
||||
//"custom/pacman"
|
||||
],
|
||||
},
|
||||
|
||||
"hyprland/workspaces": {
|
||||
"on-click": "activate",
|
||||
//"active-only": false,
|
||||
"all-outputs": true,
|
||||
"format": "{icon}",
|
||||
"format-icons": {
|
||||
"1": "", //
|
||||
"2": "",
|
||||
"3": "",
|
||||
"4": "",
|
||||
"5": "",
|
||||
"6": "",
|
||||
"7": "",
|
||||
"8": "",
|
||||
"9": "",
|
||||
"10": "",
|
||||
// "","",
|
||||
// "urgent": "",
|
||||
// "active": "",
|
||||
// "default": ""
|
||||
},
|
||||
},
|
||||
|
||||
"hyprland/window": {
|
||||
"format": "{}",
|
||||
"separate-outputs": true,
|
||||
},
|
||||
|
||||
"river/tags": {
|
||||
"num-tags": 7,
|
||||
"tag-labels": ["", "", "", "", "", "", "", "", "", ""],
|
||||
},
|
||||
|
||||
"tray": {
|
||||
"icon-size": 24,
|
||||
"spacing": 10,
|
||||
"show-passive-items": true,
|
||||
},
|
||||
|
||||
"clock": {
|
||||
"interval": 60,
|
||||
"format": " {:%a %d %b %I:%M %p}", // %b %d %Y --Date formatting
|
||||
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
|
||||
"format-alt": "{:%d-%m-%Y %H:%M:%S }",
|
||||
},
|
||||
|
||||
"temperature": {
|
||||
// "thermal-zone": 2,
|
||||
// "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
|
||||
// "format-critical": "{temperatureC}°C {icon}",
|
||||
"critical-threshold": 80,
|
||||
"interval": 2,
|
||||
"format": " {temperatureC:>2}°C",
|
||||
"format-icons": ["", "", ""],
|
||||
"on-click": "hyprctl dispatcher togglespecialworkspace monitor",
|
||||
},
|
||||
|
||||
"cpu": {
|
||||
"interval": 2,
|
||||
"format": " {usage:>2}%",
|
||||
"on-click": "hyprctl dispatcher togglespecialworkspace monitor",
|
||||
},
|
||||
|
||||
"memory": {
|
||||
"interval": 2,
|
||||
"format": " {:>2}%",
|
||||
},
|
||||
|
||||
"disk": {
|
||||
"interval": 15,
|
||||
"format": " {percentage_used:>2}%",
|
||||
},
|
||||
|
||||
"backlight": {
|
||||
// "device": "acpi_video1",
|
||||
"format": "{icon} {percent:>2}%",
|
||||
"format-icons": ["", "", "", "", "", "", "", "", ""],
|
||||
},
|
||||
|
||||
"network": {
|
||||
// "interface": "wlp2*", // (Optional) To force the use of this interface
|
||||
"interval": 1,
|
||||
"format-wifi": " {bandwidthTotalBytes:>2}", //({essid} {signalStrength}%)
|
||||
"format-ethernet": "{ipaddr}/{cidr} ",
|
||||
"tooltip-format-wifi": " {ipaddr} ({signalStrength}%)",
|
||||
"tooltip-format": "{ifname} via {gwaddr} ",
|
||||
"format-linked": "{ifname} (No IP) ",
|
||||
"format-disconnected": " Disconnected", //Disconnected ⚠
|
||||
"format-alt": "{ifname}: {ipaddr}/{cidr}",
|
||||
},
|
||||
|
||||
"pulseaudio": {
|
||||
// "scroll-step": 1, // %, can be a float
|
||||
"format": "{icon} {volume}%", //{format_source}",
|
||||
"format-bluetooth": "{icon} {volume}% ", //{format_source}",
|
||||
"format-bluetooth-muted": " {icon} ", //{format_source}",
|
||||
"format-muted": " {volume}%",
|
||||
// "format-source": " {volume}%",
|
||||
// "format-source-muted": "",
|
||||
"format-icons": {
|
||||
"headphone": "",
|
||||
"hands-free": "",
|
||||
"headset": "",
|
||||
"phone": "",
|
||||
"portable": "",
|
||||
"car": "",
|
||||
"default": ["", "", ""],
|
||||
},
|
||||
"on-click": "pavucontrol",
|
||||
},
|
||||
|
||||
"wireplumber": {
|
||||
"format": "{icon} {volume:>3}%",
|
||||
"format-muted": " {volume:>3}%",
|
||||
// "format-bluetooth": "{icon} {volume:>2}% ", //{format_source}",
|
||||
// "format-bluetooth-muted": " {icon} ", //{format_source}",
|
||||
"format-icons": ["", "", ""],
|
||||
},
|
||||
|
||||
// This waybar build doesn't have support for cava.
|
||||
// Need to edit the PKGBUILD and rebuild with -Dcava=enabled flag
|
||||
"cava": {
|
||||
"cava_config": "$XDG_CONFIG_HOME/cava/config",
|
||||
"framerate": 30,
|
||||
"autosens": 1,
|
||||
"sensitivity": 100,
|
||||
"bars": 14,
|
||||
"lower_cutoff_freq": 50,
|
||||
"higher_cutoff_freq": 10000,
|
||||
"method": "pulse",
|
||||
"source": "auto",
|
||||
"stereo": true,
|
||||
"reverse": false,
|
||||
"bar_delimiter": 0,
|
||||
"monstercat": false,
|
||||
"waves": false,
|
||||
"noise_reduction": 0.77,
|
||||
"input_delay": 2,
|
||||
"format-icons": ["▁", "▂", "▃", "▄", "▅", "▆", "▇", "█"],
|
||||
"actions": {
|
||||
"on-click-right": "mode",
|
||||
},
|
||||
},
|
||||
|
||||
"idle_inhibitor": {
|
||||
"format": "{icon}",
|
||||
"format-icons": {
|
||||
"activated": "",
|
||||
"deactivated": "",
|
||||
},
|
||||
},
|
||||
|
||||
"custom/power": {
|
||||
"format": "{icon}",
|
||||
"format-icons": " ", //
|
||||
"exec-on-event": "true",
|
||||
"on-click": "$HOME/scripts/rofi-power",
|
||||
"tooltip-format": "Power Menu",
|
||||
},
|
||||
|
||||
"custom/kdeconnect": {
|
||||
"format": "{icon}",
|
||||
"format-icons": "",
|
||||
"exec-on-event": "true",
|
||||
"on-click": "kdeconnect-app",
|
||||
"tooltip-format": "KDE Connect",
|
||||
},
|
||||
|
||||
"custom/bluetooth": {
|
||||
"format": "{icon}",
|
||||
"format-icons": "",
|
||||
"exec-on-event": "true",
|
||||
"on-click": "$HOME/scripts/rofi-bluetooth",
|
||||
"tooltip-format": "Bluetooth Menu",
|
||||
},
|
||||
|
||||
"custom/wifi": {
|
||||
"format": "{icon}",
|
||||
"format-icons": "",
|
||||
"exec-on-event": "true",
|
||||
"on-click": "$HOME/scripts/rofi-wifi",
|
||||
"tooltip-format": "Wifi Menu",
|
||||
},
|
||||
|
||||
"custom/separator": {
|
||||
"format": "{icon}",
|
||||
"format-icons": "|",
|
||||
"tooltip": false,
|
||||
},
|
||||
|
||||
"custom/pacman": {
|
||||
"format": " {}",
|
||||
"interval": 3600, // every hour
|
||||
"exec": "checkupdates | wc -l", // # of updates
|
||||
"exec-if": "exit 0", // always run; consider advanced run conditions
|
||||
"on-click": "kitty -e 'sudo pacman -Syu'; pkill -SIGRTMIN+8 waybar", // update system
|
||||
"signal": 8,
|
||||
},
|
||||
|
||||
"custom/notification": {
|
||||
"tooltip": false,
|
||||
"format": "{icon} {}",
|
||||
"format-icons": {
|
||||
"notification": "<span foreground='red'><sup></sup></span>",
|
||||
"none": "",
|
||||
"dnd-notification": "<span foreground='red'><sup></sup></span>",
|
||||
"dnd-none": "",
|
||||
"inhibited-notification": "<span foreground='red'><sup></sup></span>",
|
||||
"inhibited-none": "",
|
||||
"dnd-inhibited-notification": "<span foreground='red'><sup></sup></span>",
|
||||
"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,
|
||||
},
|
||||
|
||||
"keyboard-state": {
|
||||
"numlock": true,
|
||||
"capslock": true,
|
||||
"format": "{name} {icon}",
|
||||
"format-icons": {
|
||||
"locked": "",
|
||||
"unlocked": "",
|
||||
},
|
||||
},
|
||||
|
||||
"wlr/taskbar": {
|
||||
"format": "{icon}",
|
||||
"icon-size": 32,
|
||||
"tooltip-format": "{title}",
|
||||
"on-click": "activate",
|
||||
"on-click-middle": "close",
|
||||
"ignore-list": ["kitty", "wezterm", "foot", "footclient"],
|
||||
},
|
||||
|
||||
"battery": {
|
||||
"states": {
|
||||
"good": 95,
|
||||
"warning": 30,
|
||||
"critical": 15,
|
||||
},
|
||||
"format": "{capacity}% {icon}",
|
||||
"format-charging": " {capacity}%",
|
||||
"format-plugged": " {capacity}%",
|
||||
"format-alt": "{icon} {time}",
|
||||
// "format-good": "", // An empty format will hide the module
|
||||
// "format-full": "",
|
||||
"format-icons": ["", "", "", "", ""],
|
||||
},
|
||||
|
||||
"backlight/slider": {
|
||||
"min": 0,
|
||||
"max": 100,
|
||||
"orientation": "horizontal",
|
||||
"device": "intel_backlight",
|
||||
},
|
||||
}
|
||||
13
config/waybar/launch.sh
Executable file
13
config/waybar/launch.sh
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Terminate already running bar instances
|
||||
# If all your bars have ipc enabled, you can use
|
||||
# polybar-msg cmd quit
|
||||
# Otherwise you can use the nuclear option:
|
||||
killall -q waybar
|
||||
|
||||
# Launch bar1 and bar2
|
||||
waybar 2>&1 | tee -a /tmp/waybar.log &
|
||||
disown
|
||||
|
||||
echo "Bars launched..."
|
||||
226
config/waybar/style.css
Executable file
226
config/waybar/style.css
Executable file
@@ -0,0 +1,226 @@
|
||||
@define-color fg #F5F5F5;
|
||||
@define-color bg #1F1F28;
|
||||
@define-color bordercolor #C8C093;
|
||||
@define-color highlight #D59C5C;
|
||||
@define-color disabled #A5A5A5;
|
||||
@define-color alert #E67E80;
|
||||
@define-color activegreen #26A65B;
|
||||
|
||||
* {
|
||||
min-height: 0;
|
||||
font-family: "JetBrainsMono Nerd Font", Roboto, Helvetica, Arial, sans-serif;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
window#waybar {
|
||||
color: @fg;
|
||||
background: @bg;
|
||||
border-radius: 10px;
|
||||
transition-property: background-color;
|
||||
transition-duration: 0.5s;
|
||||
border: 2px solid @bordercolor;
|
||||
}
|
||||
|
||||
button {
|
||||
/* Use box-shadow instead of border so the text isn't offset */
|
||||
box-shadow: inset 0 -3px transparent;
|
||||
/* Avoid rounded borders under each button name */
|
||||
border: none;;
|
||||
border-radius: 0px;
|
||||
padding: 0px 5px;
|
||||
margin: 15px 0px;
|
||||
}
|
||||
|
||||
/* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */
|
||||
button:hover {
|
||||
background: inherit;
|
||||
box-shadow: inset 0 -3px transparent;
|
||||
}
|
||||
|
||||
#workspaces button {
|
||||
color: @fg;
|
||||
margin-left: 10px;
|
||||
}
|
||||
|
||||
#workspaces button.urgent {
|
||||
color: @alert;
|
||||
}
|
||||
#workspaces button.empty {
|
||||
color: @bordercolor;
|
||||
}
|
||||
|
||||
#workspaces button.active {
|
||||
color: @highlight;
|
||||
}
|
||||
|
||||
/*River Tags/Workspaces*/
|
||||
#tags {
|
||||
border-radius: 0px;
|
||||
padding: 0px 5px;
|
||||
}
|
||||
|
||||
#tags button {
|
||||
color: @bordercolor;
|
||||
background: @bg;
|
||||
|
||||
/*If you need round border icons*/
|
||||
border-radius: 0px;
|
||||
padding: 0px 0px;
|
||||
margin: 5px 0px;
|
||||
}
|
||||
|
||||
#tags button.occupied {
|
||||
color: @fg;
|
||||
}
|
||||
|
||||
#tags button.focused {
|
||||
color: @highlight;
|
||||
}
|
||||
|
||||
#tags button.urgent {
|
||||
color: @alert;
|
||||
}
|
||||
|
||||
#clock,
|
||||
#cava,
|
||||
#battery,
|
||||
#cpu,
|
||||
#memory,
|
||||
#disk,
|
||||
#temperature,
|
||||
#language,
|
||||
#backlight,
|
||||
#backlight-slider,
|
||||
#network,
|
||||
#pulseaudio,
|
||||
#wireplumber,
|
||||
#custom-media,
|
||||
#taskbar,
|
||||
#tray,
|
||||
#tray menu,
|
||||
#tray > .needs-attention,
|
||||
#tray > .passive,
|
||||
#tray > .active,
|
||||
#mode,
|
||||
#scratchpad,
|
||||
#custom-notification,
|
||||
#custom-wifi,
|
||||
#custom-kdeconnect,
|
||||
#custom-bluetooth,
|
||||
#custom-power,
|
||||
#custom-separator,
|
||||
#idle_inhibitor,
|
||||
#window,
|
||||
#mpd {
|
||||
padding: 0px 10px;
|
||||
margin: 0px 5px;
|
||||
color: @bordercolor;
|
||||
}
|
||||
|
||||
#custom-notification,
|
||||
#custom-wifi,
|
||||
#custom-kdeconnect,
|
||||
#custom-bluetooth,
|
||||
#custom-power,
|
||||
#idle_inhibitor {
|
||||
color: @bg;
|
||||
}
|
||||
|
||||
#clock,
|
||||
#custom-group {
|
||||
color: @bg;
|
||||
background-color: @bordercolor;
|
||||
margin: 10px;
|
||||
padding: 0px 15px;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
#custom-separator {
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
color: @disabled;
|
||||
}
|
||||
|
||||
#custom-power {
|
||||
color: @alert;
|
||||
}
|
||||
|
||||
|
||||
#tray {
|
||||
/*background-color: @bordercolor;*/
|
||||
border: 1px solid @bordercolor;
|
||||
margin: 10px;
|
||||
padding: 0px 15px;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
#network.disconnected,
|
||||
#pulseaudio.muted,
|
||||
#wireplumber.muted {
|
||||
color: @alert;
|
||||
}
|
||||
|
||||
#battery.charging,
|
||||
#battery.plugged {
|
||||
color: @activegreen;
|
||||
}
|
||||
|
||||
label:focus {
|
||||
background-color: @bg;
|
||||
}
|
||||
|
||||
#battery.critical:not(.charging) {
|
||||
background-color: @alert;
|
||||
color: @fg;
|
||||
animation-name: blink;
|
||||
animation-duration: 0.5s;
|
||||
animation-timing-function: linear;
|
||||
animation-iteration-count: infinite;
|
||||
animation-direction: alternate;
|
||||
}
|
||||
|
||||
#tray > .passive {
|
||||
background-color: red;
|
||||
color: @bg;
|
||||
}
|
||||
#tray menu {
|
||||
background-color: @bg;
|
||||
border: 1px solid @bordercolor;
|
||||
color: @bordercolor;
|
||||
border-radius: 10px;
|
||||
padding: 5px;
|
||||
}
|
||||
#tray menuitem {
|
||||
background-color: @bg;
|
||||
color: @bordercolor;
|
||||
border-radius: 3px;
|
||||
border: 1px solid transparent;
|
||||
}
|
||||
#tray menuitem:hover {
|
||||
background-color: #000000;
|
||||
border: 1px solid @bordercolor;
|
||||
}
|
||||
|
||||
/*
|
||||
#tray menu {
|
||||
background-color: @bg;
|
||||
border: 1px solid @bordercolor;
|
||||
color: @bordercolor;
|
||||
border-radius: 10px;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
#tray menuitem {
|
||||
background-color: @bg;
|
||||
color: @bordercolor;
|
||||
border-radius: 3px;
|
||||
padding: 5px 10px;
|
||||
}
|
||||
|
||||
#tray menuitem:hover {
|
||||
background-color: #000000;
|
||||
border: 1px solid @bordercolor;
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user