*
This commit is contained in:
cho
2024-01-27 15:42:16 +07:00
parent 0e6199ab8b
commit 9ceb9dbd33
47 changed files with 4633 additions and 267 deletions

View File

@ -1,13 +1,28 @@
{
// "layer": "top", // Waybar at top layer
"position": "bottom", // Waybar position (top|bottom|left|right)
"position": "top", // Waybar position (top|bottom|left|right)
"height": 20, // Waybar height (to be removed for auto height)
// "width": 1280, // Waybar width
// Choose the order of the modules
"modules-left": ["sway/workspaces", "sway/mode", "custom/media"],
"modules-center": [],
//"modules-center": [],
//"modules-right": ["idle_inhibitor", "mpd", "pulseaudio", "network", "cpu", "memory", "temperature", "battery", "custom/scratchpad_indicator", "clock", "tray", "custom/swaync", "custom/emacsstatus" ],
"modules-right": ["mpd", "pulseaudio", "network", "battery", "custom/scratchpad_indicator", "clock", "tray", "custom/swaync", "custom/emacsstatus" ],
"modules-right": ["pulseaudio", "network", "battery", "custom/scratchpad_indicator", "custom/neralie", "tray", "custom/swaync", "custom/emacsstatus" ],
"river/tags": {
"num-tags": 5,
"tag-labels": {
"1": "",
"2": "",
"3": "",
"4": "",
"5": "",
"6": "",
"7": "",
"8": "",
"9": "",
"10": "",
}
},
"sway/workspaces": {
"disable-scroll-wraparound": true
},
@ -38,7 +53,18 @@
// "disable-scroll": true,
"all-outputs": false,
"format": "{name}",
//"format": "{icon}",
"format-icons": {
"1": "+",
"2": "+",
"3": "+",
"4": "+",
"5": "+",
"6": "+",
"7": "+",
"8": "+",
"9": "+",
"10": "+",
// "1": "1",
// "2": "2",
// "3": "3-sch", // schedule
@ -92,7 +118,8 @@
//"format": "{:%Y-%m-%d %H:%M:%S}",
//"format": "{:%Y-%m-%d %I:%M:%S %p}",
//"format": "day # {:%j}",
"interval": 1
"interval": 1,
"on-click": "uxnemu ~/.local/uxn/catclock.rom"
},
"cpu": {
"format": " {usage}%",
@ -120,7 +147,7 @@
"format-ethernet": " {ifname}: {ipaddr}/{cidr}",
"format-linked": " {ifname} (No IP)",
"format-disconnected": "⚠ Disconnected",
//"format-alt": "{ifname}: {ipaddr}/{cidr}"
"format-alt": "{ifname}: {ipaddr}/{cidr}",
"on-click": "$TERMINAL -e nmtui"
},
"pulseaudio": {
@ -191,7 +218,7 @@
"custom/emacsstatus": {
"return-type": "json",
"exec": "~/.config/waybar/scripts/emacs-status.sh",
"on-click": "emacsclient -c || emacs",
"on-click": "emacsclient -c -a ''",
"format": "{}",
"restart-interval": 3
},
@ -203,4 +230,9 @@
"on-click": "exec swaymsg 'scratchpad show'",
"on-click-right": "exec swaymsg 'move scratchpad'"
},
"custom/neralie": {
"exec": "~/.local/bin/neralie",
"on-click": "uxnemu ~/.local/uxn/catclock.rom",
"restart-interval": 1
},
}

View File

