mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
Added country indicatior as a status bar option
This commit is contained in:
parent
5d06b8b085
commit
797793ad99
@ -17,6 +17,9 @@ label=📰
|
||||
interval=once
|
||||
signal=6
|
||||
|
||||
[locate]
|
||||
interval=30
|
||||
|
||||
[pacpackages]
|
||||
label=📦
|
||||
interval=once
|
||||
|
||||
261
.local/share/larbs/flag-emojis
Normal file
261
.local/share/larbs/flag-emojis
Normal file
@ -0,0 +1,261 @@
|
||||
🇦🇨AscensionIsland
|
||||
🇦🇩Andorra
|
||||
🇦🇪UnitedArabEmirates
|
||||
🇦🇫Afghanistan
|
||||
🇦🇬Antigua&Barbuda
|
||||
🇦🇮Anguilla
|
||||
🇦🇱Albania
|
||||
🇦🇲Armenia
|
||||
🇦🇴Angola
|
||||
🇦🇶Antarctica
|
||||
🇦🇷Argentina
|
||||
🇦🇸AmericanSamoa
|
||||
🇦🇹Austria
|
||||
🇦🇺Australia
|
||||
🇦🇼Aruba
|
||||
🇦🇽ÅlandIslands
|
||||
🇦🇿Azerbaijan
|
||||
🇧🇦Bosnia&Herzegovina
|
||||
🇧🇧Barbados
|
||||
🇧🇩Bangladesh
|
||||
🇧🇪Belgium
|
||||
🇧🇫BurkinaFaso
|
||||
🇧🇬Bulgaria
|
||||
🇧🇭Bahrain
|
||||
🇧🇮Burundi
|
||||
🇧🇯Benin
|
||||
🇧🇱St.Barthélemy
|
||||
🇧🇲Bermuda
|
||||
🇧🇳Brunei
|
||||
🇧🇴Bolivia
|
||||
🇧🇶CaribbeanNetherlands
|
||||
🇧🇷Brazil
|
||||
🇧🇸Bahamas
|
||||
🇧🇹Bhutan
|
||||
🇧🇻BouvetIsland
|
||||
🇧🇼Botswana
|
||||
🇧🇾Belarus
|
||||
🇧🇿Belize
|
||||
🇨🇦Canada
|
||||
🇨🇨Cocos(Keeling)Islands
|
||||
🇨🇩Congo-Kinshasa
|
||||
🇨🇫CentralAfricanRepublic
|
||||
🇨🇬Congo-Brazzaville
|
||||
🇨🇭Switzerland
|
||||
🇨🇮Côted’Ivoire
|
||||
🇨🇰CookIslands
|
||||
🇨🇱Chile
|
||||
🇨🇲Cameroon
|
||||
🇨🇳China
|
||||
🇨🇴Colombia
|
||||
🇨🇵ClippertonIsland
|
||||
🇨🇷CostaRica
|
||||
🇨🇺Cuba
|
||||
🇨🇻CapeVerde
|
||||
🇨🇼Curaçao
|
||||
🇨🇽ChristmasIsland
|
||||
🇨🇾Cyprus
|
||||
🇨🇿Czechia
|
||||
🇩🇪Germany
|
||||
🇩🇬DiegoGarcia
|
||||
🇩🇯Djibouti
|
||||
🇩🇰Denmark
|
||||
🇩🇲Dominica
|
||||
🇩🇴DominicanRepublic
|
||||
🇩🇿Algeria
|
||||
🇪🇦Ceuta&Melilla
|
||||
🇪🇨Ecuador
|
||||
🇪🇪Estonia
|
||||
🇪🇬Egypt
|
||||
🇪🇭WesternSahara
|
||||
🇪🇷Eritrea
|
||||
🇪🇸Spain
|
||||
🇪🇹Ethiopia
|
||||
🇪🇺EuropeanUnion
|
||||
🇫🇮Finland
|
||||
🇫🇯Fiji
|
||||
🇫🇰FalklandIslands
|
||||
🇫🇲Micronesia
|
||||
🇫🇴FaroeIslands
|
||||
🇫🇷France
|
||||
🇬🇦Gabon
|
||||
🇬🇧UnitedKingdom
|
||||
🇬🇩Grenada
|
||||
🇬🇪Georgia
|
||||
🇬🇫FrenchGuiana
|
||||
🇬🇬Guernsey
|
||||
🇬🇭Ghana
|
||||
🇬🇮Gibraltar
|
||||
🇬🇱Greenland
|
||||
🇬🇲Gambia
|
||||
🇬🇳Guinea
|
||||
🇬🇵Guadeloupe
|
||||
🇬🇶EquatorialGuinea
|
||||
🇬🇷Greece
|
||||
🇬🇸SouthGeorgia&SouthSandwichIslands
|
||||
🇬🇹Guatemala
|
||||
🇬🇺Guam
|
||||
🇬🇼Guinea-Bissau
|
||||
🇬🇾Guyana
|
||||
🇭🇰HongKongSARChina
|
||||
🇭🇲Heard&McDonaldIslands
|
||||
🇭🇳Honduras
|
||||
🇭🇷Croatia
|
||||
🇭🇹Haiti
|
||||
🇭🇺Hungary
|
||||
🇮🇨CanaryIslands
|
||||
🇮🇩Indonesia
|
||||
🇮🇪Ireland
|
||||
🇮🇱Israel
|
||||
🇮🇲IsleofMan
|
||||
🇮🇳India
|
||||
🇮🇴BritishIndianOceanTerritory
|
||||
🇮🇶Iraq
|
||||
🇮🇷Iran
|
||||
🇮🇸Iceland
|
||||
🇮🇹Italy
|
||||
🇯🇪Jersey
|
||||
🇯🇲Jamaica
|
||||
🇯🇴Jordan
|
||||
🇯🇵Japan
|
||||
🇰🇪Kenya
|
||||
🇰🇬Kyrgyzstan
|
||||
🇰🇭Cambodia
|
||||
🇰🇮Kiribati
|
||||
🇰🇲Comoros
|
||||
🇰🇳St.Kitts&Nevis
|
||||
🇰🇵NorthKorea
|
||||
🇰🇷SouthKorea
|
||||
🇰🇼Kuwait
|
||||
🇰🇾CaymanIslands
|
||||
🇰🇿Kazakhstan
|
||||
🇱🇦Laos
|
||||
🇱🇧Lebanon
|
||||
🇱🇨St.Lucia
|
||||
🇱🇮Liechtenstein
|
||||
🇱🇰SriLanka
|
||||
🇱🇷Liberia
|
||||
🇱🇸Lesotho
|
||||
🇱🇹Lithuania
|
||||
🇱🇺Luxembourg
|
||||
🇱🇻Latvia
|
||||
🇱🇾Libya
|
||||
🇲🇦Morocco
|
||||
🇲🇨Monaco
|
||||
🇲🇩Moldova
|
||||
🇲🇪Montenegro
|
||||
🇲🇫St.Martin
|
||||
🇲🇬Madagascar
|
||||
🇲🇭MarshallIslands
|
||||
🇲🇰NorthMacedonia
|
||||
🇲🇱Mali
|
||||
🇲🇲Myanmar(Burma)
|
||||
🇲🇳Mongolia
|
||||
🇲🇴MacauSarChina
|
||||
🇲🇵NorthernMarianaIslands
|
||||
🇲🇶Martinique
|
||||
🇲🇷Mauritania
|
||||
🇲🇸Montserrat
|
||||
🇲🇹Malta
|
||||
🇲🇺Mauritius
|
||||
🇲🇻Maldives
|
||||
🇲🇼Malawi
|
||||
🇲🇽Mexico
|
||||
🇲🇾Malaysia
|
||||
🇲🇿Mozambique
|
||||
🇳🇦Namibia
|
||||
🇳🇨NewCaledonia
|
||||
🇳🇪Niger
|
||||
🇳🇫NorfolkIsland
|
||||
🇳🇬Nigeria
|
||||
🇳🇮Nicaragua
|
||||
🇳🇱Netherlands
|
||||
🇳🇴Norway
|
||||
🇳🇵Nepal
|
||||
🇳🇷Nauru
|
||||
🇳🇺Niue
|
||||
🇳🇿NewZealand
|
||||
🇴🇲Oman
|
||||
🇵🇦Panama
|
||||
🇵🇪Peru
|
||||
🇵🇫FrenchPolynesia
|
||||
🇵🇬PapuaNewGuinea
|
||||
🇵🇭Philippines
|
||||
🇵🇰Pakistan
|
||||
🇵🇱Poland
|
||||
🇵🇲St.Pierre&Miquelon
|
||||
🇵🇳PitcairnIslands
|
||||
🇵🇷PuertoRico
|
||||
🇵🇸PalestinianTerritories
|
||||
🇵🇹Portugal
|
||||
🇵🇼Palau
|
||||
🇵🇾Paraguay
|
||||
🇶🇦Qatar
|
||||
🇷🇪Réunion
|
||||
🇷🇴Romania
|
||||
🇷🇸Serbia
|
||||
🇷🇺Russia
|
||||
🇷🇼Rwanda
|
||||
🇸🇦SaudiArabia
|
||||
🇸🇧SolomonIslands
|
||||
🇸🇨Seychelles
|
||||
🇸🇩Sudan
|
||||
🇸🇪Sweden
|
||||
🇸🇬Singapore
|
||||
🇸🇭St.Helena
|
||||
🇸🇮Slovenia
|
||||
🇸🇯Svalbard&JanMayen
|
||||
🇸🇰Slovakia
|
||||
🇸🇱SierraLeone
|
||||
🇸🇲SanMarino
|
||||
🇸🇳Senegal
|
||||
🇸🇴Somalia
|
||||
🇸🇷Suriname
|
||||
🇸🇸SouthSudan
|
||||
🇸🇹SãoTomé&Príncipe
|
||||
🇸🇻ElSalvador
|
||||
🇸🇽SintMaarten
|
||||
🇸🇾Syria
|
||||
🇸🇿Swaziland
|
||||
🇹🇦TristanDaCunha
|
||||
🇹🇨Turks&CaicosIslands
|
||||
🇹🇩Chad
|
||||
🇹🇫FrenchSouthernTerritories
|
||||
🇹🇬Togo
|
||||
🇹🇭Thailand
|
||||
🇹🇯Tajikistan
|
||||
🇹🇰Tokelau
|
||||
🇹🇱Timor-Leste
|
||||
🇹🇲Turkmenistan
|
||||
🇹🇳Tunisia
|
||||
🇹🇴Tonga
|
||||
🇹🇷Turkey
|
||||
🇹🇹Trinidad&Tobago
|
||||
🇹🇻Tuvalu
|
||||
🇹🇼Taiwan
|
||||
🇹🇿Tanzania
|
||||
🇺🇦Ukraine
|
||||
🇺🇬Uganda
|
||||
🇺🇲U.S.OutlyingIslands
|
||||
🇺🇳UnitedNations
|
||||
🇺🇸UnitedStates
|
||||
🇺🇾Uruguay
|
||||
🇺🇿Uzbekistan
|
||||
🇻🇦VaticanCity
|
||||
🇻🇨St.Vincent&Grenadines
|
||||
🇻🇪Venezuela
|
||||
🇻🇬BritishVirginIslands
|
||||
🇻🇮U.S.VirginIslands
|
||||
🇻🇳Vietnam
|
||||
🇻🇺Vanuatu
|
||||
🇼🇫Wallis&Futuna
|
||||
🇼🇸Samoa
|
||||
🇽🇰Kosovo
|
||||
🇾🇪Yemen
|
||||
🇾🇹Mayotte
|
||||
🇿🇦SouthAfrica
|
||||
🇿🇲Zambia
|
||||
🇿🇼Zimbabwe
|
||||
🏴England
|
||||
🏴Scotland
|
||||
🏴Wales
|
||||
13
.scripts/statusbar/locate
Executable file
13
.scripts/statusbar/locate
Executable file
@ -0,0 +1,13 @@
|
||||
#/bin/bash
|
||||
|
||||
# Gets your public ip address checks which country you are in and
|
||||
# displays that information in the statusbar
|
||||
#
|
||||
# https://www.maketecheasier.com/ip-address-geolocation-lookups-linux/
|
||||
# To get the flag-emojis file:
|
||||
#
|
||||
# curl https://samerickson.me/files/flag-emojis > ~/.local/share/flag-emojis
|
||||
#
|
||||
addr="$(curl ifconfig.me 2>/dev/null)"
|
||||
country="$(geoiplookup $addr | awk '{print $5}')"
|
||||
printf "%s" "$(sed -n /$country/p ~/.local/share/larbs/flag-emojis)"
|
||||
Loading…
x
Reference in New Issue
Block a user