From 5023d0863c68acb72ab276b765e7791c5b5e086f Mon Sep 17 00:00:00 2001 From: OdiousImp2604 <74424076+OdiousImp2604@users.noreply.github.com> Date: Sun, 17 Jan 2021 18:17:20 +0000 Subject: [PATCH] Add files via upload --- config/sway/config | 28 +- config/sway/keyboard.conf | 457 ++++++++++++++++++++++++++ config/sway/scripts/lockman.sh | 2 +- config/sway/scripts/screenshotArea.sh | 2 +- config/sway/scripts/screenshotFull.sh | 2 +- config/sway/scripts/weather.sh | 15 + config/waybar/config | 108 ++++-- config/waybar/scripts/weather.sh | 13 + config/waybar/style.css | 47 ++- config/wlogout/style.css | 12 +- config/wofi/config | 1 + config/wofi/style.css | 3 +- 12 files changed, 629 insertions(+), 61 deletions(-) create mode 100644 config/sway/keyboard.conf create mode 100644 config/sway/scripts/weather.sh create mode 100644 config/waybar/scripts/weather.sh diff --git a/config/sway/config b/config/sway/config index 960eaac..59428c6 100644 --- a/config/sway/config +++ b/config/sway/config @@ -3,6 +3,13 @@ # Modifier Key - Use Mod1 for Alt set $mod Mod4 +# Keyboard - Uncomment to Pick - Defualt is ENGLISH (UK) +# All langauges and varinats in keyboard.conf +input * xkb_layout "gb" +#input * xkb_layout "us" +#input * xkb_layout "de" +#input * xkb_layout "nl" + #Default Terminal Emulator set $term alacritty @@ -186,6 +193,7 @@ bindsym $mod+Shift+minus move scratchpad bindsym alt+tab scratchpad show bindsym $mod+minus scratchpad show + # switch to workspace: bindsym $mod+1 workspace 1 bindsym $mod+2 workspace 2 @@ -280,19 +288,15 @@ bindsym $mod+l exec ~/.config/sway/scripts/lockman.sh #Network Applet exec nm-applet --indicator -set $bg-color #2f343f -set $inactive-bg-color #2f343f -set $text-color #f3f4f5 -set $inactive-text-color #676e7d -set $urgent-bg-color #e53935 -set $indicator-color #a0a0a0 +# class border bground text indicator child_border +client.focused #6272A4 #6272A4 #F8F8F2 #6272A4 #6272A4 +client.focused_inactive #44475A #44475A #F8F8F2 #44475A #44475A +client.unfocused #282A36 #282A36 #BFBFBF #282A36 #282A36 +client.urgent #44475A #FF5555 #F8F8F2 #FF5555 #FF5555 +client.placeholder #282A36 #282A36 #F8F8F2 #282A36 #282A36 + +client.background #F8F8F2 -# set window colors: -# border background text indicator -client.focused $bg-color $bg-color $text-color $indicator-color -client.unfocused $inactive-bg-color $inactive-bg-color $inactive-text-color $indicator-color -client.focused_inactive $inactive-bg-color $inactive-bg-color $inactive-text-color $indicator-color -client.urgent $urgent-bg-color $urgent-bg-color $text-color $indicator-color # Input configuration diff --git a/config/sway/keyboard.conf b/config/sway/keyboard.conf new file mode 100644 index 0000000..0c034fd --- /dev/null +++ b/config/sway/keyboard.conf @@ -0,0 +1,457 @@ +! layout + us USA + ad Andorra + af Afghanistan + ara Arabic + al Albania + am Armenia + az Azerbaijan + by Belarus + be Belgium + bd Bangladesh + in India + ba Bosnia and Herzegovina + br Brazil + bg Bulgaria + ma Morocco + mm Myanmar + ca Canada + cd Congo, Democratic Republic of the + cn China + hr Croatia + cz Czechia + dk Denmark + nl Netherlands + bt Bhutan + ee Estonia + ir Iran + iq Iraq + fo Faroe Islands + fi Finland + fr France + gh Ghana + gn Guinea + ge Georgia + de Germany + gr Greece + hu Hungary + is Iceland + il Israel + it Italy + jp Japan + kg Kyrgyzstan + kh Cambodia + kz Kazakhstan + la Laos + latam Latin American + lt Lithuania + lv Latvia + mao Maori + me Montenegro + mk Macedonia + mt Malta + mn Mongolia + no Norway + pl Poland + pt Portugal + ro Romania + ru Russia + rs Serbia + si Slovenia + sk Slovakia + es Spain + se Sweden + ch Switzerland + sy Syria + tj Tajikistan + lk Sri Lanka + th Thailand + tr Turkey + tw Taiwan + ua Ukraine + gb United Kingdom + uz Uzbekistan + vn Vietnam + kr Korea, Republic of + nec_vndr/jp Japan (PC-98xx Series) + ie Ireland + pk Pakistan + mv Maldives + za South Africa + epo Esperanto + np Nepal + ng Nigeria + et Ethiopia + sn Senegal + brai Braille + tm Turkmenistan + ml Mali + tz Tanzania + +! variant + chr us: Cherokee + euro us: With EuroSign on 5 + intl us: International (with dead keys) + alt-intl us: Alternative international (former us_intl) + colemak us: Colemak + dvorak us: Dvorak + dvorak-intl us: Dvorak international + dvorak-l us: Left handed Dvorak + dvorak-r us: Right handed Dvorak + dvorak-classic us: Classic Dvorak + dvp us: Programmer Dvorak + rus us: Russian phonetic + mac us: Macintosh + altgr-intl us: International (AltGr dead keys) + olpc2 us: Group toggle on multiply/divide key + srp us: Serbian + ps af: Pashto + uz af: Southern Uzbek + olpc-ps af: OLPC Pashto + olpc-fa af: OLPC Dari + olpc-uz af: OLPC Southern Uzbek + azerty ara: azerty + azerty_digits ara: azerty/digits + digits ara: digits + qwerty ara: qwerty + qwerty_digits ara: qwerty/digits + buckwalter ara: Buckwalter + phonetic am: Phonetic + phonetic-alt am: Alternative Phonetic + eastern am: Eastern + western am: Western + eastern-alt am: Alternative Eastern + cyrillic az: Cyrillic + legacy by: Legacy + latin by: Latin + oss be: Alternative + oss_latin9 be: Alternative, latin-9 only + oss_sundeadkeys be: Alternative, Sun dead keys + iso-alternate be: ISO Alternate + nodeadkeys be: Eliminate dead keys + sundeadkeys be: Sun dead keys + wang be: Wang model 724 azerty + probhat bd: Probhat + ben in: Bengali + ben_probhat in: Bengali Probhat + guj in: Gujarati + guru in: Gurmukhi + jhelum in: Gurmukhi Jhelum + kan in: Kannada + mal in: Malayalam + mal_lalitha in: Malayalam Lalitha + ori in: Oriya + tam_unicode in: Tamil Unicode + tam_keyboard_with_numerals in: Tamil Keyboard with Numerals + tam_TAB in: Tamil TAB Typewriter + tam_TSCII in: Tamil TSCII Typewriter + tam in: Tamil + tel in: Telugu + urd-phonetic in: Urdu, Phonetic + urd-phonetic3 in: Urdu, Alternative phonetic + urd-winkeys in: Urdu, Winkeys + bolnagri in: Hindi Bolnagri + hin-wx in: Hindi Wx + alternatequotes ba: Use guillemets for quotes + unicode ba: Use Bosnian digraphs + unicodeus ba: US keyboard with Bosnian digraphs + us ba: US keyboard with Bosnian letters + nodeadkeys br: Eliminate dead keys + dvorak br: Dvorak + nativo br: Nativo + nativo-us br: Nativo for USA keyboards + nativo-epo br: Nativo for Esperanto + phonetic bg: Traditional phonetic + bas_phonetic bg: New phonetic + french ma: French + tifinagh ma: Tifinagh + tifinagh-alt ma: Tifinagh Alternative + tifinagh-alt-phonetic ma: Tifinagh Alternative Phonetic + tifinagh-extended ma: Tifinagh Extended + tifinagh-phonetic ma: Tifinagh Phonetic + tifinagh-extended-phonetic ma: Tifinagh Extended Phonetic + fr-dvorak ca: French Dvorak + fr-legacy ca: French (legacy) + multix ca: Multilingual + multi ca: Multilingual, first part + multi-2gr ca: Multilingual, second part + ike ca: Inuktitut + shs ca: Secwepemctsin + kut ca: Ktunaxa + eng ca: English + tib cn: Tibetan + tib_asciinum cn: Tibetan (with ASCII numerals) + alternatequotes hr: Use guillemets for quotes + unicode hr: Use Croatian digraphs + unicodeus hr: US keyboard with Croatian digraphs + us hr: US keyboard with Croatian letters + bksl cz: With <\|> key + qwerty cz: qwerty + qwerty_bksl cz: qwerty, extended Backslash + ucw cz: UCW layout (accented letters only) + dvorak-ucw cz: US Dvorak with CZ UCW support + nodeadkeys dk: Eliminate dead keys + mac dk: Macintosh + mac_nodeadkeys dk: Macintosh, eliminate dead keys + dvorak dk: Dvorak + sundeadkeys nl: Sun dead keys + mac nl: Macintosh + std nl: Standard + nodeadkeys ee: Eliminate dead keys + dvorak ee: Dvorak + us ee: US keyboard with Estonian letters + pes_keypad ir: Persian, with Persian Keypad + ku ir: Kurdish, Latin Q + ku_f ir: Kurdish, (F) + ku_alt ir: Kurdish, Latin Alt-Q + ku_ara ir: Kurdish, Arabic-Latin + ku iq: Kurdish, Latin Q + ku_f iq: Kurdish, (F) + ku_alt iq: Kurdish, Latin Alt-Q + ku_ara iq: Kurdish, Arabic-Latin + nodeadkeys fo: Eliminate dead keys + nodeadkeys fi: Eliminate dead keys + smi fi: Northern Saami + classic fi: Classic + mac fi: Macintosh + nodeadkeys fr: Eliminate dead keys + sundeadkeys fr: Sun dead keys + oss fr: Alternative + oss_latin9 fr: Alternative, latin-9 only + oss_nodeadkeys fr: Alternative, eliminate dead keys + oss_sundeadkeys fr: Alternative, Sun dead keys + latin9 fr: (Legacy) Alternative + latin9_nodeadkeys fr: (Legacy) Alternative, eliminate dead keys + latin9_sundeadkeys fr: (Legacy) Alternative, Sun dead keys + bepo fr: Bepo, ergonomic, Dvorak way + bepo_latin9 fr: Bepo, ergonomic, Dvorak way, latin-9 only + dvorak fr: Dvorak + mac fr: Macintosh + bre fr: Breton + oci fr: Occitan + geo fr: Georgian AZERTY Tskapo + generic gh: Multilingual + akan gh: Akan + ewe gh: Ewe + fula gh: Fula + ga gh: Ga + hausa gh: Hausa + ergonomic ge: Ergonomic + mess ge: MESS + ru ge: Russian + os ge: Ossetian + deadacute de: Dead acute + deadgraveacute de: Dead grave acute + nodeadkeys de: Eliminate dead keys + ro de: Romanian keyboard with German letters + ro_nodeadkeys de: Romanian keyboard with German letters, eliminate dead keys + dvorak de: Dvorak + sundeadkeys de: Sun dead keys + neo de: Neo 2 + mac de: Macintosh + mac_nodeadkeys de: Macintosh, eliminate dead keys + dsb de: Lower Sorbian + dsb_qwertz de: Lower Sorbian (qwertz) + qwerty de: qwerty + simple gr: Simple + extended gr: Extended + nodeadkeys gr: Eliminate dead keys + polytonic gr: Polytonic + standard hu: Standard + nodeadkeys hu: Eliminate dead keys + qwerty hu: qwerty + 101_qwertz_comma_dead hu: 101/qwertz/comma/Dead keys + 101_qwertz_comma_nodead hu: 101/qwertz/comma/Eliminate dead keys + 101_qwertz_dot_dead hu: 101/qwertz/dot/Dead keys + 101_qwertz_dot_nodead hu: 101/qwertz/dot/Eliminate dead keys + 101_qwerty_comma_dead hu: 101/qwerty/comma/Dead keys + 101_qwerty_comma_nodead hu: 101/qwerty/comma/Eliminate dead keys + 101_qwerty_dot_dead hu: 101/qwerty/dot/Dead keys + 101_qwerty_dot_nodead hu: 101/qwerty/dot/Eliminate dead keys + 102_qwertz_comma_dead hu: 102/qwertz/comma/Dead keys + 102_qwertz_comma_nodead hu: 102/qwertz/comma/Eliminate dead keys + 102_qwertz_dot_dead hu: 102/qwertz/dot/Dead keys + 102_qwertz_dot_nodead hu: 102/qwertz/dot/Eliminate dead keys + 102_qwerty_comma_dead hu: 102/qwerty/comma/Dead keys + 102_qwerty_comma_nodead hu: 102/qwerty/comma/Eliminate dead keys + 102_qwerty_dot_dead hu: 102/qwerty/dot/Dead keys + 102_qwerty_dot_nodead hu: 102/qwerty/dot/Eliminate dead keys + Sundeadkeys is: Sun dead keys + nodeadkeys is: Eliminate dead keys + mac is: Macintosh + dvorak is: Dvorak + lyx il: lyx + phonetic il: Phonetic + biblical il: Biblical Hebrew (Tiro) + nodeadkeys it: Eliminate dead keys + mac it: Macintosh + us it: US keyboard with Italian letters + geo it: Georgian + kana jp: Kana + OADG109A jp: OADG 109A + mac jp: Macintosh + phonetic kg: Phonetic + ruskaz kz: Russian with Kazakh + kazrus kz: Kazakh with Russian + basic la: Laos + stea la: Laos - STEA (proposed standard layout) + nodeadkeys latam: Eliminate dead keys + deadtilde latam: Include dead tilde + sundeadkeys latam: Sun dead keys + std lt: Standard + us lt: US keyboard with Lithuanian letters + ibm lt: IBM (LST 1205-92) + lekp lt: LEKP + lekpa lt: LEKPa + apostrophe lv: Apostrophe (') variant + tilde lv: Tilde (~) variant + fkey lv: F-letter (F) variant + cyrillic me: Cyrillic + cyrillicyz me: Cyrillic, Z and ZHE swapped + latinunicode me: Latin unicode + latinyz me: Latin qwerty + latinunicodeyz me: Latin unicode qwerty + cyrillicalternatequotes me: Cyrillic with guillemets + latinalternatequotes me: Latin with guillemets + nodeadkeys mk: Eliminate dead keys + us mt: Maltese keyboard with US layout + nodeadkeys no: Eliminate dead keys + dvorak no: Dvorak + smi no: Northern Saami + smi_nodeadkeys no: Northern Saami, eliminate dead keys + mac no: Macintosh + mac_nodeadkeys no: Macintosh, eliminate dead keys + qwertz pl: qwertz + dvorak pl: Dvorak + dvorak_quotes pl: Dvorak, Polish quotes on quotemark key + dvorak_altquotes pl: Dvorak, Polish quotes on key 1 + csb pl: Kashubian + ru_phonetic_dvorak pl: Russian phonetic Dvorak + dvp pl: Programmer Dvorak + nodeadkeys pt: Eliminate dead keys + sundeadkeys pt: Sun dead keys + mac pt: Macintosh + mac_nodeadkeys pt: Macintosh, eliminate dead keys + mac_sundeadkeys pt: Macintosh, Sun dead keys + nativo pt: Nativo + nativo-us pt: Nativo for USA keyboards + nativo-epo pt: Nativo for Esperanto + cedilla ro: Cedilla + std ro: Standard + std_cedilla ro: Standard (Cedilla) + winkeys ro: Winkeys + crh_f ro: Crimean Tatar (Turkish F) + crh_alt ro: Crimean Tatar (Turkish Alt-Q) + crh_dobruca1 ro: Crimean Tatar (Dobruca-1 Q) + crh_dobruca2 ro: Crimean Tatar (Dobruca-2 Q) + phonetic ru: Phonetic + phonetic_winkeys ru: Phonetic Winkeys + typewriter ru: Typewriter + legacy ru: Legacy + typewriter-legacy ru: Typewriter, legacy + tt ru: Tatar + os_legacy ru: Ossetian, legacy + os_winkeys ru: Ossetian, Winkeys + cv ru: Chuvash + cv_latin ru: Chuvash Latin + udm ru: Udmurt + kom ru: Komi + sah ru: Yakut + xal ru: Kalmyk + dos ru: DOS + srp ru: Serbian + bak ru: Bashkirian + yz rs: Z and ZHE swapped + latin rs: Latin + latinunicode rs: Latin Unicode + latinyz rs: Latin qwerty + latinunicodeyz rs: Latin Unicode qwerty + alternatequotes rs: With guillemets + latinalternatequotes rs: Latin with guillemets + alternatequotes si: Use guillemets for quotes + us si: US keyboard with Slovenian letters + bksl sk: Extended Backslash + qwerty sk: qwerty + qwerty_bksl sk: qwerty, extended Backslash + nodeadkeys es: Eliminate dead keys + deadtilde es: Include dead tilde + sundeadkeys es: Sun dead keys + dvorak es: Dvorak + ast es: Asturian variant with bottom-dot H and bottom-dot L + cat es: Catalan variant with middle-dot L + mac es: Macintosh + nodeadkeys se: Eliminate dead keys + dvorak se: Dvorak + rus se: Russian phonetic + rus_nodeadkeys se: Russian phonetic, eliminate dead keys + smi se: Northern Saami + mac se: Macintosh + svdvorak se: Svdvorak + legacy ch: Legacy + de_nodeadkeys ch: German, eliminate dead keys + de_sundeadkeys ch: German, Sun dead keys + fr ch: French + fr_nodeadkeys ch: French, eliminate dead keys + fr_sundeadkeys ch: French, Sun dead keys + fr_mac ch: French (Macintosh) + de_mac ch: German (Macintosh) + syc sy: Syriac + syc_phonetic sy: Syriac phonetic + ku sy: Kurdish, Latin Q + ku_f sy: Kurdish, (F) + ku_alt sy: Kurdish, Latin Alt-Q + legacy tj: Legacy + tam_unicode lk: Tamil Unicode + tam_TAB lk: Tamil TAB Typewriter + tis th: TIS-820.2538 + pat th: Pattachote + f tr: (F) + alt tr: Alt-Q + sundeadkeys tr: Sun dead keys + ku tr: Kurdish, Latin Q + ku_f tr: Kurdish, (F) + ku_alt tr: Kurdish, Latin Alt-Q + intl tr: International (with dead keys) + crh tr: Crimean Tatar (Turkish Q) + crh_f tr: Crimean Tatar (Turkish F) + crh_alt tr: Crimean Tatar (Turkish Alt-Q) + indigenous tw: Indigenous + saisiyat tw: Saisiyat + phonetic ua: Phonetic + typewriter ua: Typewriter + winkeys ua: Winkeys + legacy ua: Legacy + rstu ua: Standard RSTU + rstu_ru ua: Standard RSTU on Russian layout + homophonic ua: Homophonic + crh ua: Crimean Tatar (Turkish Q) + crh_f ua: Crimean Tatar (Turkish F) + crh_alt ua: Crimean Tatar (Turkish Alt-Q) + extd gb: Extended - Winkeys + intl gb: International (with dead keys) + dvorak gb: Dvorak + dvorakukp gb: Dvorak (UK Punctuation) + mac gb: Macintosh + colemak gb: Colemak + latin uz: Latin + crh uz: Crimean Tatar (Turkish Q) + crh_f uz: Crimean Tatar (Turkish F) + crh_alt uz: Crimean Tatar (Turkish Alt-Q) + kr104 kr: 101/104 key Compatible + CloGaelach ie: CloGaelach + UnicodeExpert ie: UnicodeExpert + ogam ie: Ogham + ogam_is434 ie: Ogham IS434 + urd-crulp pk: CRULP + urd-nla pk: NLA + ara pk: Arabic + legacy epo: displaced semicolon and quote (obsolete) + igbo ng: Igbo + yoruba ng: Yoruba + hausa ng: Hausa + left_hand brai: Left hand + right_hand brai: Right hand + alt tm: Alt-Q + fr-oss ml: Français (France Alternative) + us-mac ml: English (USA Macintosh) + us-intl ml: English (USA International) diff --git a/config/sway/scripts/lockman.sh b/config/sway/scripts/lockman.sh index 4fd7125..a06316e 100644 --- a/config/sway/scripts/lockman.sh +++ b/config/sway/scripts/lockman.sh @@ -4,6 +4,6 @@ swayidle \ timeout 5 'swaymsg "output * dpms off"' \ resume 'swaymsg "output * dpms on"' & # Locks the screen immediately -swaylock -i ~/.config/sway/i3-lock-screen.png -L -K --font UbuntuMono -s tile +swaylock -i ~/.config/sway/i3-lock-screen.png -L -K --font JetBrainsMono -s tile # Kills last background task so idle timer doesn't keep running kill %% diff --git a/config/sway/scripts/screenshotArea.sh b/config/sway/scripts/screenshotArea.sh index 42a20f2..43ea57a 100644 --- a/config/sway/scripts/screenshotArea.sh +++ b/config/sway/scripts/screenshotArea.sh @@ -1,3 +1,3 @@ #!/bin/bash FILENAME="screenshot-`date +%F-%T`" -grim -g "$(slurp)" /home/sway/FILENAME.png +grim -g "$(slurp)" $HOME/Pictures/FILENAME.png diff --git a/config/sway/scripts/screenshotFull.sh b/config/sway/scripts/screenshotFull.sh index bda68aa..91aeb37 100644 --- a/config/sway/scripts/screenshotFull.sh +++ b/config/sway/scripts/screenshotFull.sh @@ -1,3 +1,3 @@ #!/bin/bash FILENAME="screenshot-`date +%F-%T`" -grim /home/sway/FILENAME.png +grim $HOME/Pictures/FILENAME.png diff --git a/config/sway/scripts/weather.sh b/config/sway/scripts/weather.sh new file mode 100644 index 0000000..ce0f458 --- /dev/null +++ b/config/sway/scripts/weather.sh @@ -0,0 +1,15 @@ +#!/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=NewYork°=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' }' + + + diff --git a/config/waybar/config b/config/waybar/config index ab66640..7a07587 100644 --- a/config/waybar/config +++ b/config/waybar/config @@ -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": "{}" + }, - // ------------------------------------------------------------------------- - // 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 diff --git a/config/waybar/scripts/weather.sh b/config/waybar/scripts/weather.sh new file mode 100644 index 0000000..b03cd1c --- /dev/null +++ b/config/waybar/scripts/weather.sh @@ -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°=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' }' + diff --git a/config/waybar/style.css b/config/waybar/style.css index 7cf2949..8954aba 100644 --- a/config/waybar/style.css +++ b/config/waybar/style.css @@ -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; +} + + diff --git a/config/wlogout/style.css b/config/wlogout/style.css index 4d4e3ce..5ca411f 100644 --- a/config/wlogout/style.css +++ b/config/wlogout/style.css @@ -28,25 +28,25 @@ button:focus, button:active, button:hover { } #lock { - background-image: image(url("~/.config/wlogout/icons/lock.png"), url("/usr/local/share/wlogout/icons/lock.png")); + background-image: image(url("$HOME/.config/wlogout/icons/lock.png"), url("/usr/local/share/wlogout/icons/lock.png")); } #logout { - background-image: image(url("~/.config/wlogout/icons/logout.png"), url("/usr/local/share/wlogout/icons/logout.png")); + background-image: image(url("$HOME/.config/wlogout/icons/logout.png"), url("/usr/local/share/wlogout/icons/logout.png")); } #suspend { - background-image: image(url("~/.config/wlogout/icons/suspend.png"), url("/usr/local/share/wlogout/icons/suspend.png")); + background-image: image(url("$HOME/.config/wlogout/icons/suspend.png"), url("/usr/local/share/wlogout/icons/suspend.png")); } #hibernate { - background-image: image(url("~/.config/wlogout/icons/hibernate.png"), url("/usr/local/share/wlogout/icons/hibernate.png")); + background-image: image(url("$HOME/.config/wlogout/icons/hibernate.png"), url("/usr/local/share/wlogout/icons/hibernate.png")); } #shutdown { - background-image: image(url("~/.config/wlogout/icons/shutdown.png"), url("/usr/local/share/wlogout/icons/shutdown.png")); + background-image: image(url("$HOME/.config/wlogout/icons/shutdown.png"), url("/usr/local/share/wlogout/icons/shutdown.png")); } #reboot { - background-image: image(url("~/.config/wlogout/icons/reboot.png"), url("/usr/local/share/wlogout/icons/reboot.png")); + background-image: image(url("$HOME/.config/wlogout/icons/reboot.png"), url("/usr/local/share/wlogout/icons/reboot.png")); } diff --git a/config/wofi/config b/config/wofi/config index 6d140e3..137afb8 100644 --- a/config/wofi/config +++ b/config/wofi/config @@ -1,3 +1,4 @@ + hide_scroll=true show=drun,run width=700 diff --git a/config/wofi/style.css b/config/wofi/style.css index b0fbff8..aa66c67 100644 --- a/config/wofi/style.css +++ b/config/wofi/style.css @@ -12,7 +12,6 @@ margin: 0px 3px 3px 3px; #entry:selected { background-color:#4b3766; font-weight: bold; -color: #d8dee9; } #text:selected { @@ -50,7 +49,7 @@ margin-bottom: 10px; #text { padding: 5px; -color: #ffffff; +color: #d8dee9; background-color: transparent; }