add scripts
This commit is contained in:
parent
da6833b55b
commit
a1d7377ca1
17 changed files with 265 additions and 45 deletions
|
|
@ -1,18 +1,95 @@
|
|||
{
|
||||
"layer": "top",
|
||||
|
||||
"modules-left": ["niri/workspaces"],
|
||||
"modules-center": ["niri/window"],
|
||||
"modules-right": ["battery", "clock"],
|
||||
"modules-right": ["bluetooth", "network", "wireplumber#source", "wireplumber#sink", "battery", "clock"],
|
||||
|
||||
"niri/window": {
|
||||
"max-length": 100
|
||||
},
|
||||
"battery": {
|
||||
"format": "{capacity}% {icon}",
|
||||
"format-icons": ["", "", "", "", ""]
|
||||
|
||||
"mpris": {
|
||||
"format": "{player_icon} {dynamic}",
|
||||
"format-paused": "{status_icon} <i>{dynamic}</i>",
|
||||
"player-icons": {
|
||||
"default": ""
|
||||
},
|
||||
"status-icons": {
|
||||
"paused": ""
|
||||
},
|
||||
"ignored-players": ["firefox"]
|
||||
},
|
||||
|
||||
"bluetooth": {
|
||||
// "controller": "controller1", // specify the alias of the controller if there are more than 1 on the system
|
||||
"format": "",
|
||||
"format-disabled": "", // an empty format will hide the module
|
||||
"format-connected": "",
|
||||
"tooltip-format": "{controller_alias}\t{controller_address}",
|
||||
"tooltip-format-connected": "{controller_alias}\t{controller_address}\n\n{device_enumerate}",
|
||||
"tooltip-format-enumerate-connected": "{device_alias}\t{device_address}",
|
||||
"min-length": 2
|
||||
},
|
||||
|
||||
"network": {
|
||||
"interface": "wlp2s0",
|
||||
"format": "{ifname}",
|
||||
"format-icons": ["", "", "", ""],
|
||||
"format-wifi": "{icon}",
|
||||
"format-ethernet": "",
|
||||
"format-disconnected": "", //An empty format will hide the module.
|
||||
"tooltip-format": "{ifname}",
|
||||
"tooltip-format-wifi": "{essid} ({signalStrength}%) ",
|
||||
"tooltip-format-ethernet": "{ifname} ",
|
||||
"tooltip-format-disconnected": "Disconnected",
|
||||
"max-length": 50,
|
||||
"min-length": 2
|
||||
},
|
||||
|
||||
"wireplumber#sink": {
|
||||
"format": "{icon}",
|
||||
"format-muted": "",
|
||||
"format-icons": ["", "", ""],
|
||||
"tooltip-format": "{node_name} ({volume}%)",
|
||||
"on-click-right": "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle",
|
||||
"scroll-step": 5,
|
||||
"min-length": 2
|
||||
},
|
||||
|
||||
"wireplumber#source": {
|
||||
"node-type": "Audio/Source",
|
||||
"format": "",
|
||||
"format-muted": "",
|
||||
"tooltip-format": "{node_name} ({volume}%)",
|
||||
"on-click-right": "wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle",
|
||||
"scroll-step": 5,
|
||||
"min-length": 2
|
||||
},
|
||||
|
||||
"battery": {
|
||||
"interval": 60,
|
||||
"states": {
|
||||
"warning": 30,
|
||||
"critical": 15
|
||||
},
|
||||
"events": {
|
||||
"on-discharging-warning": "notify-send -u normal 'Low Battery'",
|
||||
"on-discharging-critical": "notify-send -u critical 'Very Low Battery'",
|
||||
"on-charging-100": "notify-send -u normal 'Battery Full!'"
|
||||
},
|
||||
"format": "{icon}",
|
||||
"format-icons": ["", "", "", "", "", "", "", "", "", ""],
|
||||
"tooltip-format": "{time} ({capacity}%)",
|
||||
"min-length": 2
|
||||
},
|
||||
|
||||
"clock": {
|
||||
"format-alt": "{:%a, %d. %b %H:%M}",
|
||||
"tooltip": false
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,8 +1,13 @@
|
|||
* {
|
||||
/* `otf-font-awesome` is required to be installed for icons */
|
||||
font-family: FontAwesome, Adwaita Sans, sans-serif;
|
||||
font-weight: bold;
|
||||
font-size: 13px;
|
||||
font-family: Symbols Nerd Font, Adwaita Sans, sans-serif;
|
||||
font-weight: 600;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
tooltip {
|
||||
font-weight: normal;
|
||||
border-radius: 0px;
|
||||
}
|
||||
|
||||
window#waybar {
|
||||
|
|
@ -24,7 +29,7 @@ window#waybar.empty {
|
|||
window#waybar.solo {
|
||||
background-color: #FFFFFF;
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
window#waybar.termite {
|
||||
background-color: #3F3F3F;
|
||||
|
|
@ -34,6 +39,7 @@ window#waybar.chromium {
|
|||
background-color: #000000;
|
||||
border: none;
|
||||
}
|
||||
*/
|
||||
|
||||
button {
|
||||
/* Use box-shadow instead of border so the text isn't offset */
|
||||
|
|
@ -49,13 +55,8 @@ button:hover {
|
|||
box-shadow: inset 0 -2px #ffffff;
|
||||
}
|
||||
|
||||
/* you can set a style on hover for any module like this */
|
||||
#pulseaudio:hover {
|
||||
background-color: #a37800;
|
||||
}
|
||||
|
||||
#workspaces button {
|
||||
padding: 0 5px;
|
||||
padding: 0 4px;
|
||||
background-color: transparent;
|
||||
color: #999999;
|
||||
}
|
||||
|
|
@ -87,6 +88,7 @@ button:hover {
|
|||
#disk,
|
||||
#temperature,
|
||||
#backlight,
|
||||
#bluetooth,
|
||||
#network,
|
||||
#pulseaudio,
|
||||
#wireplumber,
|
||||
|
|
@ -97,7 +99,7 @@ button:hover {
|
|||
#scratchpad,
|
||||
#power-profiles-daemon,
|
||||
#mpd {
|
||||
padding: 0 10px;
|
||||
padding: 0 8px;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
|
|
@ -116,10 +118,6 @@ button:hover {
|
|||
margin-right: 0;
|
||||
}
|
||||
|
||||
tooltip {
|
||||
border-radius: 0px;
|
||||
}
|
||||
|
||||
/*
|
||||
clock {
|
||||
background-color: #64727D;
|
||||
|
|
@ -136,25 +134,20 @@ clock {
|
|||
color: #ffffff;
|
||||
background-color: #26A65B;
|
||||
}
|
||||
*/
|
||||
|
||||
@keyframes blink {
|
||||
to {
|
||||
background-color: #ffffff;
|
||||
color: #000000;
|
||||
}
|
||||
}
|
||||
|
||||
*/
|
||||
/* Using steps() instead of linear as a timing function to limit cpu usage */
|
||||
#battery.critical:not(.charging) {
|
||||
background-color: #f53c3c;
|
||||
color: #ffffff;
|
||||
animation-name: blink;
|
||||
animation-duration: 0.5s;
|
||||
animation-timing-function: steps(12);
|
||||
animation-iteration-count: infinite;
|
||||
animation-direction: alternate;
|
||||
color: #9b0000
|
||||
}
|
||||
|
||||
/*
|
||||
#power-profiles-daemon {
|
||||
padding-right: 15px;
|
||||
}
|
||||
|
|
@ -195,10 +188,12 @@ label:focus {
|
|||
background-color: #90b1b1;
|
||||
}
|
||||
|
||||
|
||||
#network {
|
||||
background-color: #2980b9;
|
||||
}
|
||||
|
||||
|
||||
#network.disconnected {
|
||||
background-color: #f53c3c;
|
||||
}
|
||||
|
|
@ -335,3 +330,4 @@ label:focus {
|
|||
#privacy-item.audio-out {
|
||||
background-color: #0069d4;
|
||||
}
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue