mirror of
https://github.com/frebib/dotfiles.git
synced 2024-06-14 12:57:23 +00:00
Compare commits
No commits in common. "8e74101f3e733e3417c45ef0a0bc2b5538f576d1" and "895d0ff0aa1caa207564155a76b2defcca709089" have entirely different histories.
8e74101f3e
...
895d0ff0aa
@ -51,16 +51,21 @@
|
|||||||
# Ignore newlines '\n' in notifications.
|
# Ignore newlines '\n' in notifications.
|
||||||
ignore_newline = no
|
ignore_newline = no
|
||||||
|
|
||||||
# dynamic width from 0 to 400
|
# The geometry of the window:
|
||||||
# width = (0, 400)
|
# [{width}]x{height}[+/-{x}+/-{y}]
|
||||||
# constant width of 400
|
# The geometry of the message window.
|
||||||
width = (320, 360)
|
# The height is measured in number of notifications everything else
|
||||||
|
# in pixels. If the width is omitted but the height is given
|
||||||
|
# ("-geometry x2"), the message window expands over the whole screen
|
||||||
|
# (dmenu-like). If width is 0, the window expands to the longest
|
||||||
|
# message displayed. A positive x is measured from the left, a
|
||||||
|
# negative from the right side of the screen. Y is measured from
|
||||||
|
# the top and down respectevly.
|
||||||
|
# The width can be negative. In this case the actual width is the
|
||||||
|
# screen width minus the width defined in within the geometry option.
|
||||||
|
|
||||||
# Position the notification in the top right corner
|
# 53 = 30 + 23 (bar-height)
|
||||||
origin = top-right
|
geometry = "360x5-30+30"
|
||||||
|
|
||||||
# Offset from the origin
|
|
||||||
offset = 30x30
|
|
||||||
|
|
||||||
# Shrink window if it's smaller than the width. Will be ignored if
|
# Shrink window if it's smaller than the width. Will be ignored if
|
||||||
# width is 0.
|
# width is 0.
|
||||||
@ -69,7 +74,7 @@
|
|||||||
# The transparency of the window. Range: [0; 100].
|
# The transparency of the window. Range: [0; 100].
|
||||||
# This option will only work if a compositing windowmanager is
|
# This option will only work if a compositing windowmanager is
|
||||||
# present (e.g. xcompmgr, compiz, etc.).
|
# present (e.g. xcompmgr, compiz, etc.).
|
||||||
transparency = 20
|
transparency = 15
|
||||||
|
|
||||||
# Don't remove messages, if the user is idle (no mouse or keyboard input)
|
# Don't remove messages, if the user is idle (no mouse or keyboard input)
|
||||||
# for longer than idle_threshold seconds.
|
# for longer than idle_threshold seconds.
|
||||||
|
@ -9,7 +9,7 @@ GEM_SPEC_CACHE="$XDG_CACHE_HOME/gem"
|
|||||||
GOPATH="$XDG_DATA_HOME/go"
|
GOPATH="$XDG_DATA_HOME/go"
|
||||||
ICEAUTHORITY="$XDG_CACHE_HOME/ICEauthority"
|
ICEAUTHORITY="$XDG_CACHE_HOME/ICEauthority"
|
||||||
NPM_CONFIG_USERCONFIG="$XDG_CONFIG_HOME/npm/npmrc"
|
NPM_CONFIG_USERCONFIG="$XDG_CONFIG_HOME/npm/npmrc"
|
||||||
PASSWORD_STORE_DIR="$XDG_DATA_HOME/pass"
|
#PASSWORD_STORE_DIR="$XDG_DATA_HOME/pass"
|
||||||
PYTHONSTARTUP="$XDG_CONFIG_HOME/python/startup"
|
PYTHONSTARTUP="$XDG_CONFIG_HOME/python/startup"
|
||||||
RUSTUP_HOME="$XDG_DATA_HOME/rustup"
|
RUSTUP_HOME="$XDG_DATA_HOME/rustup"
|
||||||
TERMINFO="$XDG_DATA_HOME/terminfo"
|
TERMINFO="$XDG_DATA_HOME/terminfo"
|
||||||
|
@ -19,14 +19,8 @@
|
|||||||
[pull]
|
[pull]
|
||||||
rebase = true
|
rebase = true
|
||||||
prune = true
|
prune = true
|
||||||
[merge]
|
|
||||||
ff = only
|
|
||||||
[rebase]
|
[rebase]
|
||||||
autoStash = true
|
autoStash = true
|
||||||
[remote "origin"]
|
|
||||||
fetch = +refs/pull/*/head:refs/remotes/origin/pr/*
|
|
||||||
[remote "upstream"]
|
|
||||||
fetch = +refs/pull/*/head:refs/remotes/upstream/pr/*
|
|
||||||
[log]
|
[log]
|
||||||
date = iso8601-local
|
date = iso8601-local
|
||||||
[format]
|
[format]
|
||||||
|
@ -151,8 +151,7 @@ bindsym $mod+$alt+space exec systemd-run-i3 -s background -n ~/.config/i
|
|||||||
bindsym $mod+numbersign exec systemd-run-i3 -n i3-sensible-terminal --hold -e sh -c 'xclip -o | gpg --decrypt 2>&1'
|
bindsym $mod+numbersign exec systemd-run-i3 -n i3-sensible-terminal --hold -e sh -c 'xclip -o | gpg --decrypt 2>&1'
|
||||||
bindsym $mod+r exec bash -c 'pwgen -snc 32 1 | tee >(xargs notify-send Generated\ password\:) | xclip -i -r'
|
bindsym $mod+r exec bash -c 'pwgen -snc 32 1 | tee >(xargs notify-send Generated\ password\:) | xclip -i -r'
|
||||||
bindsym $mod+g exec systemd-run-i3 -n notify-send -c transfer "$(gist -PRpc)"
|
bindsym $mod+g exec systemd-run-i3 -n notify-send -c transfer "$(gist -PRpc)"
|
||||||
bindsym --release $mod+i exec systemd-run-i3 -s background -n sh -c 'sleep 0.5 && xdotool getactivewindow type --delay 10 -- "$(xclip -o -selection clipboard)"'
|
bindsym --release $mod+i exec systemd-run-i3 -s background -n sh -c 'sleep 0.5 && xdotool getactivewindow type --delay 250 "$(xclip -o -selection clipboard)"'
|
||||||
bindsym $mod+z exec otp | rofi -dmenu -p otp | xargs otp
|
|
||||||
|
|
||||||
# Media player controls
|
# Media player controls
|
||||||
bindsym XF86AudioPlay exec --no-startup-id playerctl -a play-pause
|
bindsym XF86AudioPlay exec --no-startup-id playerctl -a play-pause
|
||||||
|
42
scripts/otp
42
scripts/otp
@ -1,42 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
while getopts "on:" o; do
|
|
||||||
case "${o}" in
|
|
||||||
o)
|
|
||||||
stdout=1;;
|
|
||||||
n)
|
|
||||||
caller="${OPTARG}"
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
exec ykman oath accounts list
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
shift $((OPTIND-1))
|
|
||||||
|
|
||||||
if [ $# -lt 1 ]; then
|
|
||||||
exec ykman oath accounts list
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -n "$caller" ]; then
|
|
||||||
notif="$(notify-send -p "Touch your Yubikey" "$caller is requesting otp for $1")"
|
|
||||||
fi
|
|
||||||
|
|
||||||
ykman oath accounts code -s "$1" 2>&1 |
|
|
||||||
while read -r x; do
|
|
||||||
if grep -Pqw '[0-9]{6}' <<< "$x"; then
|
|
||||||
if [ -z "$stdout" ]; then
|
|
||||||
echo "$x" | tee >(xclip -i)
|
|
||||||
xdotool type "$x"
|
|
||||||
else
|
|
||||||
echo "$x"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
if [ -z "$stdout" ]; then
|
|
||||||
notify-send "$x";
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
if [ -n "$notif" ]; then
|
|
||||||
notify-send -r "$notif" -t 1000 "Touch your Yubikey" "otp generated for $caller"
|
|
||||||
fi
|
|
Loading…
Reference in New Issue
Block a user