extensive update: some cleanup, todo/agenda changes, publishing system, swayfx, WIPs, etc.
This commit is contained in:
		@@ -6,38 +6,60 @@
 | 
			
		||||
    // Choose the order of the modules
 | 
			
		||||
    "modules-left": ["sway/workspaces", "sway/mode", "custom/media"],
 | 
			
		||||
    "modules-center": [],
 | 
			
		||||
    "modules-right": ["idle_inhibitor", "mpd", "pulseaudio", "network", "cpu", "memory", "temperature", "battery", "clock", "tray", "custom/swaync", "custom/emacsstatus"],
 | 
			
		||||
    //"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" ],
 | 
			
		||||
    "sway/workspaces": {
 | 
			
		||||
       "disable-scroll-wraparound": true
 | 
			
		||||
    },
 | 
			
		||||
    // Modules configuration
 | 
			
		||||
    "sway/workspaces": {
 | 
			
		||||
    	"persistent_workspaces": {
 | 
			
		||||
	    "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"]
 | 
			
		||||
	    // "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": "{icon}",
 | 
			
		||||
         "format": "{name}",
 | 
			
		||||
         "format-icons": {
 | 
			
		||||
             "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
 | 
			
		||||
             // "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": {
 | 
			
		||||
@@ -66,8 +88,10 @@
 | 
			
		||||
    "clock": {
 | 
			
		||||
        // "timezone": "America/New_York",
 | 
			
		||||
        "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
 | 
			
		||||
        "format": "{:%Y-%m-%d %H:%M:%S}",
 | 
			
		||||
        "format": "{:%H:%M}",
 | 
			
		||||
        //"format": "{:%Y-%m-%d %H:%M:%S}",
 | 
			
		||||
        //"format": "{:%Y-%m-%d %I:%M:%S %p}",
 | 
			
		||||
        //"format": "day # {:%j}",
 | 
			
		||||
	"interval": 1
 | 
			
		||||
    },
 | 
			
		||||
    "cpu": {
 | 
			
		||||
@@ -96,7 +120,8 @@
 | 
			
		||||
        "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": {
 | 
			
		||||
        // "scroll-step": 1, // %, can be a float
 | 
			
		||||
@@ -164,8 +189,18 @@
 | 
			
		||||
        "restart-interval": 1
 | 
			
		||||
    },
 | 
			
		||||
    "custom/emacsstatus": {
 | 
			
		||||
        "return-type": "json",
 | 
			
		||||
        "exec": "~/.config/waybar/scripts/emacs-status.sh",
 | 
			
		||||
        "on-click": "emacsclient -c || emacs",
 | 
			
		||||
	"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'"
 | 
			
		||||
    },
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -1,7 +1,15 @@
 | 
			
		||||
inactive="{
 | 
			
		||||
\"text\": \"x\",
 | 
			
		||||
\"tooltip\": \"emacs is not running.\"
 | 
			
		||||
}\n"
 | 
			
		||||
active="{
 | 
			
		||||
\"text\": \"e+\",
 | 
			
		||||
\"tooltip\": \"emacs is running.\"
 | 
			
		||||
}\n"
 | 
			
		||||
pgrep emacs >/dev/null
 | 
			
		||||
if [ $? -eq 1 ]
 | 
			
		||||
then
 | 
			
		||||
echo 'X'
 | 
			
		||||
echo $inactive
 | 
			
		||||
else
 | 
			
		||||
echo 'e+'
 | 
			
		||||
echo $active
 | 
			
		||||
fi
 | 
			
		||||
 
 | 
			
		||||
@@ -1,44 +1,20 @@
 | 
			
		||||
* {
 | 
			
		||||
    border: none;
 | 
			
		||||
    border-radius: 0;
 | 
			
		||||
    font-family: IBMPlexMono, monospace;
 | 
			
		||||
    font-family: IBMPlexMono, monospace, 'Symbols Nerd Font';
 | 
			
		||||
    font-size: 10px;
 | 
			
		||||
    /*font-size: 14px;*/
 | 
			
		||||
    min-height: 0;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#workspaces {
 | 
			
		||||
    margin: 0 4px;
 | 
			
		||||
}
 | 
			
		||||
#workspaces button {
 | 
			
		||||
    /*background-color: #6B313D;*/
 | 
			
		||||
    /*color: #bbbbbb;*/
 | 
			
		||||
    background-color: #444444;
 | 
			
		||||
    color: #bbbbbb;
 | 
			
		||||
    padding: 0 8px;
 | 
			
		||||
    min-width: 0;
 | 
			
		||||
}
 | 
			
		||||
