Add files via upload

This commit is contained in:
OdiousImp2604
2021-01-17 18:17:20 +00:00
committed by GitHub
parent deba7093bd
commit 5023d0863c
12 changed files with 629 additions and 61 deletions

View File

@@ -1,17 +1,7 @@
// =============================================================================
//
// Waybar configuration
//
// Configuration reference: https://github.com/Alexays/Waybar/wiki/Configuration
//
// =============================================================================
// Global
{
// -------------------------------------------------------------------------
// Global configuration
// -------------------------------------------------------------------------
"layer": "top",
"layer": "top",
"position": "top",
@@ -19,17 +9,28 @@
"height": 30,
"modules-left": [
"custom/launcher",
"sway/workspaces",
"sway/mode"
"sway/mode",
],
"modules-center": [
"custom/des",
"custom/seperator",
"custom/firefox",
"custom/seperator",
"custom/files",
"custom/seperator",
"custom/terminal",
"custom/seperator",
],
"modules-right": [
"network",
"memory",
"cpu",
"temperature",
"custom/weather",
"pulseaudio",
"custom/keyboard-layout",
"battery",
@@ -40,12 +41,29 @@
"custom/power"
],
// Modules
"sway/workspaces": {
"disable-scroll": true,
"all-outputs": false,
"format": "{icon}",
"format-icons": {
"1": "",
"2": "",
"3": "",
"4": "",
"5": "",
"6": "",
"urgent": "",
"focused": ",",
"default": ""
}
},
"sway/mode": {
"format": "<span style=\"italic\">{}</span>"
},
// -------------------------------------------------------------------------
// Modules
// -------------------------------------------------------------------------
"battery": {
"battery": {
"states": {
// "good": 95,
"warning": 30,
@@ -79,7 +97,7 @@
"warning": 70,
"critical": 90
},
"on-click": "pavucontrol",
"on-click": "htop",
},
"custom/keyboard-layout": {
@@ -157,19 +175,12 @@
"on-scroll-down": "pactl set-sink-volume @DEFAULT_SINK@ +5%",
},
"temperature": {
"critical-threshold": 80,
"interval": 5,
"format": "{icon} {temperatureC}°C",
"format-icons": [
"", // Icon: temperature-empty
"", // Icon: temperature-quarter
"", // Icon: temperature-half
"", // Icon: temperature-three-quarters
"" // Icon: temperature-full
],
"tooltip": true
},
"custom/weather": {
"exec": "~/.config/sway/scripts/weather.sh Royal Tunbridge Wells",
"format": "{}",
"return-type": "json",
"interval": 600
},
"tray": {
"icon-size": 21,
@@ -189,5 +200,36 @@
"on-click": "exec wlogout",
"tooltip": false
},
"custom/firefox": {
"format": "",
"on-click": "exec usr/bin/firefox",
"tooltip": false
},
"custom/terminal": {
"format": "",
"on-click": "exec usr/bin/alacritty",
"tooltip": false
},
"custom/files": {
"format": "",
"on-click": "usr/bin/thunar",
"tooltip": false
},
"custom/seperator": {
"format": "|",
},
"custom/launcher": {
"format":"",
"on-click": "exec /usr/bin/wofi",
"tooltip": false
},
"custom/des": {
"format": "Applications",
},
}
//To set weather look in the weather script and replace $LOCATION with your LOCATION

View File

@@ -0,0 +1,13 @@
#!/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&deg=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' }'

View File

@@ -64,6 +64,7 @@
#mode,
#network,
#pulseaudio,
#custom-weather,
#temperature,
#tray {
padding-left: 10px;
@@ -111,6 +112,7 @@
font-weight: bold;
background-color: #545157;
margin-left: 2px;
}
#cpu {
@@ -129,6 +131,7 @@
animation-timing-function: linear;
animation-iteration-count: infinite;
animation-direction: alternate;
color: #a3be8c
}
#memory.warning {
@@ -223,15 +226,49 @@
margin-bottom:4px;
padding-left: 10px;
padding-right: 10px;
background-color: #545157;
background-color: #545157;
}
#backlight {
margin-right:5px;
color: #c4b729;
}
#custom-weather {
color:#81a1c1;
}
#custom-firefox {
font-size: 20px;
color: #d08770;
}
#custom-files {
color: #ebcb8b;
font-size: 20px;
}
#custom-seperator {
color: #a3be8c;
margin-left: 20px;
margin-right: 20px;
font-size: 20px;
}
#custom-big {
margin-right: 200px;
}
#custom-des {
margin-left: 20px;
font-size: 15px;
}
#custom-keyboard-layout {
color: #c90000;
}
#custom-launcher {
color: #eceff4;
font-size: 25px;
margin-right: 7px;
padding-left: 15px;
padding-right: 15px;
background-color: #545157;
}