summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2022-01-07 19:36:06 +0100
committerRomain Gonçalves <me@rgoncalves.se>2022-01-07 19:36:06 +0100
commita380254393b2a1e08e4dd02e96e5c206a457ec59 (patch)
tree77c9cd8e883eed16c49119fb2700a5268ce1239d
parente7b2188fe8dd715603dbd509fc62de6e872933a2 (diff)
downloaddots-a380254393b2a1e08e4dd02e96e5c206a457ec59.tar.gz
Fri Jan 7 07:36:06 PM CET 2022
-rwxr-xr-x.bin/ag-audio12
-rwxr-xr-x.bin/nmutt2
-rwxr-xr-x.config/pipewire/pipewire-pulse.sh16
-rwxr-xr-x.config/qutebrowser/config.py4
-rwxr-xr-x.config/qutebrowser/greasemonkey/github-css.js2
-rwxr-xr-x.config/qutebrowser/greasemonkey/glassdoor-css.js9
-rwxr-xr-x.zshrc5
7 files changed, 41 insertions, 9 deletions
diff --git a/.bin/ag-audio b/.bin/ag-audio
index f39522f..c39fd61 100755
--- a/.bin/ag-audio
+++ b/.bin/ag-audio
@@ -1,19 +1,23 @@
#!/bin/sh
__increase() {
- pamixer -i "${1:-10}"
+ pactl set-sink-volume @DEFAULT_SINK@ "+${1:-10}%"
}
__decrease() {
- pamixer -d "${1:-10}"
+ pactl set-sink-volume @DEFAULT_SINK@ "-${1:-10}%"
}
__mic_toggle() {
- pamixer --default-source -t
+ pactl set-source-mute @DEFAULT_SOURCE@ toggle
+ pactl get-source-mute @DEFAULT_SOURCE@ | grep no >/dev/null 2>&1
+ echo "${?}" > /sys/class/leds/platform::micmute/brightness
}
__toggle() {
- pamixer -t
+ pactl set-sink-mute @DEFAULT_SINK@ toggle
+ pactl get-sink-mute @DEFAULT_SINK@ | grep no >/dev/null 2>&1
+ echo "${?}" > /sys/class/leds/platform::mute/brightness
}
__next() {
diff --git a/.bin/nmutt b/.bin/nmutt
index f8172b1..0ee2822 100755
--- a/.bin/nmutt
+++ b/.bin/nmutt
@@ -15,5 +15,5 @@ export MAIL_SERVER=$(get_param "${NMUTT_CONFIGURATION_FILE}" "my_server")
export MAIL_USERNAME=$(get_param "${NMUTT_CONFIGURATION_FILE}" "my_user")
export MAIL_PASSWORD=$(get-pass "mailbox")
-notmuch new
+#notmuch new
exec neomutt ${@}
diff --git a/.config/pipewire/pipewire-pulse.sh b/.config/pipewire/pipewire-pulse.sh
index aff3a23..4abff58 100755
--- a/.config/pipewire/pipewire-pulse.sh
+++ b/.config/pipewire/pipewire-pulse.sh
@@ -11,11 +11,19 @@ source_index=$(pactl list short sources |
echo "${source_index}"
-pactl load-module module-remap-source \
+#pactl load-module module-remap-source \
+# "source_name=${source_name}" \
+# "master=${source_index}" \
+# use_master_format=1 \
+# master_channel_map=front-left \
+# channel_map=mono \
+# channels=1
+
+pactl load-module module-echo-cancel \
"source_name=${source_name}" \
"master=${source_index}" \
- channels=1 \
- master_channel_map=front-left \
- channel_map=mono
+ use_master_format=1 \
+ aec_method="webrtc" \
+ aec_args='"beamforming=1 mic_geometry=-1,0,0,1,0,0"'
pactl set-default-source "${source_name}"
diff --git a/.config/qutebrowser/config.py b/.config/qutebrowser/config.py
index 776face..c86a473 100755
--- a/.config/qutebrowser/config.py
+++ b/.config/qutebrowser/config.py
@@ -98,3 +98,7 @@ config.set('url.searchengines',
config.set('downloads.location.directory', f'{os.environ["HOME"]}/downloads')
config.set('content.autoplay', False)
config.set('content.cookies.accept', 'no-3rdparty')
+
+config.set('content.headers.do_not_track', False, '*://*.thetrainline.com/*')
+config.set('content.blocking.enabled', False, '*://*.thetrainline.com/*')
+config.set('content.cookies.accept', 'all', '*://*.thetrainline.com/*')
diff --git a/.config/qutebrowser/greasemonkey/github-css.js b/.config/qutebrowser/greasemonkey/github-css.js
index 7b32636..3b954b2 100755
--- a/.config/qutebrowser/greasemonkey/github-css.js
+++ b/.config/qutebrowser/greasemonkey/github-css.js
@@ -5,8 +5,10 @@
// @grant none
// ==/UserScript==
+/*
GM_addStyle(`
*, .BtnGroup-item {
border-radius: 0px !important;
}
`)
+*/
diff --git a/.config/qutebrowser/greasemonkey/glassdoor-css.js b/.config/qutebrowser/greasemonkey/glassdoor-css.js
new file mode 100755
index 0000000..d0e0e49
--- /dev/null
+++ b/.config/qutebrowser/greasemonkey/glassdoor-css.js
@@ -0,0 +1,9 @@
+// ==UserScript==
+// @name glassdoor
+// @match https://*.glassdoor.com/*
+// @grant none
+// ==/UserScript==
+
+window.addEventListener('load', function () {
+ window.onscroll = null;
+})
diff --git a/.zshrc b/.zshrc
index f30f562..0a3a6d2 100755
--- a/.zshrc
+++ b/.zshrc
@@ -58,5 +58,10 @@ PROMPT="${PROMPT}%F{015}${_dir}"
PROMPT="${PROMPT}${_separator}${_prompt}${_separator}%f"
RPROMPT='${vcs_info_msg_0_}'
+# pyenv
+# export PYENV_ROOT="$HOME/.pyenv"
+eval "$(pyenv init --path)"
+eval "$(pyenv init -)"
+
(cat ~/.cache/dot/sequences 2>/dev/null &)
# clear
remember that computers suck.