Adding sway, waybar, wofi and other things
This commit is contained in:
		
							parent
							
								
									b0cb73adda
								
							
						
					
					
						commit
						3b6d7cac88
					
				
					 5 changed files with 444 additions and 49 deletions
				
			
		| 
						 | 
				
			
			@ -1,57 +1,33 @@
 | 
			
		|||
{
 | 
			
		||||
    // "layer": "top", // Waybar at top layer
 | 
			
		||||
    // "position": "bottom", // Waybar position (top|bottom|left|right)
 | 
			
		||||
    "height": 30, // Waybar height (to be removed for auto height)
 | 
			
		||||
    "position": "bottom", // 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": [],
 | 
			
		||||
    "modules-left": ["sway/workspaces", "sway/mode", "sway/window"],
 | 
			
		||||
    "modules-center": ["clock"],
 | 
			
		||||
    "modules-right": ["pulseaudio", "network", "cpu", "memory", "temperature", "battery", "battery#bat2", "tray"],
 | 
			
		||||
    "margin-top": 5,
 | 
			
		||||
    "margin-bottom": 5,
 | 
			
		||||
    // Modules configuration
 | 
			
		||||
    // "sway/workspaces": {
 | 
			
		||||
    //     "disable-scroll": true,
 | 
			
		||||
    //     "all-outputs": true,
 | 
			
		||||
    //     "format": "{name}: {icon}",
 | 
			
		||||
    //     "format-icons": {
 | 
			
		||||
    //         "1": "",
 | 
			
		||||
    //         "2": "",
 | 
			
		||||
    //         "3": "",
 | 
			
		||||
    //         "4": "",
 | 
			
		||||
    //         "5": "",
 | 
			
		||||
    //         "urgent": "",
 | 
			
		||||
    //         "focused": "",
 | 
			
		||||
    //         "default": ""
 | 
			
		||||
    //     }
 | 
			
		||||
    // },
 | 
			
		||||
    "sway/workspaces": {
 | 
			
		||||
        "disable-scroll": true,
 | 
			
		||||
        "all-outputs": true,
 | 
			
		||||
        "format": "{icon}",
 | 
			
		||||
        "format-icons": {
 | 
			
		||||
            "1": "",
 | 
			
		||||
            "2": "",
 | 
			
		||||
            "3": "",
 | 
			
		||||
            "4": "",
 | 
			
		||||
            "5": "",
 | 
			
		||||
            "urgent": "",
 | 
			
		||||
            "focused": "",
 | 
			
		||||
            "default": ""
 | 
			
		||||
        }
 | 
			
		||||
    },
 | 
			
		||||
    "sway/mode": {
 | 
			
		||||
        "format": "<span style=\"italic\">{}</span>"
 | 
			
		||||
    },
 | 
			
		||||
    "mpd": {
 | 
			
		||||
        "format": "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) ⸨{songPosition}|{queueLength}⸩ ",
 | 
			
		||||
        "format-disconnected": "Disconnected ",
 | 
			
		||||
        "format-stopped": "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}Stopped ",
 | 
			
		||||
        "unknown-tag": "N/A",
 | 
			
		||||
        "interval": 2,
 | 
			
		||||
        "consume-icons": {
 | 
			
		||||
            "on": " "
 | 
			
		||||
        },
 | 
			
		||||
        "random-icons": {
 | 
			
		||||
            "off": "<span color=\"#f53c3c\"></span> ",
 | 
			
		||||
            "on": " "
 | 
			
		||||
        },
 | 
			
		||||
        "repeat-icons": {
 | 
			
		||||
            "on": " "
 | 
			
		||||
        },
 | 
			
		||||
        "single-icons": {
 | 
			
		||||
            "on": "1 "
 | 
			
		||||
        },
 | 
			
		||||
        "state-icons": {
 | 
			
		||||
            "paused": "",
 | 
			
		||||
            "playing": ""
 | 
			
		||||
        },
 | 
			
		||||
        "tooltip-format": "MPD (connected)",
 | 
			
		||||
        "tooltip-format-disconnected": "MPD (disconnected)"
 | 
			
		||||
    },
 | 
			
		||||
    "idle_inhibitor": {
 | 
			
		||||
        "format": "{icon}",
 | 
			
		||||
        "format-icons": {
 | 
			
		||||
| 
						 | 
				
			
			@ -74,7 +50,7 @@
 | 
			
		|||
        "tooltip": false
 | 
			
		||||
    },
 | 
			
		||||
    "memory": {
 | 
			
		||||
        "format": "{}% "
 | 
			
		||||
        "format": "{}% "
 | 
			
		||||
    },
 | 
			
		||||
    "temperature": {
 | 
			
		||||
        // "thermal-zone": 2,
 | 
			
		||||
| 
						 | 
				
			
			@ -104,12 +80,24 @@
 | 
			
		|||
        "format-icons": ["", "", "", "", ""]
 | 
			
		||||
    },
 | 
			
		||||
    "battery#bat2": {
 | 
			
		||||
        "bat": "BAT2"
 | 
			
		||||
        "bat": "BAT2",
 | 
			
		||||
        "states": {
 | 
			
		||||
            // "good": 95,
 | 
			
		||||
            "warning": 30,
 | 
			
		||||
            "critical": 15
 | 
			
		||||
        },
 | 
			
		||||
        "format": "{capacity}% {icon}",
 | 
			
		||||
        "format-charging": "{capacity}% ",
 | 
			
		||||
        "format-plugged": "{capacity}% ",
 | 
			
		||||
        "format-alt": "{time} {icon}",
 | 
			
		||||
        // "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-ethernet": "{ifname}: {ipaddr} ",
 | 
			
		||||
        "format-linked": "{ifname} (No IP) ",
 | 
			
		||||
        "format-disconnected": "Disconnected ⚠",
 | 
			
		||||
        "format-alt": "{ifname}: {ipaddr}/{cidr}"
 | 
			
		||||
| 
						 | 
				
			
			@ -144,5 +132,18 @@
 | 
			
		|||
        "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
 | 
			
		||||
    },
 | 
			
		||||
    "wlr/taskbar": {
 | 
			
		||||
   	"format": "<span style='italic'>{icon} {title}</span>",
 | 
			
		||||
   	"icon-size": 20,
 | 
			
		||||
   	"icon-theme": "Papirus-Dark",
 | 
			
		||||
   	"tooltip-format": "{title}",
 | 
			
		||||
	"max-length": 30,
 | 
			
		||||
   	"on-click": "activate",
 | 
			
		||||
   	"on-click-middle": "close"
 | 
			
		||||
    },
 | 
			
		||||
    "sway/window": {
 | 
			
		||||
    	"format": "      {} ",
 | 
			
		||||
	"max-length": 60,
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue