From a44bab4040c1c611eca173176a20fb5425253f33 Mon Sep 17 00:00:00 2001 From: opal Date: Sat, 6 Jul 2024 11:33:12 -0700 Subject: [PATCH] added calcurse + other stuff --- .bash_profile | 3 +- .config/calcurse/caldav/config | 74 +++++++++++++++++++++++++++++++ .config/waybar/scripts/weather.py | 3 +- 3 files changed, 77 insertions(+), 3 deletions(-) create mode 100644 .config/calcurse/caldav/config diff --git a/.bash_profile b/.bash_profile index 08e699a..b0ac9ae 100644 --- a/.bash_profile +++ b/.bash_profile @@ -4,10 +4,9 @@ export MOZ_ENABLE_WAYLAND=1 export XDG_CONFIG_HOME=~/.config export XDG_CACHE_HOME=~/.cache export XDG_DATA_HOME=~/.local/share -export BROWSER=/usr/bin/firefox-esr +export BROWSER=/usr/bin/brave-browser export VISUAL=vim export EDITOR=vim -export BROWSER=com.brave.Browser export QT_QPA_PLATFORMTHEME=qt5ct export DESKTOP_SESSION=sway [ "$(tty)" = "/dev/tty1" ] && exec sway diff --git a/.config/calcurse/caldav/config b/.config/calcurse/caldav/config new file mode 100644 index 0000000..a2f4172 --- /dev/null +++ b/.config/calcurse/caldav/config @@ -0,0 +1,74 @@ +# If you want to synchronize calcurse with a CalDAV server using +# calcurse-caldav, create a new directory at $XDG_CONFIG_HOME/calcurse/caldav/ +# (~/.config/calcurse/caldav/) and $XDG_DATA_HOME/calcurse/caldav/ +# (~/.local/share/calcurse/caldav/) and copy this file to +# $XDG_CONFIG_HOME/calcurse/caldav/config and adjust the configuration below. +# Alternatively, if using ~/.calcurse, create a new directory at +# ~/.calcurse/caldav/ and copy this file to ~/.calcurse/caldav/config and adjust +# the configuration file below. + +[General] +# Path to the calcurse binary that is used for importing/exporting items. +Binary = calcurse + +# Host name of the server that hosts CalDAV. Do NOT prepend a protocol prefix, +# such as http:// or https://. Append : for a port other than 80. +Hostname = dav.opal.sh + +# Path to the CalDAV calendar on the host specified above. This is the base +# path following your host name in the URL. +Path = /dav.php/calendars/ryan/ryan-cal/ + +# Type of authentication to use. Must be "basic" or "oauth2" +#AuthMethod = basic + +# Enable this if you want to skip SSL certificate checks. +InsecureSSL = No + +# Disable this if you want to use HTTP instead of HTTPS. +# Using plain HTTP is highly discouraged. +HTTPS = Yes + +# This option allows you to filter the types of tasks synced. To this end, the +# value of this option should be a comma-separated list of item types, where +# each item type is either "event", "apt", "recur-event", "recur-apt", "todo", +# "recur" or "cal". Note that the comma-separated list must not contain any +# spaces. Refer to the documentation of the --filter-type command line argument +# of calcurse for more details. Set this option to "cal" if the configured +# CalDAV server doesn't support tasks, such as is the case with Google +# Calendar. +SyncFilter = cal,todo + +# Disable this option to actually enable synchronization. If it is enabled, +# nothing is actually written to the server or to the local data files. If you +# combine DryRun = Yes with Verbose = Yes, you get a log of what would have +# happened with this option disabled. +DryRun = No + +# Enable this if you want detailed logs written to stdout. +Verbose = Yes + +# Credentials for HTTP Basic Authentication (if required). +# Set `Password` to your password in plaintext (unsafe), +# or `PasswordCommand` to a shell command that retrieves it (recommended). +[Auth] +Username = ryan +#Password = password +PasswordCommand = gopass show -o self-hosted/dav.opal.sh + +# Optionally specify additional HTTP headers here. +#[CustomHeaders] +#User-Agent = Mac_OS_X/10.9.2 (13C64) CalendarAgent/176 + +# Use the following to synchronize with an OAuth2-based service +# such as Google Calendar. +#[OAuth2] +#ClientID = your_client_id +#ClientSecret = your_client_secret + +# Scope of access for API calls. Synchronization requires read/write. +#Scope = https://example.com/resource/scope + +# Change the redirect URI if you receive errors, but ensure that it is identical +# to the redirect URI you specified in the API settings. +#RedirectURI = http://127.0.0.1 diff --git a/.config/waybar/scripts/weather.py b/.config/waybar/scripts/weather.py index 7d6f4e6..b1a112c 100755 --- a/.config/waybar/scripts/weather.py +++ b/.config/waybar/scripts/weather.py @@ -27,7 +27,8 @@ def get_weather_icon(description): "thunderstorm": "", "snow": "", "mist": "󰖑", - "haze": "󰖑" + "haze": "󰖑", + "smoke": "󱞙" } return icons.get(description, "❓")