@ -0,0 +1,239 @@
{
// "layer": "top", // Waybar at top layer
"position": "top", // Waybar position (top|bottom|left|right)
"height": 20, // Waybar height (to be removed for auto height)
// "width": 1280, // Waybar width
// Choose the order of the modules
//"modules-left": ["sway/workspaces", "sway/mode", "custom/media"],
"modules-left": ["river/tags", "custom/media"],
//"modules-center": [],
//"modules-right": ["idle_inhibitor", "mpd", "pulseaudio", "network", "cpu", "memory", "temperature", "battery", "custom/scratchpad_indicator", "clock", "tray", "custom/swaync", "custom/emacsstatus" ],
"modules-right": ["pulseaudio", "network", "battery", "custom/neralie", "tray", "custom/swaync", "custom/emacsstatus" ],
"river/tags": {
"num-tags": 5,
"tag-labels": {
"1": "",
"2": "",
"3": "",
"4": "",
"5": "",
"6": "",
"7": "",
"8": "",
"9": "",
"10": "",
}
},
"sway/workspaces": {
"disable-scroll-wraparound": true
},
// Modules configuration
"sway/workspaces": {
"persistent_workspaces": {
// "1": ["DVI-D-1"],
// "2": ["DVI-D-1"],
// "3": ["DVI-D-1"],
// "4": ["DVI-D-1"],
// "5": ["DVI-D-1"],
// "6": ["HDMI-A-1"],
// "7": ["HDMI-A-1"],
// "8": ["HDMI-A-1"],
// "9": ["HDMI-A-1"],
// "10": ["HDMI-A-1"],
//"1": ["HDMI-A-1"],
//"2": ["HDMI-A-1"],
//"3": ["HDMI-A-1"],
//"4": ["HDMI-A-1"],
//"5": ["HDMI-A-1"],
//"6": ["DVI-D-1"],
//"7": ["DVI-D-1"],
//"8": ["DVI-D-1"],
//"9": ["DVI-D-1"],
//"10": ["DVI-D-1"]
},
// "disable-scroll": true,
"all-outputs": false,
"format": "{name}",
//"format": "{icon}",
"format-icons": {
"1": "+",
"2": "+",
"3": "+",
"4": "+",
"5": "+",
"6": "+",
"7": "+",
"8": "+",
"9": "+",
"10": "+",
// "1": "1",
// "2": "2",
// "3": "3-sch", // schedule
// "4": "4-comms",
// "5": "5-mon", // monitor
// "6": "6-em", // emacs
// "7": "7-se", // search/web
// "8": "8-tm", // terminal
// "9": "9-gm",
// "10": "10",
//"1": "1-em", // emacs
//"2": "2-se", // search/web
//"3": "3-tm", // terminal
//"4": "4-gm",
//"5": "5",
//"6": "6",
//"7": "7",
//"8": "8-sch", // schedule
//"9": "9-comms",
//"10": "10-mon", // monitor
}
},
"keyboard-state": {
"numlock": true,
"capslock": true,
"format": "{name} {icon}",
"format-icons": {
"locked": "",
"unlocked": ""
}
},
"sway/mode": {
"format": "<span style=\"italic\">{}</span>"
},
"idle_inhibitor": {
"format": "{icon}",
"format-icons": {
"activated": "",
"deactivated": ""
}
},
"tray": {
"icon-size": 15,
"spacing": 10
},
"clock": {
// "timezone": "America/New_York",
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
"format": "{:%H:%M}",
//"format": "{:%Y-%m-%d %H:%M:%S}",
//"format": "{:%Y-%m-%d %I:%M:%S %p}",
//"format": "day # {:%j}",
"interval": 1,
"on-click": "uxnemu ~/.local/uxn/catclock.rom"
},
"cpu": {
"format": " {usage}%",
// "tooltip": false
},
"memory": {
"format": " {}%"
},
"battery": {
"states": {
"good": 95,
"warning": 30,
"critical": 15
},
"format": "{icon} {capacity}% ({time})",
"format-charging": " {capacity}%",
"format-plugged": " {capacity}%",
// "format-good": "", // An empty format will hide the module
// "format-full": "",
"format-icons": ["", "", "", "", ""]
},
"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}",
"on-click": "$TERMINAL -e nmtui"
},
"pulseaudio": {
// "scroll-step": 1, // %, can be a float
"format": "{icon} {volume}%",
"format-bluetooth": "{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": "$TERMINAL -e pulsemixer"
// "on-click": "pavucontrol"
},
"mpd": {
"server": "localhost",
"port": 6600,
"format": "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon} {artist} | {title} | {elapsedTime:%M:%S}/{totalTime:%M:%S}",
// "max-length": 200,
"format-disconnected": "-",
"format-stopped": "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}Stopped",
"interval": 2,
"consume-icons": {
"on": " " // Icon shows only when "consume" is on
},
"random-icons": {
"off": "<span color=\"#f53c3c\"></span> ", // Icon grayed out when "random" is off
"on": " "
},
"repeat-icons": {
"on": " "
},
"single-icons": {
"on": "1 "
},
"state-icons": {
"paused": "",
"playing": ""
},
"tooltip-format": "MPD (connected)",
"tooltip-format-disconnected": "MPD (disconnected)"
},
"custom/media": {
"format": "{icon} {}",
"return-type": "json",
"max-length": 40,
"format-icons": {
"spotify": "",
"default": "🎜"
},
"escape": true,
"exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder
// "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name
},
"custom/swaync": {
"exec": "~/.config/waybar/scripts/notifications.sh",
"on-click": "swaync-client -t",
"restart-interval": 1
},
"custom/emacsstatus": {
"return-type": "json",
"exec": "~/.config/waybar/scripts/emacs-status.sh",
"on-click": "emacsclient -c -a ''",
"format": "{}",
"restart-interval": 3
},
"custom/scratchpad_indicator": {
"interval": 1,
"return-type": "json",
"exec": "swaymsg -t get_tree | jq --unbuffered --compact-output '( select(.name == \"root\") | .nodes[] | select(.name == \"__i3\") | .nodes[] | select(.name == \"__i3_scratch\") | .focus) as $scratch_ids | [.. | (.nodes? + .floating_nodes?) // empty | .[] | select(.id |IN($scratch_ids[]))] as $scratch_nodes | { text: \"\\($scratch_nodes | length)\", tooltip: $scratch_nodes | map(\"\\(.app_id // .window_properties.class) (\\(.id)): \\(.name)\") | join(\"\\n\") }'",
"format": " {}",
"on-click": "exec swaymsg 'scratchpad show'",
"on-click-right": "exec swaymsg 'move scratchpad'"
},
"custom/neralie": {
"exec": "~/.local/bin/neralie",
"on-click": "uxnemu ~/.local/uxn/catclock.rom",
"restart-interval": 1
},
}

