replace waybar
This commit is contained in:
parent
29e880370f
commit
4f349726ea
6 changed files with 103 additions and 215 deletions
50
configs/i3bar-river/config.toml
Normal file
50
configs/i3bar-river/config.toml
Normal file
|
@ -0,0 +1,50 @@
|
|||
# The status generator command.
|
||||
# Optional: with no status generator the bar will display only tags and layout name.
|
||||
command = "i3status-rs"
|
||||
|
||||
# Colors
|
||||
background = "#282828ff"
|
||||
color = "#ffffffff"
|
||||
separator = "#9a8a62ff"
|
||||
tag_fg = "#d79921ff"
|
||||
tag_bg = "#282828ff"
|
||||
tag_focused_fg = "#1d2021ff"
|
||||
tag_focused_bg = "#689d68ff"
|
||||
tag_urgent_fg = "#282828ff"
|
||||
tag_urgent_bg = "#cc241dff"
|
||||
tag_inactive_fg = "#d79921ff"
|
||||
tag_inactive_bg = "#282828ff"
|
||||
|
||||
# The font and various sizes
|
||||
font = "monospace 10"
|
||||
height = 24
|
||||
margin_top = 0
|
||||
margin_bottom = 0
|
||||
margin_left = 0
|
||||
margin_right = 0
|
||||
separator_width = 2.0
|
||||
tags_r = 0.0
|
||||
tags_padding = 25.0
|
||||
blocks_r = 0.0
|
||||
blocks_overlap = 0.0
|
||||
|
||||
# Misc
|
||||
position = "top" # either "top" or "bottom"
|
||||
hide_inactive_tags = true
|
||||
invert_touchpad_scrolling = true
|
||||
show_layout_name = true
|
||||
blend = true # whether tags/blocks colors should blend with bar's background
|
||||
show_mode = true
|
||||
|
||||
# WM-specific options
|
||||
[wm.river]
|
||||
max_tag = 9 # Show only the first nine tags
|
||||
|
||||
# Per output overrides
|
||||
# [output.your-output-name]
|
||||
# right now only "enable" option is available
|
||||
# enable = false
|
||||
#
|
||||
# You can have any number of overrides
|
||||
# [output.eDP-1]
|
||||
# enable = false
|
43
configs/i3status-rust/config.toml
Normal file
43
configs/i3status-rust/config.toml
Normal file
|
@ -0,0 +1,43 @@
|
|||
icons_format = "{icon}"
|
||||
|
||||
[theme]
|
||||
theme = "solarized-dark"
|
||||
[theme.overrides]
|
||||
idle_bg = "#123456"
|
||||
idle_fg = "#abcdef"
|
||||
|
||||
[icons]
|
||||
icons = "awesome4"
|
||||
[icons.overrides]
|
||||
bat = ["|E|", "|_|", "|=|", "|F|"]
|
||||
bat_charging = "|^| "
|
||||
|
||||
[[block]]
|
||||
block = "cpu"
|
||||
|
||||
[[block]]
|
||||
block = "disk_space"
|
||||
path = "/"
|
||||
info_type = "available"
|
||||
alert_unit = "GB"
|
||||
interval = 20
|
||||
warning = 20.0
|
||||
alert = 10.0
|
||||
format = " $icon root: $available.eng(w:2) "
|
||||
|
||||
[[block]]
|
||||
block = "memory"
|
||||
format = " $icon $mem_total_used_percents.eng(w:2) "
|
||||
format_alt = " $icon_swap $swap_used_percents.eng(w:2) "
|
||||
|
||||
[[block]]
|
||||
block = "sound"
|
||||
[[block.click]]
|
||||
button = "left"
|
||||
cmd = "pavucontrol"
|
||||
|
||||
[[block]]
|
||||
block = "time"
|
||||
interval = 5
|
||||
format = " $timestamp.datetime(f:'%a %d/%m %R') "
|
||||
|
|
@ -1,7 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Startup
|
||||
waybar &
|
||||
swaybg -i ~/.cache/wal/bg &
|
||||
mako &
|
||||
|
||||
|
@ -187,3 +186,4 @@ riverctl rule-add csd -app-id "bar"
|
|||
# River will send the process group of the init executable SIGTERM on exit.
|
||||
riverctl default-layout rivertile
|
||||
rivertile -view-padding 6 -outer-padding 6 &
|
||||
riverctl spawn i3bar-river
|
||||
|
|
|
@ -1,87 +0,0 @@
|
|||
{
|
||||
// basics
|
||||
|
||||
"spacing": 4,
|
||||
|
||||
|
||||
// modules layout
|
||||
|
||||
"modules-left": ["river/tags"],
|
||||
"modules-center": ["river/window"],
|
||||
"modules-right": ["idle_inhibitor", "pulseaudio", "network", "cpu", "memory", "battery", "tray", "clock"],
|
||||
|
||||
|
||||
// modules config
|
||||
|
||||
"idle_inhibitor": {
|
||||
"format": "{icon}",
|
||||
"format-icons": {
|
||||
"activated": "",
|
||||
"deactivated": ""
|
||||
}
|
||||
},
|
||||
|
||||
"pulseaudio": {
|
||||
// "scroll-step": 1, // %, can be a float
|
||||
"format": "{volume}% {icon} {format_source}",
|
||||
"format-bluetooth": "{volume}% {icon} {format_source}",
|
||||
"format-bluetooth-muted": " {icon} {format_source}",
|
||||
"format-muted": " {format_source}",
|
||||
"format-source": "{volume}% ",
|
||||
"format-source-muted": "",
|
||||
"format-icons": {
|
||||
"headphone": "",
|
||||
"hands-free": "",
|
||||
"headset": "",
|
||||
"phone": "",
|
||||
"portable": "",
|
||||
"car": "",
|
||||
"default": ["", "", ""]
|
||||
},
|
||||
"on-click": "pavucontrol"
|
||||
},
|
||||
|
||||
"network": {
|
||||
// "interface": "wlp2*", // (Optional) To force the use of this interface
|
||||
"format-wifi": "{essid} ({signalStrength}%) ",
|
||||
"format-ethernet": "{ifname}: {ipaddr}/{cidr} ",
|
||||
"format-linked": "{ifname} (No IP) ",
|
||||
"format-disconnected": "Disconnected ⚠",
|
||||
"format-alt": "{ifname}: {ipaddr}/{cidr}"
|
||||
},
|
||||
|
||||
"cpu": {
|
||||
"format": " {usage}%",
|
||||
"tooltip": false
|
||||
},
|
||||
|
||||
"memory": {
|
||||
"format": " {}%"
|
||||
},
|
||||
|
||||
"tray": {
|
||||
// "icon-size": 21,
|
||||
"spacing": 10
|
||||
},
|
||||
|
||||
"battery": {
|
||||
"states": {
|
||||
// "good": 95,
|
||||
"warning": 30,
|
||||
"critical": 15
|
||||
},
|
||||
"format": "{icon} {capacity}%",
|
||||
"format-charging": "{capacity}%",
|
||||
"format-plugged": "{capacity}%",
|
||||
"format-alt": "{icon} {time}",
|
||||
// "format-good": "", // An empty format will hide the module
|
||||
// "format-full": "",
|
||||
"format-icons": ["", "", "", "", ""]
|
||||
},
|
||||
|
||||
"clock": {
|
||||
"format": "{:%I:%M}",
|
||||
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
|
||||
"format-alt": "{:%Y-%m-%d}"
|
||||
},
|
||||
}
|
|
@ -1,126 +0,0 @@
|
|||
@import "../../.cache/wal/colors-waybar.css"; /* can't get a nice path? or brainfart */
|
||||
|
||||
* {
|
||||
/* `otf-font-awesome` is required to be installed for icons */
|
||||
font-family: FontAwesome, Roboto, Helvetica, Arial, sans-serif;
|
||||
font-size: 13px;
|
||||
color: @foreground;
|
||||
}
|
||||
|
||||
window#waybar {
|
||||
background-color: @background;
|
||||
border-bottom: 3px solid @color3;
|
||||
transition-property: background-color;
|
||||
transition-duration: .5s;
|
||||
}
|
||||
|
||||
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: 0;
|
||||
}
|
||||
|
||||
/* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */
|
||||
button:hover {
|
||||
background: inherit;
|
||||
box-shadow: inset 0 -3px @color2;
|
||||
}
|
||||
|
||||
#tags {
|
||||
background-color: @background;
|
||||
}
|
||||
|
||||
#tags button.occupied {
|
||||
box-shadow: inset 0 -3px @color3;
|
||||
}
|
||||
|
||||
#tags button.focused {
|
||||
background-color: @color1;
|
||||
box-shadow: inset 0 -3px @foreground;
|
||||
}
|
||||
#tags button.urgent {
|
||||
color: red;
|
||||
}
|
||||
|
||||
#idle_inhibitor,
|
||||
#clock,
|
||||
#cpu,
|
||||
#memory,
|
||||
#network,
|
||||
#tray,
|
||||
#pulseaudio,
|
||||
#battery {
|
||||
background-color: @color1;
|
||||
padding: 0 10px;
|
||||
}
|
||||
|
||||
#idle_inhibitor.activated {
|
||||
background-color: #ecf0f1;
|
||||
color: #2d3436;
|
||||
}
|
||||
|
||||
#pulseaudio.muted {
|
||||
background-color: #90b1b1;
|
||||
color: #2a5c45;
|
||||
}
|
||||
|
||||
#network.disconnected {
|
||||
background-color: #f53c3c;
|
||||
}
|
||||
|
||||
#tray > .passive {
|
||||
-gtk-icon-effect: dim;
|
||||
}
|
||||
|
||||
#tray > .needs-attention {
|
||||
-gtk-icon-effect: highlight;
|
||||
background-color: #eb4d4b;
|
||||
}
|
||||
|
||||
#battery.charging, #battery.plugged {
|
||||
color: @foreground;
|
||||
background-color: @color1;
|
||||
}
|
||||
|
||||
@keyframes blink {
|
||||
to {
|
||||
background-color: #ffffff;
|
||||
color: #000000;
|
||||
}
|
||||
}
|
||||
|
||||
#battery.critical:not(.charging) {
|
||||
background-color: #f53c3c;
|
||||
color: #ffffff;
|
||||
animation-name: blink;
|
||||
animation-duration: 0.5s;
|
||||
animation-timing-function: linear;
|
||||
animation-iteration-count: infinite;
|
||||
animation-direction: alternate;
|
||||
}
|
||||
|
||||
|
||||
#wireplumber {
|
||||
background-color: #fff0f5;
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
#wireplumber.muted {
|
||||
background-color: #f53c3c;
|
||||
}
|
||||
|
||||
#custom-media {
|
||||
background-color: #66cc99;
|
||||
color: #2a5c45;
|
||||
min-width: 100px;
|
||||
}
|
||||
|
||||
#custom-media.custom-spotify {
|
||||
background-color: #66cc99;
|
||||
}
|
||||
|
||||
#custom-media.custom-vlc {
|
||||
background-color: #ffa000;
|
||||
}
|
|
@ -29,17 +29,22 @@ fi &&
|
|||
echo -e "\nInstalling dependencies..." &&
|
||||
yay -S --needed --noconfirm \
|
||||
alacritty \
|
||||
alsa-utils \
|
||||
beautiful-discord-git \
|
||||
bluez \
|
||||
btop \
|
||||
byobu \
|
||||
caprine \
|
||||
chromium \
|
||||
discord \
|
||||
fakeroot \
|
||||
firefox-developer-edition \
|
||||
fuzzel \
|
||||
gawk \
|
||||
gimp \
|
||||
grim \
|
||||
i3bar-river \
|
||||
i3status-rust \
|
||||
lf \
|
||||
light \
|
||||
mako \
|
||||
|
@ -49,6 +54,8 @@ oh-my-zsh-git \
|
|||
otf-font-awesome \
|
||||
pamixer \
|
||||
playerctl \
|
||||
powerline-fonts \
|
||||
pulseaudio \
|
||||
python-pywalfox \
|
||||
pywal-discord-git \
|
||||
river \
|
||||
|
@ -60,8 +67,9 @@ steam \
|
|||
swaybg \
|
||||
telegram-desktop \
|
||||
thunderbird \
|
||||
ttf-font-awesome \
|
||||
upower \
|
||||
wal-telegram-git \
|
||||
waybar \
|
||||
wl-clipboard \
|
||||
zsh \
|
||||
&&
|
||||
|
|
Loading…
Add table
Reference in a new issue