aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--aliases10
-rwxr-xr-xbin/sound_check13
-rwxr-xr-xbin/url_handler14
-rw-r--r--env4
-rwxr-xr-xherbstluftwm/autostart2
-rwxr-xr-xsxhkd/dwmKeys40
6 files changed, 35 insertions, 48 deletions
diff --git a/aliases b/aliases
index f84f308..ea788ee 100644
--- a/aliases
+++ b/aliases
@@ -100,10 +100,7 @@ alias pm='pulsemixer'
alias yda='youtube-dl -4 -x --audio-format mp3 -o "~/Música/%(title)s.%(ext)s"'
alias xclip='xclip -sel copy'
alias hc='herbstclient'
-alias tg='telegram-cli'
-
-# abre o GTA V com facilidade
-alias gtav='legendary launch 9d2d0eb64d5c44529cece33fe2a46482'
+alias neomutt='cd ~/Downloads && neomutt'
# todo.txt
alias t='todo.sh'
@@ -117,8 +114,7 @@ alias rec='ffmpeg -f x11grab -s 1920x1080 -i :0.0 Vídeos/rec.mp4'
# list all installed packages with descriptions using fzf
alias lspkgs="pacman -Qq | fzf --preview 'pacman -Qil {}' --layout=reverse --bind 'enter:execute(pacman -Qil {} | less)'"
+alias integra="streamlink twitch.tv/integrapoli best --player mpv"
+
# quickly change kb layout
alias xkb='setxkbmap -model abnt2 -layout br -variant abnt2 -option caps:swapescape'
-
-# poweroff alias
-alias pwr='doas poweroff'
diff --git a/bin/sound_check b/bin/sound_check
new file mode 100755
index 0000000..91b281b
--- /dev/null
+++ b/bin/sound_check
@@ -0,0 +1,13 @@
+#!/bin/env dash
+
+# mutes the microphone and send a notification
+
+# default sink state: 1 if muted, 0 if else
+mute="$(pulsemixer --get-mute)"
+
+[ "$mute" -eq 0 ] && notify-send "Alto-falante" "Mudo"
+
+[ "$mute" -eq 1 ] && notify-send "Alto-falante" "Som reativado"
+
+# (un)mutes the speaker
+pulsemixer --toggle-mute
diff --git a/bin/url_handler b/bin/url_handler
new file mode 100755
index 0000000..ce261df
--- /dev/null
+++ b/bin/url_handler
@@ -0,0 +1,14 @@
+#!/bin/env bash
+
+# manage the program in which the url should be displayed in
+# intended use with programs such as urlscan or urlview
+
+urlname="$(basename "$1")"
+
+case "$urlname" in
+ *.jpg) urlImage "$1";;
+ *.jpeg) urlImage "$1";;
+ *.png) urlImage "$1";;
+ *.html) "$BROWSER_CLI"-I "UTF-8" -T text/html "$1";;
+ *) "$BROWSER" "$1"
+esac
diff --git a/env b/env
index b77a34d..9c9cb17 100644
--- a/env
+++ b/env
@@ -17,6 +17,10 @@ export BROWSER_CLI="w3m"
# export TERMINAL, for ease when changing VTEs
export TERMINAL="st"
+# taskwarrior
+export TASKRC="$HOME/.config/task/taskrc"
+export TASKDATA="$HOME/.config/task/"
+
# XDG dirs
export XDG_DATA_HOME=${XDG_DATA_HOME:="$HOME/.local/share"}
export XDG_CACHE_HOME=${XDG_CACHE_HOME:="$HOME/.cache"}
diff --git a/herbstluftwm/autostart b/herbstluftwm/autostart
index 3ca1970..1dabd96 100755
--- a/herbstluftwm/autostart
+++ b/herbstluftwm/autostart
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/env bash
# this is a simple config for herbstluftwm
diff --git a/sxhkd/dwmKeys b/sxhkd/dwmKeys
deleted file mode 100755
index 95c6df4..0000000
--- a/sxhkd/dwmKeys
+++ /dev/null
@@ -1,40 +0,0 @@
-#!/bin/env bash
-
-# Simple X Hotkey Daemon config for use with dwm
-# All hotkeys related to dwm are defined in its own config file.
-# You can check my fork of dwm at https://github.com/Pinoinha/dwm-meu
-
-# reload sxhkd
-super + r
- pkill -USR1 -x sxhkd ; notify-send 'sxhkd' 'Reloaded config'
-
-# -- Audio Control -- #
-
-XF86AudioMute
- pulsemixer --toggle-mute; pkill -RTMIN+10 dwmblocks
-
-XF86AudioLowerVolume
- pulsemixer --change-volume -5; pkill -RTMIN+10 dwmblocks
-
-XF86AudioRaiseVolume
- pulsemixer --change-volume +5; pkill -RTMIN+10 dwmblocks
-
-XF86AudioMicMute
- mic_check
-
-XF86AudioPrev
- mpc prev
-
-XF86AudioPlay
- mpc toggle
-
-XF86AudioNext
- mpc next
-
-# -- Brightness Control -- #
-
-XF86MonBrightnessDown
- xbacklight -dec 10
-
-XF86MonBrightnessUp
- xbacklight -inc 10