View File

@ -0,0 +1,8 @@
#!/bin/sh
while true
do
neralie
sleep .5
neralie
sleep .5
done

View File

@ -1,20 +1,70 @@
/* white */
/*
@define-color bg white;
@define-color button black;
@define-color button-occupied black;
@define-color button-selected black;
@define-color button-box lightgrey;
@define-color widget black;
@define-color widget-border-right transparent;
@define-color border-bottom rgba(100, 114, 125, 0.5);
*/
/* black */
/*@define-color bg black;
@define-color button grey;
@define-color button-occupied grey;
@define-color button-selected grey;
@define-color button-box #424242;
@define-color widget grey;
@define-color border-bottom transparent;
@define-color widget-border-right #424242;*/
/* grey */
/*
@define-color bg #222222;
@define-color button #bbbbbb;
@define-color button-occupied #bbbbbb;
@define-color button-selected #bbbbbb;
@define-color button-box #424242;
@define-color widget #999999;
@define-color widget-border-right #424242;
@define-color border-bottom transparent;*/
/* Tomorrow Night (#161616 bg) */
@define-color border-bottom transparent;
@define-color widget-border-right transparent;
@define-color button #444444;
@define-color button-occupied #c5c8c6;
@define-color button-selected grey;
@define-color button-box #424242;
@define-color bg rgba(22,22,22,0.9);
@define-color widget #c5c8c6;
@define-color border-bottom #333333;
/*@define-color bg rgba(19,19,19,1);*/
* {
border: none;
border-radius: 0;
font-family: IBMPlexMono, monospace, 'Symbols Nerd Font';
/* Cozette */
font-family: 'IBM Plex Mono', 'Symbols Nerd Font';
font-size: 10px;
/*font-size: 14px;*/
min-height: 0;
}
window#waybar {
/*background-color: #000;*/
background-color: #222222;
/*background-color: #161616;*/
/*background-color: transparent;*/
/*background-color: #000;*/
/*color: #ffffff;*/
color: #999999;
/*color: #bbbbbb;*/
/* background colors:
* #000
* #222222 *def*
* #161616
*/
/* colors
* #999999 def
* #bbbbbb
* #ffffff
*/
background-color: @bg;
border-bottom: 2px solid @border-bottom;
/*transition-property: background-color;*/
/*transition-duration: .5s;*/
}
@ -45,13 +95,21 @@ window#waybar.chromium {
#workspaces button.persistent {
background-color: transparent;
color: @button;
}
#workspaces button {
transition: none;
/*
* background colors:
* transparent
* #444444
*/
background-color: transparent;
/*background-color: #444444;*/
color: #bbbbbb;
/* colors:
* #bbbbbb
*/
color: @button-occupied;
padding: 0 8px;
min-width: 0;
}
@ -64,13 +122,36 @@ window#waybar.chromium {
#workspaces button.visible {
/*color: #000000;
background-color: #888888;*/
box-shadow: inset 2px 2px #424242, inset -2px -2px #424242;
/*
* box shadow colors
* #424242 *def*
* #555555
*/
box-shadow: inset 2px 2px @button-box, inset -2px -2px @button-box;
color:@button-selected;
}
#workspaces button.urgent {
background-color: #eb4d4b;
}
/* river tags */
#tags button {
color: @button; /*#444444*/
padding: 0 8px;
min-width: 0;
}
#tags button.occupied {
color: @button-occupied /*#6B313D*/
}
#tags button.focused {
color: @button-selected; /*#9EA68F*/
box-shadow: inset 2px 2px @button-box, inset -2px -2px @button-box;
}
#tags button.urgent {
color: red /* def red */
}
#mode {
background-color: #64727D;
}
@ -92,13 +173,23 @@ window#waybar.chromium {
#custom-swaync,
#custom-scratchpad_indicator,
#custom-emacsstatus,
#custom-neralie,
#mpd {
padding: 0 6px;
/*padding-right: 10px;*/
border-right: 2px solid #424242;
color: #999999;
/*color: #bbbbbb;*/
/*color: #ffffff*/
/*
* border colors
* #424242 *def*
*
*/
border-right: 2px solid @widget-border-right;
/*
* colors
* #999999 *def*
* #bbbbbb
* #ffffff
*/
color: @widget
}
/* im using this near the right edge */