Compare commits
No commits in common. "509094355eaf602b93a30fff29710828b555f2df" and "113591c7a99c7fbc58878204586310ec1d4b7e11" have entirely different histories.
509094355e
...
113591c7a9
2
emails
2
emails
@ -2,4 +2,4 @@
|
||||
|
||||
# We setup xauthority file to display stuff
|
||||
auth="$(xauth extract - "$DISPLAY" | base64)"
|
||||
exec sudo -u emails sh -c "echo -n '$auth' | base64 -d > ~/.Xauthority && . ~/.bashrc && cd ~/attachements && exec neomutt"
|
||||
exec sudo -u emails sh -c "echo -n '$auth' | base64 -d > ~/.Xauthority && . ~/.bashrc && cd ~/attachements && exec aerc"
|
||||
|
@ -1,3 +1,3 @@
|
||||
#!/bin/sh
|
||||
# Lock screen and suspend if enabled in config file
|
||||
i3lock -e -c 000000 -u && [ "$(cat "$XDG_RUNTIME_DIR/enable_suspend")" != off ] && systemctl suspend
|
||||
i3lock -e -c 000000 -u && [ -z "$(grep off "/run/user/1000/enable_suspend")" ] && systemctl suspend
|
||||
|
@ -1,19 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
prefix=lol
|
||||
token=toto
|
||||
ui_port=9000
|
||||
|
||||
docker run --rm -it \
|
||||
-p "$ui_port:$ui_port" \
|
||||
-e _JAVA_OPTIONS='-Djava.net.preferIPv6Addresses=true' \
|
||||
-v "$HOME/Downloads/qbittorrent/ratiomaster:/joal/torrents/" \
|
||||
--name="ratiomaster" s8n02/joal \
|
||||
--joal-conf="/joal" \
|
||||
--spring.main.web-environment=true \
|
||||
--server.port="$ui_port" \
|
||||
--joal.ui.path.prefix="$prefix" \
|
||||
--joal.ui.secret-token="$token"
|
||||
|
||||
echo "Go to http://localhost:$ui_port/$prefix/ui"
|
||||
echo "And set settings to connect. prefix=$prefix token=$token"
|
@ -1,8 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ "$#" -ne 1 ] ; then
|
||||
echo "Usage : $0 +/-" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
xrandr --output "$(xrandr --listactivemonitors | grep -o '[[a-zA-Z0-9\-]\{2,\}$' -m 1)" --gamma 1:0.3:0.3 --brightness 1.3
|
20
startsync
20
startsync
@ -1,8 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
#feedreader &>/dev/null &
|
||||
#jami-gnome &>/dev/null &
|
||||
nicotine &>/dev/null &
|
||||
qbittorrent &>/dev/null &
|
||||
#vdirsyncer sync
|
||||
sudo -u emails syncmails
|
||||
nextcloud &
|
||||
feedreader &
|
||||
#jami-gnome &
|
||||
offlineimap
|
||||
vdirsyncer sync
|
||||
birthday_reminder
|
||||
while true ; do
|
||||
offlineimap -q
|
||||
#mpop -a
|
||||
#notmuch new
|
||||
sleep 30
|
||||
done
|
||||
|
@ -1,7 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
offlineimap
|
||||
while true ; do
|
||||
sleep 30
|
||||
offlineimap -q
|
||||
done
|
5
term
5
term
@ -1,4 +1,3 @@
|
||||
#!/bin/bash
|
||||
pid="$(xdotool getactivewindow getwindowpid)"
|
||||
[ -n "$pid" ] && cd "$(readlink -f "/proc/$(pgrep -P "$pid")/cwd")" &>/dev/null || cd "$HOME"
|
||||
#!/bin/sh
|
||||
cd "$(readlink -f "/proc/$(pgrep -P $(xdotool getwindowpid "$(xdotool getactivewindow)"))/cwd")" &>/dev/null || cd "$HOME"
|
||||
exec st "${SHELL:-bash}"
|
||||
|
22
wifi_chooser
22
wifi_chooser
@ -60,29 +60,13 @@ ssid="$(nmcli -f IN-USE,SSID,BARS d wifi list | dmenu -l 8)"
|
||||
ssid="$(echo "${ssid:2:-5}" | sed 's/^ *//g' | sed 's/ *$//g')"
|
||||
|
||||
# We get a clean version of SSIDs. It is a fix to connect to wifis that begin or end with spaces
|
||||
ssid="$(nmcli -f SSID -m multiline -t -c no d wifi list | grep -F -- "$ssid")"
|
||||
ssid="$(nmcli -f SSID -m multiline -t -c no d wifi list | grep -F "$ssid")"
|
||||
ssid="${ssid:5}"
|
||||
|
||||
[ $verb -gt 0 ] && echo "ssid: $ssid"
|
||||
[ -z "$ssid" ] && notify "No SSID selected" && exit 1
|
||||
|
||||
notify "Connecting to $ssid"
|
||||
#out="$(nmcli d wifi connect "$ssid" 2>&1 | grep -i error)"
|
||||
out="$(nmcli con up "$ssid" 2>&1 | grep -i error)"
|
||||
out="$(nmcli d wifi connect "$ssid" 2>&1 | grep -i error)"
|
||||
res="$?"
|
||||
# 10 If the connexion does not exist already #
|
||||
# 4 If the SSID got multiple bad connexion names #
|
||||
if [ "$res" -ne 0 ] ; then
|
||||
out2="$out"
|
||||
out="$(nmcli device wifi connect "$ssid" 2>&1 | grep -i error)"
|
||||
res="$?"
|
||||
fi
|
||||
if [ -n "$(echo $out | grep -i 'secrets were required')" ] ; then
|
||||
out2="$out2$out"
|
||||
notify "Need password"
|
||||
pass="$(zenity --password)"
|
||||
out="$(nmcli device wifi connect "$ssid" --password "$pass" 2>&1 | grep -i error)"
|
||||
res="$?"
|
||||
fi
|
||||
|
||||
[ -z "$out" ] && notify "Connected :)" || notify "Error connecting :(\n$out\n$out2"
|
||||
[ -z "$out" ] && notify "Connected :)" || notify "Error connecting :(\n$out"
|
||||
|
Loading…
Reference in New Issue
Block a user