commit c88be57630e8ed682e8d4d8faf51f04f30c16da9 parent 9fbf6d0fe22569375f018103309b6d4699b2ab17 Author: Pablo Cárdenas <pablo.cardenas@imca.edu.pe> Date: Wed, 28 Aug 2024 19:10:28 -0500 Removed unused configs Diffstat:
20 files changed, 0 insertions(+), 765 deletions(-)
diff --git a/.config/bugwarrior/bugwarriorrc b/.config/bugwarrior/bugwarriorrc @@ -1,17 +0,0 @@ -# General stuff. -# https://bugwarrior.readthedocs.io/en/latest/common_configuration.html -[general] -targets = my_gitlab -taskrc = ~/.config/task/taskrc -inline_links = False -annotation_links = True -annotation_comments = False -legacy_matching = False -log.level = DEBUG - -[my_gitlab] -service = gitlab -gitlab.login = pablo-cardenas -gitlab.token = @oracle:eval:pass gitlab/pablo-cardenas | grep bugwarrior | grep token | awk -F ": " '{print $3}' -gitlab.host = gitlab.com -gitlab.include_repos = pablo-cardenas/dotfiles, pablo-cardenas/vimrc, pablo-cardenas/flask_imca, pablo-cardenas/pcardenasb diff --git a/.config/polybar/config.ini b/.config/polybar/config.ini @@ -1,360 +0,0 @@ -[colors] -black = ${xrdb:color0:#000000} -red3 = ${xrdb:color1:#cd0000} -green3 = ${xrdb:color2:#00cd00} -yellow3 = ${xrdb:color3:#cdcd00} -blue3 = ${xrdb:color4:#0000cd} -magenta3 = ${xrdb:color5:#cd00cd} -cyan3 = ${xrdb:color6:#00cdcd} -gray90 = ${xrdb:color7:#e5e5e5} -gray30 = ${xrdb:color8:#4d4d4d} -red = ${xrdb:color9:#ff0000} -green = ${xrdb:color10:#00ff00} -yellow = ${xrdb:color11:#ffff00} -blue = ${xrdb:color12:#0000ff} -magenta = ${xrdb:color13:#ff00ff} -cyan = ${xrdb:color14:#00ffff} -white = ${xrdb:color15:#ffffff} - -background = ${xrdb:background} -background-accent-1 = ${xrdb:color8} -background-accent-2 = ${xrdb:color6} -foreground = ${xrdb:foreground} -foreground-accent-1 = ${xrdb:foreground} -foreground-accent-2 = ${xrdb:color0} -fg0 = ${colors:white} -fg1 = ${xrdb:i3wm.foreground:#000000} -bg0 = ${xrdb:i3wm.background:#ffffff} -bg1 = ${colors:gray30} - -primary = ${xrdb:color1:#cd0000} -secondary = ${xrdb:color2:#00cd00} -alert = ${xrdb:color3:#cdcd00} - -[bar/base] -background = ${colors.background} -foreground = ${colors.foreground} -width = 100% -height = 18 -offset-x = 0% -offset-y = 0% -module-margin = 2 -padding = 3 -radius = 0.0 -fixed-center = false - -; font-N = <fontconfig pattern>;<vertical offset><Paste> -font-0 = Fira Mono:pixelsize=9;2 -font-1 = Fira Mono:pixelsize=9:style=bold;2 -font-2 = Font Awesome 6 Free:style=Solid:pixelsize=9;1 -font-3 = Font Awesome 6 Free:style=Regular:pixelsize=9;1 -font-4 = Font Awesome 6 Brands:style=Regular:pixelsize=9;1 -font-5 = Dejavu:pixelsize=13;3 - -scroll-up = i3wm-wsnext -scroll-down = i3wm-wsprev - -[bar/primary-top] -monitor = ${env:PRIMARY_MONITOR:HDMI1} -inherit = bar/base -padding-left = 0 -modules-left = i3 xwindow -modules-right = rss timer taskwarrior updates-arch-combined xkeyboard backlight volume date - -[bar/primary-bottom] -monitor = ${env:PRIMARY_MONITOR:HDMI1} -inherit = bar/base -bottom = true -tray-position = right -tray-margin-right = 5 -modules-left = cpu memory filesystem -modules-right = battery system-uptime-pretty wired-network wireless-network - -[bar/secondary-top] -background = #00000000 -foreground = white -monitor = ${env:SECONDARY_MONITOR:HDMI1} -height = 24 -inherit = bar/base -modules-left = timer -modules-right = date -#modules-right = taskwarrior date - -#[bar/secondary-bottom] -#monitor = ${env:SECONDARY_MONITOR:HDMI1} -#inherit = bar/base -#bottom = true -#tray-position = right -#tray-margin-right = 5 -#modules-left = cpu memory filesystem -#modules-right = battery system-uptime-pretty wired-network wireless-network - -[module/xwindow] -type = internal/xwindow -label = %title% -label-maxlen = 90 - -[module/i3] -type = internal/i3 -format = <label-state> <label-mode> -index-sort = true -wrapping-scroll = false - -padding = 1 - -; Mode -label-mode-background = ${colors.primary} -label-mode-padding = ${self.padding} - -; focused = Active workspace on focused monitor -label-focused = %{T4}%index% -label-focused-font = 1 -label-focused-background = ${colors.background-accent-2} -label-focused-foreground = ${colors.foreground-accent-2} -label-focused-padding = ${self.padding} - -; unfocused = Inactive workspace on any monitor -label-unfocused = %index% -label-unfocused-background = ${colors.background-accent-1} -label-unfocused-foreground = ${colors.foreground-accent-1} -label-unfocused-padding = ${self.padding} - -; visible = Active workspace on unfocused monitor -label-visible = %index% -label-visible-background = ${self.label-focused-background} -label-visible-padding = ${self.padding} - -; urgent = Workspace with urgency hint set -label-urgent = %index% -label-urgent-background = ${colors.alert} -label-urgent-padding = ${self.padding} - -[module/date] -type = internal/date -interval = 5 -date = %a -date-alt = %Y-%m-%d -time = %H:%M -time-alt = %H:%M:%S -label = %date% %time% - -[module/volume] -type = internal/pulseaudio - -#sink = alsa_output.pci-0000_00_1b.0.analog-stereo -sink = alsa_output.usb-BurrBrown_from_Texas_Instruments_USB_AUDIO_CODEC-00.analog-stereo - -format-volume = "<label-volume> <bar-volume>" -label-volume = %percentage:2%% - -format-muted-prefix = " " -format-muted-prefix-foreground = ${colors.foreground} -label-muted = "AUDIO MUTE" -label-muted-foreground = ${colors.background} - -bar-volume-width = 11 -bar-volume-foreground-0 = ${colors.green3} -bar-volume-foreground-1 = ${colors.green3} -bar-volume-foreground-2 = ${colors.green3} -bar-volume-foreground-3 = ${colors.green3} -bar-volume-foreground-4 = ${colors.yellow3} -bar-volume-foreground-5 = ${colors.yellow3} -bar-volume-foreground-6 = ${colors.yellow3} -bar-volume-foreground-7 = ${colors.yellow3} -bar-volume-foreground-8 = ${colors.red3} -bar-volume-foreground-9 = ${colors.red3} -bar-volume-gradient = true -bar-volume-indicator = ● -bar-volume-indicator-font = 1 -bar-volume-fill = ─ -bar-volume-fill-font = 1 -bar-volume-empty = ─ -bar-volume-empty-font = 1 -bar-volume-empty-foreground = ${colors.fg1} - -[module/wired-network] -type = internal/network -interface = eno1 - -format-connected = <label-connected> - -label-connected = %local_ip% %downspeed:8% %upspeed:8% - -[module/wireless-network] -type = internal/network -interface = wlp9s0 - -format-connected = <label-connected> <ramp-signal> - -format-disconnected = offline -format-disconnected-foreground = ${colors.bg1} - -ramp-signal-0 = 😱 -ramp-signal-0-foreground = ${colors.red3} -ramp-signal-1 = 😠 -ramp-signal-1-foreground = ${colors.yellow3} -ramp-signal-2 = 😒 -ramp-signal-2-foreground = ${colors.yellow3} -ramp-signal-3 = 😊 -ramp-signal-3-foreground = ${colors.green3} -ramp-signal-4 = 😃 -ramp-signal-4-foreground = ${colors.green3} -ramp-signal-5 = 😈 -ramp-signal-5-foreground = ${colors.green3} - -label-connected = %local_ip% %essid% %downspeed:8% %upspeed:8% - -[module/cpu] -type = internal/cpu -interval = 0.5 -format = <label> <ramp-coreload> -label = CPU %percentage:2%% - -ramp-coreload-0 = ▁ -ramp-coreload-0-foreground = ${colors.green3} -ramp-coreload-1 = ▂ -ramp-coreload-1-foreground = ${colors.green3} -ramp-coreload-2 = ▃ -ramp-coreload-2-foreground = ${colors.green3} -ramp-coreload-3 = ▄ -ramp-coreload-3-foreground = ${colors.yellow3} -ramp-coreload-4 = ▅ -ramp-coreload-4-foreground = ${colors.yellow3} -ramp-coreload-5 = ▆ -ramp-coreload-5-foreground = ${colors.yellow3} -ramp-coreload-6 = ▇ -ramp-coreload-6-foreground = ${colors.red3} -ramp-coreload-7 = █ -ramp-coreload-7-foreground = ${colors.red3} - -[module/memory] -type = internal/memory -format = <label> <ramp-used> -interval = 2 -label = RAM %gb_used%/%gb_free% - -ramp-used-0 = ▁ -ramp-used-0-foreground = ${colors.green3} -ramp-used-1 = ▂ -ramp-used-1-foreground = ${colors.green3} -ramp-used-2 = ▃ -ramp-used-2-foreground = ${colors.green3} -ramp-used-3 = ▄ -ramp-used-3-foreground = ${colors.yellow3} -ramp-used-4 = ▅ -ramp-used-4-foreground = ${colors.yellow3} -ramp-used-5 = ▆ -ramp-used-5-foreground = ${colors.yellow3} -ramp-used-6 = ▇ -ramp-used-6-foreground = ${colors.red3} -ramp-used-7 = █ -ramp-used-7-foreground = ${colors.red3} - -[module/filesystem] -type = internal/fs - -mount-0 = / -mount-1 = /home - -interval = 10 -fixed-values = true -spacing = 2 -format-mounted = <label-mounted> -label-mounted = %mountpoint% %used%/%free% - - -[module/backlight] -type = internal/xbacklight -output = eDP1 -format = <label> <ramp> - -ramp-0 = 🌕 -ramp-1 = 🌔 -ramp-2 = 🌓 -ramp-3 = 🌒 -ramp-4 = 🌑 - -[module/battery] -type = internal/battery - -full-at = 97 - -battery = BAT1 -adapter = ACAD - -poll-interval = 10 - -time-format = %H:%M - -format-charging = <ramp-capacity> <label-charging> -format-discharging = <ramp-capacity> <label-discharging> -format-full = <ramp-capacity> <label-full> -label-charging = %percentage_raw%%/%time% -label-discharging = %percentage_raw%%/%time% -label-full = %percentage_raw%% - -; Only applies if <ramp-capacity> is used -ramp-capacity-0 = -ramp-capacity-0-foreground = ${colors.red3} -ramp-capacity-1 = -ramp-capacity-1-foreground = ${colors.yellow3} -ramp-capacity-2 = -ramp-capacity-2-foreground = ${colors.yellow3} -ramp-capacity-3 = -ramp-capacity-3-foreground = ${colors.yellow3} -ramp-capacity-4 = -ramp-capacity-4-foreground = ${colors.green3} - - -[module/xkeyboard] -type = internal/xkeyboard - -[module/system-uptime-pretty] -type = custom/script -exec = ~/.config/polybar/scripts/system-uptime-pretty.sh -interval = 60 - -[module/updates-arch-combined] -type = custom/script -exec = ~/.config/polybar/scripts/updates-pacman-aurhelper.sh -interval = 600 - -[module/timer] -type = custom/script -exec = ~/.config/polybar/scripts/polybar-timer/polybar-timer.sh tail '' 5 -tail = true -click-left = ~/.config/polybar/scripts/polybar-timer/polybar-timer.sh new 25 'Session' 'notify-send "Session finished"; canberra-gtk-play -i complete' ; ~/.config/polybar/scripts/polybar-timer/polybar-timer.sh update %pid% -click-middle = ~/.config/polybar/scripts/polybar-timer/polybar-timer.sh cancel ; ~/.config/polybar/scripts/polybar-timer/polybar-timer.sh update %pid% -click-right = ~/.config/polybar/scripts/polybar-timer/polybar-timer.sh new 5 'Break' 'notify-send "Break finished"; canberra-gtk-play -i complete' ; ~/.config/polybar/scripts/polybar-timer/polybar-timer.sh update %pid% -scroll-up = ~/.config/polybar/scripts/polybar-timer/polybar-timer.sh increase 60 || ~/.config/polybar/scripts/polybar-timer/polybar-timer.sh new 1 ':' 'notify-send -u critical "Timer expired."; canberra-gtk-play -i complete' ; ~/.config/polybar/scripts/polybar-timer/polybar-timer.sh update %pid% -scroll-down = ~/.config/polybar/scripts/polybar-timer/polybar-timer.sh increase -60 ; ~/.config/polybar/scripts/polybar-timer/polybar-timer.sh update %pid% - -[module/taskwarrior] -type = custom/script -interval = 10 -exec = ~/.config/polybar/scripts/taskwarrior.sh -tail = true -format = <label> -label-padding = 1 -label= "%output%" -click-right = kill -USR2 %pid% -click-left = kill -USR1 %pid% - -[module/system-nvidia-smi] -type = custom/script -exec = ~/.config/polybar/scripts/system-nvidia-smi.sh -interval = 3 - -[module/rss] -type = custom/script -exec = ~/.config/polybar/scripts/newsboat.sh -interval = 30 - -[settings] -screenchange-reload = true - -[global/wm] -margin-top = 0 -margin-bottom = 0 - -; vim:ft=dosini diff --git a/.config/polybar/launch.sh b/.config/polybar/launch.sh @@ -1,19 +0,0 @@ -#!/usr/bin/env bash - -# Terminate already running bar instances -# If all your bars have ipc enabled, you can use -#polybar-msg cmd quit -# Otherwise you can use the nuclear option: -killall -q polybar -while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done - -# Launch bar1 and bar2 -echo "---" | tee -a /tmp/polybar1.log /tmp/polybar2.log -export PRIMARY_MONITOR=PRIMARY -export SECONDARY_MONITOR=SECONDARY -polybar primary-top 2>&1 | tee -a /tmp/polybar-primary-top.log & disown -polybar primary-bottom 2>&1 | tee -a /tmp/polybar-primary-bottom.log & disown -polybar secondary-top 2>&1 | tee -a /tmp/polybar-primary-top.log & disown -polybar secondary-bottom 2>&1 | tee -a /tmp/polybar-primary-bottom.log & disown - -echo "Bars launched..." diff --git a/.config/polybar/scripts/newsboat.sh b/.config/polybar/scripts/newsboat.sh @@ -1,13 +0,0 @@ -#!/bin/bash - -while [ $(pgrep '^newsboat$') ] -do - sleep 1s -done - -if [[ ( -n $(find $XDG_CONFIG_HOME/newsboat/cache.db -mmin +5) ) || ( $XDG_CONFIG_HOME/newsboat/cache.db -ot $XDG_CONFIG_HOME/newsboat/urls ) ]] -then - newsboat -x reload > /dev/null -fi - -newsboat -x print-unread | awk '{ print " " $1 }' diff --git a/.config/polybar/scripts/system-nvidia-smi.sh b/.config/polybar/scripts/system-nvidia-smi.sh @@ -1,3 +0,0 @@ -#!/bin/sh - -nvidia-smi --query-gpu=utilization.gpu --format=csv,noheader,nounits | awk '{ print "GPU",""$1"","%"}' diff --git a/.config/polybar/scripts/system-uptime-pretty.sh b/.config/polybar/scripts/system-uptime-pretty.sh @@ -1,3 +0,0 @@ -#!/bin/sh - -uptime --pretty | sed 's/up //' | sed 's/\ years\?,/y/' | sed 's/\ weeks\?,/w/' | sed 's/\ days\?,/d/' | sed 's/\ hours\?,\?/h/' | sed 's/\ minutes\?/m/' diff --git a/.config/polybar/scripts/taskwarrior.sh b/.config/polybar/scripts/taskwarrior.sh @@ -1,9 +0,0 @@ -active_id=$(task +ACTIVE rc.verbose: limit:1 id | cut -d ' ' -f2) -next_id=$(task next rc.verbose: limit:1 id | cut -d ' ' -f2) - -if [ -z $active_id ] -then - echo NEXT $(task _get ${next_id}.description) -else - echo ACTIVE $(task _get ${active_id}.description) -fi diff --git a/.config/polybar/scripts/updates-pacman-aurhelper.sh b/.config/polybar/scripts/updates-pacman-aurhelper.sh @@ -1,21 +0,0 @@ -#!/bin/sh - -if ! updates_arch=$(checkupdates 2> /dev/null | wc -l ); then - updates_arch=0 -fi - -if ! updates_aur=$(yay -Qum 2> /dev/null | wc -l); then -# if ! updates_aur=$(cower -u 2> /dev/null | wc -l); then -# if ! updates_aur=$(trizen -Su --aur --quiet | wc -l); then -# if ! updates_aur=$(pikaur -Qua 2> /dev/null | wc -l); then -# if ! updates_aur=$(rua upgrade --printonly 2> /dev/null | wc -l); then - updatcommites_aur=0 -fi - -updates=$(("$updates_arch" + "$updates_aur")) - -if [ "$updates" -gt 0 ]; then - echo " $updates" -else - echo "" -fi diff --git a/.config/ranger/rc.conf b/.config/ranger/rc.conf @@ -1,2 +0,0 @@ -set preview_images true -set draw_borders true diff --git a/.config/ranger/rifle.conf b/.config/ranger/rifle.conf @@ -1,155 +0,0 @@ -#------------------------------------------- -# Websites -#------------------------------------------- -ext x?html?, has qutebrowser, X, flag f = qutebrowser -- "$@" -ext x?html?, has firefox, X, flag f = firefox -- "$@" -ext x?html?, has elinks, terminal = elinks "$@" - -#------------------------------------------- -# Misc -#------------------------------------------- -# Define the "editor" for text files as first action -mime ^text, label editor = ${VISUAL:-$EDITOR} -- "$@" -mime ^text, label pager = "$PAGER" -- "$@" -!mime ^text, label editor, ext xml|json|csv|tex|py|pl|rb|js|sh|php = ${VISUAL:-$EDITOR} -- "$@" -!mime ^text, label pager, ext xml|json|csv|tex|py|pl|rb|js|sh|php = "$PAGER" -- "$@" -ext sqlite, has sqlitebrowser, X, flag f = sqlitebrowser "$@" -ext sqlite3, has sqlitebrowser, X, flag f = sqlitebrowser "$@" -ext db, has sqlitebrowser, X, flag f = sqlitebrowser "$@" -mime application/x-sqlite3, has sqlitebrowser, X, flag f = sqlitebrowser "$@" -ext psc, has pseint, X, flag f = pseint "$@" -mime application/x-hdf, has vitables, X, flag f = vitables "$@" -mime application/vnd.font-fontforge-sfd, has fontforge, X, flag f = fontforge "$@" - - -ext 1 = man "$1" -name ^[mM]akefile$ = make - -#-------------------------------------------- -# Scripts -#------------------------------------------- -ext py = python -- "$1" -ext pl = perl -- "$1" -ext rb = ruby -- "$1" -ext js = node -- "$1" -ext sh = sh -- "$1" -ext php = php -- "$1" - -#-------------------------------------------- -# Audio without X -#------------------------------------------- -mime ^audio|ogg$, terminal, has mpv = mpv -- "$@" -ext midi?, terminal, has wildmidi = wildmidi -- "$@" - -#-------------------------------------------- -# Video/Audio with a GUI -#------------------------------------------- -mime ^video, has mpv, X, flag f = mpv -- "$@" -mime ^video, has mpv, X, flag f = mpv --fs -- "$@" -mime ^video|audio, has vlc, X, flag f = vlc -- "$@" - -#-------------------------------------------- -# Video without X -#------------------------------------------- -mime ^video, terminal, !X, has mpv = mpv -- "$@" - -#------------------------------------------- -# Documents -#------------------------------------------- -ext pdf, has zathura, X, flag f = zathura -- "$@" -ext pdf, has evince, X, flag f = evince -- "$@" -ext pdf, has xournalpp,X, flag f = xournalpp "$@" -ext pdf, has mupdf, X, flag f = mupdf "$@" -ext pdf, has mupdf-x11,X, flag f = mupdf-x11 "$@" - -ext xopp, has xournalpp, X, flag f = xournalpp "$@" -ext shp, has qgis, X, flag f = qgis "$@" -ext dvi, has xdvi, X, flag f = xdvi "$@" -watchfile 1 - -ext djvu, has zathura,X, flag f = zathura -- "$@" -ext djvu, has evince, X, flag f = evince -- "$@" - -ext epub, has ebook-viewer, X, flag f = ebook-viewer -- "$@" -ext epub, has zathura, X, flag f = zathura -- "$@" -ext epub, has mupdf, X, flag f = mupdf -- "$@" -ext mobi, has ebook-viewer, X, flag f = ebook-viewer -- "$@" - -ext cbr, has zathura, X, flag f = zathura -- "$@" -ext cbz, has zathura, X, flag f = zathura -- "$@" - -#------------------------------------------- -# Images -#------------------------------------------- -mime ^image/x-xcf, has gimp, X, flag f = gimp -- "$@" -mime ^image/svg, has inkscape, X, flag f = inkscape -- "$@" - -mime ^image, has sxiv, X, flag f = sxiv -- "$@" -mime ^image, has eog, X, flag f = eog -- "$@" -mime ^image, has gimp, X, flag f = gimp -- "$@" - -#------------------------------------------- -# Archives -#------------------------------------------- - -# avoid password prompt by providing empty password -ext 7z, has 7z = 7z -p l "$@" | "$PAGER" -# This requires atool -ext ace|ar|arc|bz2?|cab|cpio|cpt|deb|dgc|dmg|gz, has atool = atool --list --each -- "$@" | "$PAGER" -ext iso|jar|msi|pkg|rar|shar|tar|tgz|xar|xpi|xz|zip, has atool = atool --list --each -- "$@" | "$PAGER" -ext 7z|ace|ar|arc|bz2?|cab|cpio|cpt|deb|dgc|dmg|gz, has atool = atool --extract --each -- "$@" -ext iso|jar|msi|pkg|rar|shar|tar|tgz|xar|xpi|xz|zip, has atool = atool --extract --each -- "$@" - -# Listing and extracting archives without atool: -ext tar|gz|bz2|xz, has tar = tar vvtf "$1" | "$PAGER" -ext tar|gz|bz2|xz, has tar = for file in "$@"; do tar vvxf "$file"; done -ext bz2, has bzip2 = for file in "$@"; do bzip2 -dk "$file"; done -ext zip, has unzip = unzip -l "$1" | less -ext zip, has unzip = for file in "$@"; do unzip -d "${file%.*}" "$file"; done -ext ace, has unace = unace l "$1" | less -ext ace, has unace = for file in "$@"; do unace e "$file"; done -ext rar, has unrar = unrar l "$1" | less -ext rar, has unrar = for file in "$@"; do unrar x "$file"; done - -#------------------------------------------- -# Fonts -#------------------------------------------- -mime ^font, has fontforge, X, flag f = fontforge "$@" - -#------------------------------------------- -# Flag t fallback terminals -#------------------------------------------- -mime ^ranger/x-terminal-emulator, has urxvt = urxvt -e "$@" -mime ^ranger/x-terminal-emulator, has gnome-terminal = gnome-terminal -- "$@" -mime ^ranger/x-terminal-emulator, has xterm = xterm -e "$@" - -#------------------------------------------- -# Misc -#------------------------------------------- -label wallpaper, number 11, mime ^image, has feh, X = feh --bg-scale "$1" -label wallpaper, number 12, mime ^image, has feh, X = feh --bg-tile "$1" -label wallpaper, number 13, mime ^image, has feh, X = feh --bg-center "$1" -label wallpaper, number 14, mime ^image, has feh, X = feh --bg-fill "$1" - -#------------------------------------------- -# Generic file openers -#------------------------------------------- -label open, has xdg-open = xdg-open -- "$@" -label open, has open = open -- "$@" - -# Define the editor for non-text files + pager as last action - !mime ^text, !ext xml|json|csv|tex|py|pl|rb|js|sh|php = ask -label editor, !mime ^text, !ext xml|json|csv|tex|py|pl|rb|js|sh|php = ${VISUAL:-$EDITOR} -- "$@" -label pager, !mime ^text, !ext xml|json|csv|tex|py|pl|rb|js|sh|php = "$PAGER" -- "$@" - - -###################################################################### -# The actions below are left so low down in this file on purpose, so # -# they are never triggered accidentally. # -###################################################################### - -# Execute a file as program/script. -mime application/x-executable = "$1" - -# Move the file to trash using trash-cli. -label trash, has trash-put = trash-put -- "$@" -label trash = mkdir -p -- ${XDG_DATA_DIR:-$HOME/.ranger}/ranger-trash; mv -- "$@" ${XDG_DATA_DIR:-$HOME/.ranger}/ranger-trash diff --git a/.config/redshift.conf b/.config/redshift.conf @@ -1,46 +0,0 @@ -; Global settings for redshift -[redshift] -; Set the day and night screen temperatures -temp-day=6000 -temp-night=4000 - -; Enable/Disable a smooth transition between day and night -; 0 will cause a direct change from day to night screen temperature. -; 1 will gradually increase or decrease the screen temperature -transition=1 - -; Set the screen brightness. Default is 1.0 -;brightness=0.9 -; It is also possible to use different settings for day and night since version 1.8. -;brightness-day=0.7 -;brightness-night=0.4 -; Set the screen gamma (for all colors, or each color channel individually) -;gamma=0.8 -;gamma=0.8:0.7:0.8 - -; Set the location-provider: 'geoclue', 'gnome-clock', 'manual' -; type 'redshift -l list' to see possible values -; The location provider settings are in a different section. -location-provider=manual - -; Set the adjustment-method: 'randr', 'vidmode' -; type 'redshift -m list' to see all possible values -; 'randr' is the preferred method, 'vidmode' is an older API -; but works in some cases when 'randr' does not. -; The adjustment method settings are in a different section. -adjustment-method=randr - -; Configuration of the location-provider: -; type 'redshift -l PROVIDER:help' to see the settings -; e.g. 'redshift -l manual:help' -[manual] -lat=-12.1 -lon=-77.0 - -; Configuration of the adjustment-method -; type 'redshift -m METHOD:help' to see the settings -; ex: 'redshift -m randr:help' -; In this example, randr is configured to adjust screen 1. -; Note that the numbering starts from 0, so this is actually the second screen. -[randr] -screen=0 diff --git a/.config/rstudio/crash-handler.conf b/.config/rstudio/crash-handler.conf diff --git a/.config/rstudio/rstudio-prefs.json b/.config/rstudio/rstudio-prefs.json @@ -1,3 +0,0 @@ -{ - "check_for_updates": false, -} diff --git a/.config/screenkey.json b/.config/screenkey.json @@ -1,32 +0,0 @@ -{ - "no_systray": false, - "timeout": 1.5, - "recent_thr": 0.1, - "compr_cnt": 0, - "ignore": [], - "position": "fixed", - "persist": false, - "font_desc": "Fira Mono 7", - "font_size": "small", - "font_color": "white", - "bg_color": "#000", - "opacity": 0.0, - "key_mode": "composed", - "bak_mode": "baked", - "mods_mode": "win", - "mods_only": false, - "multiline": false, - "vis_shift": true, - "vis_space": true, - "geometry": [ - 440, - 90, - 480, - 28 - ], - "screen": 1, - "window": null, - "start_disabled": false, - "mouse": true, - "button_hide_duration": 1 -} -\ No newline at end of file diff --git a/.config/sxiv/exec/key-handler b/.config/sxiv/exec/key-handler @@ -1,35 +0,0 @@ -#!/bin/sh - -# Example for $XDG_CONFIG_HOME/sxiv/exec/key-handler -# Called by sxiv(1) after the external prefix key (C-x by default) is pressed. -# The next key combo is passed as its first argument. Passed via stdin are the -# images to act upon, one path per line: all marked images, if in thumbnail -# mode and at least one image has been marked, otherwise the current image. -# sxiv(1) blocks until this script terminates. It then checks which images -# have been modified and reloads them. - -# The key combo argument has the following form: "[C-][M-][S-]KEY", -# where C/M/S indicate Ctrl/Meta(Alt)/Shift modifier states and KEY is the X -# keysym as listed in /usr/include/X11/keysymdef.h without the "XK_" prefix. - -rotate() { - degree="$1" - tr '\n' '\0' | xargs -0 realpath | sort | uniq | while read file; do - case "$(file -b -i "$file")" in - image/jpeg*) jpegtran -rotate "$degree" -copy all -outfile "$file" "$file" ;; - *) mogrify -rotate "$degree" "$file" ;; - esac - done -} - -case "$1" in -"C-x") xclip -in -filter | tr '\n' ' ' | xclip -in -selection clipboard ;; -"C-c") while read file; do xclip -selection clipboard -target image/png "$file"; done ;; -"C-e") while read file; do urxvt -bg "#444" -fg "#eee" -sl 0 -title "$file" -e sh -c "exiv2 pr -q -pa '$file' | less" & done ;; -"C-g") tr '\n' '\0' | xargs -0 gimp & ;; -"C-r") while read file; do rawtherapee "$file" & done ;; -"C-comma") rotate 270 ;; -"C-period") rotate 90 ;; -"C-slash") rotate 180 ;; -esac - diff --git a/.config/systemd/user/bugwarrior-pull.service b/.config/systemd/user/bugwarrior-pull.service @@ -1,9 +0,0 @@ -[Unit] -Description=bugwarrior-pull - -[Service] -ExecStart=/usr/bin/sh -c "task sync && /home/pablo/.local/bin/bugwarrior-pull && task sync" -Type=oneshot - -[Install] -WantedBy=default.target diff --git a/.config/systemd/user/bugwarrior-pull.timer b/.config/systemd/user/bugwarrior-pull.timer @@ -1,9 +0,0 @@ -[Unit] -Description=Run bugwarrior-pull hourly and on boot - -[Timer] -OnBootSec=5min -OnUnitActiveSec=10min - -[Install] -WantedBy=timers.target diff --git a/.config/task/.gitignore b/.config/task/.gitignore @@ -1,5 +0,0 @@ -taskserver/ -backlog.data -completed.data -pending.data -undo.data diff --git a/.config/task/hooks/on-exit-sync.sh b/.config/task/hooks/on-exit-sync.sh @@ -1,14 +0,0 @@ -#!/bin/sh - -n=0 -while read modified_task -do - n=$(($n + 1)) -done - -if [ $n -gt 0 ]; then - echo "on-exit: Counted $n added/modified tasks." - task sync -fi - -exit 0 diff --git a/.config/task/taskrc b/.config/task/taskrc @@ -1,9 +0,0 @@ -data.location=~/.config/task - -include ~/.config/task/taskserver/taskrc - -context.imca.read=project:flask_imca or +@imca or project:dotfiles or project:vimrc -context.imca.write=+@imca -context.desktop.read=project:pcardenasb or project:flask_imca or +@desktop or project:dotfiles or project:vimrc -context.desktop.write=+@desktop -news.version=2.6.0