Guest User

Untitled

a guest
Feb 11th, 2024
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 5.79 KB | None | 0 0
  1. [{
  2.     "layer": "top", // Waybar at top layer
  3.     "position": "top", // Waybar position (top|bottom|left|right)
  4.     "height": 30, // Waybar height (to be removed for auto height)
  5.     "width": 1900, // Waybar width
  6.     "spacing": 4, // Gaps between modules (4px)
  7.     "background-color": "#000000",
  8.  
  9.     // Choose the order of the modules
  10.     "modules-left": ["sway/workspaces", "sway/mode", "sway/scratchpad", "custom/media"],
  11.     "modules-center": ["clock"],
  12.     "modules-right": [],
  13.     //Modules configuration
  14.     "sway/workspaces": {
  15.          "disable-scroll": true,
  16.          "all-outputs": true,
  17.          "warp-on-scroll": false,
  18.          "format": "{name}: {icon}",
  19.          "format-icons": {
  20.              "1": "",
  21.              "2": "",
  22.              "3": "",
  23.              "4": "",
  24.              "5": "",
  25.              "urgent": "",
  26.              "focused": "",
  27.              "default": ""
  28.          }
  29.      },
  30.     "sway/mode": {
  31.         "format": "<span style=\"italic\">{}</span>"
  32.     },
  33.  "sway/scratchpad": {
  34.         "format": "{icon} {count}",
  35.         "show-empty": false,
  36.         "format-icons": ["", ""],
  37.         "tooltip": true,
  38.         "tooltip-format": "{app}: {title}"
  39.     },
  40.     "idle_inhibitor": {
  41.         "format": "{icon}",
  42.         "format-icons": {
  43.             "activated": "",
  44.             "deactivated": ""
  45.         }
  46.     },
  47.     "tray": {
  48.         "icon-size": 21,
  49.         "spacing": 10
  50.     },
  51.         "clock": {
  52.             "interval": 60,
  53.             "tooltip": true,
  54.             "format": "{:%I:%M %p}",
  55.             "tooltip-format": "{:%Y-%m-%d}",
  56.         },
  57.  "pulseaudio": {
  58.         // "scroll-step": 1, // %, can be a float
  59.         "format": "{volume}% {icon} {format_source}",
  60.         "format-bluetooth": "{volume}% {icon} {format_source}",
  61.         "format-bluetooth-muted": " {icon} {format_source}",
  62.         "format-muted": " {format_source}",
  63.         "format-source": "{volume}% ",
  64.         "format-source-muted": "",
  65.         "format-icons": {
  66.             "headphone": "",
  67.             "hands-free": "",
  68.             "headset": "",
  69.             "phone": "",
  70.             "portable": "",
  71.             "car": "",
  72.             "default": ["", "", ""]
  73.         },
  74.         "on-click": "pavucontrol"
  75.     },
  76.     "custom/media": {
  77.         "format": "{icon} {}",
  78.         "return-type": "json",
  79.         "max-length": 40,
  80.         "format-icons": {
  81.             "spotify": "",
  82.             "default": "🎜"
  83.         },
  84.         "escape": true,
  85.         "exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder
  86.         // "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name
  87.     }
  88. },
  89. {
  90.     "layer": "top", // Waybar at top layer
  91.     "position": "bottom", // Waybar position (top|bottom|left|right)
  92.     "height": 30, // Waybar height (to be removed for auto height)
  93.     "width": 1940, // Waybar width
  94.     "spacing": 4, // Gaps between modules (4px)
  95.     "id": "botBar",
  96.     // Choose the order of the modules
  97.     "modules-left": [],
  98.     "modules-center": ["custom/audiovisualizer"],
  99.     "modules-right": ["pulseaudio/slider","wireplumber"],
  100.     //Modules configuration
  101.        "sway/workspaces": {
  102.          "disable-scroll": true,
  103.          "all-outputs": true,
  104.          "warp-on-scroll": false,
  105.          "format": "{name}: {icon}",
  106.          "format-icons": {
  107.              "1": "",
  108.              "2": "",
  109.              "3": "",
  110.              "4": "",
  111.              "5": "",
  112.              "urgent": "",
  113.              "focused": "",
  114.              "default": ""
  115.          }
  116.      },
  117.     "sway/mode": {
  118.         "format": "<span style=\"italic\">{}</span>"
  119.     },
  120.     "custom/audiovisualizer": {
  121.         "format": "{}",
  122.         "return-type": "json",
  123.         "exec": "python3 /home/dylan/scripts/visualizer.py",
  124.         "on-click": "pkill -SIGRTMIN+1 waybar",
  125.         "signal": 1
  126.     },
  127.  
  128.     "sway/scratchpad": {
  129.         "format": "{icon} {count}",
  130.         "show-empty": false,
  131.         "format-icons": ["", ""],
  132.         "tooltip": true,
  133.         "tooltip-format": "{app}: {title}"
  134.     },
  135.     "idle_inhibitor": {
  136.         "format": "{icon}",
  137.         "format-icons": {
  138.             "activated": "",
  139.             "deactivated": ""
  140.         }
  141.     },
  142.     "tray": {
  143.         "icon-size": 21,
  144.         "spacing": 10
  145.     },
  146.     "clock": {
  147.         // "timezone": "America/New_York",
  148.         "format": "{%I:%M %p}",
  149.         "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
  150.         "format-alt": "{:%Y-%m-%d}"
  151.     },
  152.   "pulseaudio": {
  153.         // "scroll-step": 1, // %, can be a float
  154.         "format": "{volume}% {icon} {format_source}",
  155.         "format-bluetooth": "{volume}% {icon} {format_source}",
  156.         "format-bluetooth-muted": " {icon} {format_source}",
  157.         "format-muted": " {format_source}",
  158.         "format-source": "{volume}% ",
  159.         "format-source-muted": "",
  160.         "format-icons": {
  161.             "headphone": "",
  162.             "hands-free": "",
  163.             "headset": "",
  164.             "phone": "",
  165.             "portable": "",
  166.             "car": "",
  167.             "default": ["", "", ""]
  168.         },
  169.         "on-click": "pavucontrol"
  170.     },
  171.     "custom/media": {
  172.         "format": "{icon} {}",
  173.         "return-type": "json",
  174.         "max-length": 40,
  175.         "format-icons": {
  176.             "spotify": "",
  177.             "default": "🎜"
  178.         },
  179.         "escape": true,
  180.         "exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder
  181.         // "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name
  182.     }
  183. }
  184. ]
Add Comment
Please, Sign In to add comment