diff --git a/.config/calcurse/caldav/config b/.config/calcurse/caldav/config new file mode 100644 index 0000000..b745848 --- /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 = cloud.inkletblot.com + +# Path to the CalDAV calendar on the host specified above. This is the base +# path following your host name in the URL. +Path = /remote.php/dav/calendars/inkletblot/personal/ + +# 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 = inkletblot +#Password = password +PasswordCommand = pass show calcurse + +# 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/calcurse/conf b/.config/calcurse/conf new file mode 100644 index 0000000..e69de29 diff --git a/.config/calcurse/keys b/.config/calcurse/keys new file mode 100644 index 0000000..49b4826 --- /dev/null +++ b/.config/calcurse/keys @@ -0,0 +1,56 @@ +# +# Calcurse keys configuration file +# +# In this file the keybindings used by Calcurse are defined. +# It is generated automatically by Calcurse and is maintained +# via the key configuration menu of the interactive user +# interface. It should not be edited directly. + +generic-cancel ESC +generic-select SPC +generic-credits @ +generic-help ? +generic-quit q Q +generic-save s S ^S +generic-reload R +generic-copy c +generic-paste p ^V +generic-change-view TAB +generic-prev-view KEY_BTAB +generic-import i I +generic-export x X +generic-goto g G +generic-other-cmd o O +generic-config-menu C +generic-redraw ^R +generic-add-appt ^A +generic-add-todo ^T +generic-prev-day T ^H +generic-next-day t ^L +generic-prev-week W ^K +generic-next-week w +generic-prev-month M +generic-next-month m +generic-prev-year Y +generic-next-year y +generic-scroll-down ^N +generic-scroll-up ^P +generic-goto-today ^G +generic-command : +move-right l L RGT +move-left h H LFT +move-down j J DWN +move-up k K UP +start-of-week 0 +end-of-week $ +add-item a A +del-item d D +edit-item e E +view-item v V RET +pipe-item | +flag-item ! +repeat r +edit-note n N +view-note > +raise-priority + +lower-priority - diff --git a/.config/nvim/lua/lazyvim/plugins/neorg.lua b/.config/nvim/lua/lazyvim/plugins/neorg.lua index 9386bd1..9820fc0 100644 --- a/.config/nvim/lua/lazyvim/plugins/neorg.lua +++ b/.config/nvim/lua/lazyvim/plugins/neorg.lua @@ -1,32 +1,33 @@ return { - -- "nvim-neorg/neorg", - -- -- event = "BufEnter *.norg", - -- event = "VeryLazy", - -- dependencies = { { "nvim-treesitter/nvim-treesitter" }, { "nvim-lua/plenary.nvim" } }, - -- build = ":Neorg sync-parsers", - -- opts = { - -- load = { - -- ["core.defaults"] = {}, - -- ["core.concealer"] = {}, - -- ["core.dirman"] = { - -- config = { - -- workspaces = { - -- work = "~/work/neorg/", - -- personal = "~/notes/neorg/", - -- journal = "~/notes/neorg/journal/", - -- }, - -- }, - -- }, - -- ["core.completion"] = { - -- config = { - -- engine = "nvim-cmp", - -- }, - -- }, - -- ["core.presenter"] = { - -- config = { - -- zen_mode = "zen-mode", - -- }, - -- }, - -- }, - -- }, + "nvim-neorg/neorg", + event = "BufEnter *.norg", + dependencies = { { "nvim-lua/plenary.nvim" } }, + build = ":Neorg sync-parsers", + opts = { + load = { + ["core.defaults"] = {}, + ["core.concealer"] = {}, + ["core.dirman"] = { + config = { + workspaces = { + default = "~/notes/neorg", + work = "~/notes/neorg/work", + personal = "~/notes/neorg/personal", + journal = "~/notes/neorg/journal", + }, + }, + }, + ["core.completion"] = { + config = { + engine = "nvim-cmp", + }, + }, + ["core.presenter"] = { + config = { + zen_mode = "zen-mode", + }, + }, + ["core.ui"] = {}, + }, + }, } diff --git a/.config/shell/aliasrc b/.config/shell/aliasrc index 3a465ad..f30e05e 100644 --- a/.config/shell/aliasrc +++ b/.config/shell/aliasrc @@ -62,6 +62,7 @@ alias \ cls="clear" \ c="clear" \ cdc="cd && clear" + calsync="CALCURSE_CALDAV_PASSWORD=$(pass show calcurse) calcurse-caldav" # git aliases alias \ diff --git a/.config/shell/profile b/.config/shell/profile index 89d5cad..38d8dbe 100644 --- a/.config/shell/profile +++ b/.config/shell/profile @@ -62,7 +62,6 @@ export ZK_NOTEBOOK_DIR="$HOME/notes/zk" export REPOS="$HOME/repos" export GITUSER="inkletblot" - # This is something luke smith has in his profile (which I have stolen, it's nice but # doesn't work very nicely with my login manager, lightdm, and I prefer to just run # startx myself if I'm not using a login manager anyway. diff --git a/.config/x11/xprofile b/.config/x11/xprofile index 5ede9c8..195265d 100755 --- a/.config/x11/xprofile +++ b/.config/x11/xprofile @@ -2,7 +2,7 @@ # start universal things here like keyboard map, cursor, and default screenlayout # keyboard layout -setxkbmap -layout dvorak -option ctrl:nocaps & +setxkbmap us -variant dvorak -option ctrl:nocaps & # cursor xsetroot -cursor_name left_ptr diff --git a/.local/bin/status-clock b/.local/bin/status-clock index bd3cad6..585565c 100755 --- a/.local/bin/status-clock +++ b/.local/bin/status-clock @@ -1,9 +1,9 @@ #!/bin/bash case $BUTTON in - 1) notify-send "This Month" "$(cal --color=always | sed "s/..7m//;s|..27m||")" && notify-send "Appointments" "$(calcurse -d3)" ;; + 1) notify-send "This Month" "$(cal --color=always | sed "s/..7m//;s|..0m||")" && notify-send "Appointments" "$(calcurse -d3)" ;; 2) setsid -f "$TERMINAL" -e calcurse ;; - 3) notify-send "Time/date module" "Shows calendar and appointments + 3) notify-send "Time/date module" "Shows calendar and appointments - Left click to show upcoming appointments for the next three days via \`calcurse -d3\` and show the month via \`cal\` - Middle click opens calcurse if installed" ;; 6) "$TERMINAL" -e "$EDITOR" "$0" ;; diff --git a/.local/bin/switchkb b/.local/bin/switchkb index f01fef5..c186a66 100755 --- a/.local/bin/switchkb +++ b/.local/bin/switchkb @@ -4,4 +4,4 @@ # Switches to the given keyboard (argument) and sets ## -setxkbmap "$1" -option ctrl:nocaps +setxkbmap us -variant "$1" -option ctrl:nocaps