#workspaces button.persistent {
 | 
			
		||||
    /*background-color: #000000;*/
 | 
			
		||||
    background-color: #222222;
 | 
			
		||||
    color: #bbbbbb;
 | 
			
		||||
}
 | 
			
		||||
#workspaces button.focused {
 | 
			
		||||
    color: #000000;
 | 
			
		||||
    background-color: #888888;
 | 
			
		||||
    }
 | 
			
		||||
#workspaces button.visible {
 | 
			
		||||
    color: #000000;
 | 
			
		||||
    background-color: #888888;
 | 
			
		||||
}
 | 
			
		||||
#workspaces button.urgent {
 | 
			
		||||
    background-color: #eb4d4b;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
window#waybar {
 | 
			
		||||
    /*background-color: #000;*/
 | 
			
		||||
    background-color: #222222;
 | 
			
		||||
    color: #ffffff;
 | 
			
		||||
    /*background-color: #161616;*/
 | 
			
		||||
    /*background-color: transparent;*/
 | 
			
		||||
    /*background-color: #000;*/
 | 
			
		||||
    /*color: #ffffff;*/
 | 
			
		||||
    color: #999999;
 | 
			
		||||
    /*color: #bbbbbb;*/
 | 
			
		||||
    /*transition-property: background-color;*/
 | 
			
		||||
    /*transition-duration: .5s;*/
 | 
			
		||||
}
 | 
			
		||||
@@ -65,6 +41,35 @@ window#waybar.chromium {
 | 
			
		||||
    border: none;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
    /*background-color: #6B313D;*/
 | 
			
		||||
 | 
			
		||||
#workspaces button.persistent {
 | 
			
		||||
    background-color: transparent;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#workspaces button {
 | 
			
		||||
    transition: none;
 | 
			
		||||
    background-color: transparent;
 | 
			
		||||
    /*background-color: #444444;*/
 | 
			
		||||
    color: #bbbbbb;
 | 
			
		||||
    padding: 0 8px;
 | 
			
		||||
    min-width: 0;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/*#workspaces button.active {
 | 
			
		||||
    background-color: #444444;
 | 
			
		||||
    color: #bbbbbb;
 | 
			
		||||
}*/
 | 
			
		||||
 | 
			
		||||
#workspaces button.visible {
 | 
			
		||||
    /*color: #000000;
 | 
			
		||||
    background-color: #888888;*/
 | 
			
		||||
    box-shadow: inset 2px 2px #424242, inset -2px -2px #424242;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#workspaces button.urgent {
 | 
			
		||||
    background-color: #eb4d4b;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#mode {
 | 
			
		||||
    background-color: #64727D;
 | 
			
		||||
@@ -85,20 +90,27 @@ window#waybar.chromium {
 | 
			
		||||
#idle_inhibitor,
 | 
			
		||||
#bluetooth,
 | 
			
		||||
#custom-swaync,
 | 
			
		||||
#custom-scratchpad_indicator,
 | 
			
		||||
#custom-emacsstatus,
 | 
			
		||||
#mpd {
 | 
			
		||||
    padding: 0 6px;
 | 
			
		||||
    /*padding-right: 10px;*/
 | 
			
		||||
    border-right: 2px solid #424242;
 | 
			
		||||
    color: #999999;
 | 
			
		||||
    /*color: #bbbbbb;*/
 | 
			
		||||
    /*color: #ffffff*/
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/* im using this near the right edge */
 | 
			
		||||
#custom-emacsstatus {
 | 
			
		||||
/* test {
 | 
			
		||||
    padding: 0 6px;
 | 
			
		||||
    color: #999999;
 | 
			
		||||
}
 | 
			
		||||
}*/
 | 
			
		||||
 | 
			
		||||
#window,
 | 
			
		||||
#workspaces {
 | 
			
		||||
    margin: 0 4px;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/* If workspaces is the leftmost module, omit left margin */
 | 
			
		||||
.modules-left > widget:first-child > #workspaces {
 | 
			
		||||
@@ -141,11 +153,11 @@ window#waybar.chromium {
 | 
			
		||||
#battery.critical:not(.charging) {
 | 
			
		||||
    background-color: #f53c3c;
 | 
			
		||||
    color: #ffffff;
 | 
			
		||||
    /*animation-name: blink;
 | 
			
		||||
    animation-name: blink;
 | 
			
		||||
    animation-duration: 0.5s;
 | 
			
		||||
    animation-timing-function: linear;
 | 
			
		||||
    animation-iteration-count: infinite;
 | 
			
		||||
    animation-direction: alternate;*/
 | 
			
		||||
    animation-direction: alternate;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
label:focus {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user