feat(waybar): replace assigned workspaces with numbered ones
This commit is contained in:
@@ -1,25 +1,8 @@
|
|||||||
# Assign workspaces
|
# Custom windowing rules
|
||||||
assign [app_id="firefox"] 2
|
|
||||||
for_window [app_id="firefox"] focus
|
|
||||||
|
|
||||||
assign [class="firefox"] 2
|
|
||||||
for_window [class="firefox"] focus
|
|
||||||
|
|
||||||
assign [app_id=thunar] 3
|
|
||||||
for_window [app_id=thunar] focus
|
|
||||||
|
|
||||||
assign [app_id="org.telegram.desktop"] 4
|
|
||||||
for_window [app_id="org.telegram.desktop"] focus
|
|
||||||
|
|
||||||
# set floating (nontiling)for apps needing it:
|
|
||||||
for_window [class="Yad" instance="yad"] floating enable
|
for_window [class="Yad" instance="yad"] floating enable
|
||||||
for_window [app_id="yad"] floating enable
|
for_window [app_id="yad"] floating enable
|
||||||
for_window [app_id="blueman-manager"] floating enable, resize set width 40 ppt height 30 ppt
|
for_window [app_id="blueman-manager"] floating enable, resize set width 40 ppt height 30 ppt
|
||||||
|
|
||||||
# set floating (nontiling) for special apps:
|
|
||||||
for_window [app_id="pavucontrol" ] floating enable, resize set width 40 ppt height 30 ppt
|
for_window [app_id="pavucontrol" ] floating enable, resize set width 40 ppt height 30 ppt
|
||||||
|
|
||||||
# set floating for window roles
|
|
||||||
for_window [window_role="pop-up"] floating enable
|
for_window [window_role="pop-up"] floating enable
|
||||||
for_window [window_role="bubble"] floating enable
|
for_window [window_role="bubble"] floating enable
|
||||||
for_window [window_role="task_dialog"] floating enable
|
for_window [window_role="task_dialog"] floating enable
|
||||||
@@ -28,7 +11,6 @@ for_window [window_type="dialog"] floating enable
|
|||||||
for_window [window_type="menu"] floating enable
|
for_window [window_type="menu"] floating enable
|
||||||
for_window [window_role="About"] floating enable
|
for_window [window_role="About"] floating enable
|
||||||
for_window [title="File Operation Progress"] floating enable, border pixel 1, sticky enable, resize set width 40 ppt height 30 ppt
|
for_window [title="File Operation Progress"] floating enable, border pixel 1, sticky enable, resize set width 40 ppt height 30 ppt
|
||||||
for_window [app_id="firefox" title="^Library$"] floating enable, border pixel 1, sticky enable, resize set width 40 ppt height 30 ppt
|
|
||||||
for_window [app_id="floating_shell_portrait"] floating enable, border pixel 1, sticky enable, resize set width 30 ppt height 40 ppt
|
for_window [app_id="floating_shell_portrait"] floating enable, border pixel 1, sticky enable, resize set width 30 ppt height 40 ppt
|
||||||
for_window [title="Picture in picture"] floating enable, sticky enable
|
for_window [title="Picture in picture"] floating enable, sticky enable
|
||||||
for_window [title="waybar_htop"] floating enable, resize set width 70 ppt height 70 ppt
|
for_window [title="waybar_htop"] floating enable, resize set width 70 ppt height 70 ppt
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
"position": "top", // Waybar position (top|bottom|left|right)
|
"position": "top", // Waybar position (top|bottom|left|right)
|
||||||
// "height": 30, // Auto-height is used when commented
|
// "height": 30, // Auto-height is used when commented
|
||||||
// "width": 1280, // Full screen width when commented
|
// "width": 1280, // Full screen width when commented
|
||||||
"spacing": 10, // Gaps between modules (in px)
|
"spacing": 16, // Gaps between modules (in px)
|
||||||
// See `man waybar` for more configuration options
|
// See `man waybar` for more configuration options
|
||||||
|
|
||||||
// Configuration - modules-left
|
// Configuration - modules-left
|
||||||
@@ -14,7 +14,7 @@
|
|||||||
"sway/mode",
|
"sway/mode",
|
||||||
"sway/window"
|
"sway/window"
|
||||||
],
|
],
|
||||||
|
|
||||||
"custom/launcher": {
|
"custom/launcher": {
|
||||||
"format":"<span size='x-large'></span>",
|
"format":"<span size='x-large'></span>",
|
||||||
"on-click": "exec fuzzel",
|
"on-click": "exec fuzzel",
|
||||||
@@ -25,13 +25,16 @@
|
|||||||
"disable-scroll": true,
|
"disable-scroll": true,
|
||||||
"disable-markup" : false,
|
"disable-markup" : false,
|
||||||
"all-outputs": true,
|
"all-outputs": true,
|
||||||
"format": " {icon} ",
|
"format": "{icon}",
|
||||||
//"format":"{icon}",
|
|
||||||
"format-icons": {
|
"format-icons": {
|
||||||
"1": "",
|
"3": "3",
|
||||||
"2": "",
|
"4": "4",
|
||||||
"3": "",
|
"5": "5",
|
||||||
"4": "",
|
"6": "6",
|
||||||
|
"7": "7",
|
||||||
|
"8": "8",
|
||||||
|
"9": "9",
|
||||||
|
"10": "10",
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -42,6 +45,7 @@
|
|||||||
|
|
||||||
"sway/window": {
|
"sway/window": {
|
||||||
"format": "{}",
|
"format": "{}",
|
||||||
|
//"all-outputs": true, // Active window shows only on active display when commented
|
||||||
"max-length": 120
|
"max-length": 120
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@@ -1,13 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
LOC="$1"
|
|
||||||
# HTML encode string as %20
|
|
||||||
LOCATION=$(sed -e "s/ /%20/g" <<<"$LOC")
|
|
||||||
content=$(curl -sS "https://thisdavej.azurewebsites.net/api/weather/current?loc=$LOCATION°=C")
|
|
||||||
ICON=$(curl -s 'https://wttr.in/?format=1' | sed 's/[+0-9a-cA-Z°-]//g' )
|
|
||||||
# echo $ICON
|
|
||||||
TEMP=$(echo $content | jq -r '. | "\(.temperature)°\(.degType)"' | sed 's/"//g')
|
|
||||||
TOOLTIP=$(echo $content | jq -r '. | "\(.temperature)°\(.degType)\n\(.skytext)"' | sed 's/"//g')
|
|
||||||
CLASS=$(echo $content | jq .skytext)
|
|
||||||
echo '{"text": "'$TEMP'", "tooltip": "'$ICON $TOOLTIP $LOC'", "class": '$CLASS' }'
|
|
||||||
|
|
||||||
@@ -10,7 +10,7 @@
|
|||||||
* Keyframes
|
* Keyframes
|
||||||
* -------------------------------------------------------------------------- */
|
* -------------------------------------------------------------------------- */
|
||||||
|
|
||||||
@define-color highlight #5294e2 ;
|
@define-color highlight #685878 ;
|
||||||
@define-color base1 #19191e ;
|
@define-color base1 #19191e ;
|
||||||
|
|
||||||
@keyframes blink-warning {
|
@keyframes blink-warning {
|
||||||
@@ -78,7 +78,6 @@
|
|||||||
* -------------------------------------------------------------------------- */
|
* -------------------------------------------------------------------------- */
|
||||||
|
|
||||||
#custom-launcher {
|
#custom-launcher {
|
||||||
font-size:15px;
|
|
||||||
margin-left:15px;
|
margin-left:15px;
|
||||||
margin-right:10px;
|
margin-right:10px;
|
||||||
}
|
}
|
||||||
@@ -88,15 +87,15 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
#workspaces button {
|
#workspaces button {
|
||||||
border-bottom: 3px solid transparent;
|
border-radius: 5px;
|
||||||
margin-bottom: 0px;
|
color: #eceff4;
|
||||||
padding:0px;
|
padding: 1px 6px;
|
||||||
|
margin-right: 2px;
|
||||||
|
margin-left: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#workspaces button.focused {
|
#workspaces button.focused {
|
||||||
border-bottom: 3px solid @highlight;
|
border: 1px solid #d8dee9;
|
||||||
margin-bottom: 1px;
|
|
||||||
padding-left:0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#workspaces button.urgent {
|
#workspaces button.urgent {
|
||||||
|
|||||||
Reference in New Issue
Block a user