summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.aliases1
-rw-r--r--.config/i3/config4
-rw-r--r--.config/i3blocks/config24
3 files changed, 15 insertions, 14 deletions
diff --git a/.aliases b/.aliases
index 84427d9..c9df426 100644
--- a/.aliases
+++ b/.aliases
@@ -1,5 +1,6 @@
# Aliases
+alias mount_nextcloud rclone mount Nextcloud:/ /mnt/nextcloud --vfs-cache-mode writes --daemon
alias monero-wallet-cli='monero-wallet-cli --config-file=/home/atc/.config/bitmonero/monero-wallet-cli.conf '
alias cp="cp -i"
alias dd="dd status=progress"
diff --git a/.config/i3/config b/.config/i3/config
index 5993d57..da263f8 100644
--- a/.config/i3/config
+++ b/.config/i3/config
@@ -141,8 +141,8 @@ bindsym $mod+shift+Insert exec $locker
bindsym $mod+a exec rofi -show run
bindsym $mod+shift+q kill
bindsym --release Print exec import -window root ~/Nextcloud/InstantUpload/Screenshots/`date +"%Y-%m-%d-%H-%M-%S"`.png
-bindsym --release shift+Print exec import ~/Nextcloud/InstantUpload/Screenshots/`date +"%Y-%m-%d-%H-%M-%S"`.png
-bindsym --release $mod+Print exec import ~/Nextcloud/InstantUpload/Screenshots/`date +"%Y-%m-%d-%H-%M-%S"`.png
+bindsym --release shift+Print exec import -monitor ~/Nextcloud/InstantUpload/Screenshots/`date +"%Y-%m-%d-%H-%M-%S"`.png
+#bindsym --release $mod+Print exec import -monitor ~/Nextcloud/InstantUpload/Screenshots/`date +"%Y-%m-%d-%H-%M-%S"`.png
bindsym Mod4+p exec nvidia-settings
bindsym $mod+F10 exec --no-startup-id mixer vol 0 && $sigaudio
bindsym $mod+F11 exec --no-startup-id mixer vol -5 && $sigaudio
diff --git a/.config/i3blocks/config b/.config/i3blocks/config
index 968a4b4..095031f 100644
--- a/.config/i3blocks/config
+++ b/.config/i3blocks/config
@@ -17,22 +17,22 @@ separator_block_width=15
[packages]
interval=once
signal=14
-command=count=$(pkg upgrade -n | sed -n 's/^Number of packages to be upgraded:\(.*\)/\1/p') ; [ -n "$count" ] && [ "$count" -gt 0 ] && printf "󰏖%s" $count && return 33 || return 0
+command=count=$(pkg upgrade -n | sed -n 's/^Number of packages to be upgraded:\(.*\)/\1/p') ; [ -n "$count" ] && [ "$count" -gt 0 ] && printf "󰏖 %s" $count && return 33 || return 0
[mail]
interval=once
signal=12
-command=unread=$(ls ~/.mail/gmail/Inbox/new/ | wc -l | cut -w -f2) ; [ $unread -gt 0 ] && printf "󰶋%s\n" $unread && return 33 || return 0
+command=unread=$(ls ~/.mail/gmail/Inbox/new/ | wc -l | cut -w -f2) ; [ $unread -gt 0 ] && printf "󰶋 %s\n" $unread && return 33 || return 0
[news]
interval=once
signal=13
-command=unread=$(newsboat -x print-unread|cut -w -f1) && [ "$unread" != 0 ] && [ "$unread" != Authentication ] && printf "󰎕%s\n" $unread || return 0
+command=unread=$(newsboat -x print-unread|cut -w -f1) && [ "$unread" != 0 ] && [ "$unread" != Authentication ] && printf "󰎕 %s\n" $unread || return 0
[updates]
interval=once
signal=15
-command=doas freebsd-update updatesready > /dev/null ; [ $? -ne 2 ] && printf "󰣠Updates ready" || return 0
+command=doas freebsd-update updatesready > /dev/null ; [ $? -ne 2 ] && printf "󰣠 Updates ready" || return 0
[weather]
interval=300
@@ -40,7 +40,7 @@ command=weather.sh
[net]
interval=10
-command=[ "$BLOCK_BUTTON" = 3 ] && doas service netif restart || inet=$(ifconfig lagg0 | grep inet\ | cut -w -f3 | tr '\n' ' ') ; [ "$(ifconfig em0|grep status|cut -d\: -f2)" = " active" ] && printf "󰈁%s\n" "$inet" || [ "$(ifconfig wlan0|grep status|cut -d\: -f2)" = " associated" ] && ssid=$(ifconfig wlan0|sed -n 's/^.*ssid \(.*\) channel.*$/\1/p') && [ -n "$ssid" ] && printf "󰖩%s %s\n" "$ssid" "$inet" && return 0 || printf "󰈂Offline\n" && return 33
+command=[ "$BLOCK_BUTTON" = 3 ] && doas service netif restart || inet=$(ifconfig lagg0 | grep inet\ | cut -w -f3 | tr '\n' ' ') ; [ "$(ifconfig em0|grep status|cut -d\: -f2)" = " active" ] && printf "󰈁 %s\n" "$inet" || [ "$(ifconfig wlan0|grep status|cut -d\: -f2)" = " associated" ] && ssid=$(ifconfig wlan0|sed -n 's/^.*ssid \(.*\) channel.*$/\1/p') && [ -n "$ssid" ] && printf "󰖩 %s %s\n" "$ssid" "$inet" && return 0 || printf "󰈂 Offline\n" && return 33
[screencast]
interval=once
@@ -50,28 +50,28 @@ command=[ -f /tmp/cast.mkv ] && printf "󰻂\n" || return 0
[audio]
interval=once
signal=10
-command=vol=$(mixer vol|cut -d':' -f2) ; printf "󰕾%.2d\n" $vol ; [ $vol -eq 0 ] && return 33 || return 0
+command=vol=$(mixer vol|cut -d':' -f2) ; printf "󰕾 %.2d\n" $vol ; [ $vol -eq 0 ] && return 33 || return 0
[disk]
interval=60
-command=printf "󰋊%s\n" $(df -hk /usr/home | cut -w -f5 | sed 1d)
+command=printf "󰋊 %s\n" $(df -hk /usr/home | cut -w -f5 | sed 1d)
[memory]
interval=10
-command=printf "󰍛%s\n" $(top -n | grep Mem | cut -w -f2)
+command=printf "󰑮 %s 󱎔 %s\n" $(top -n|grep Mem:|cut -w -f2,8)
[load]
interval=10
-command=cpu_count=$(sysctl -n hw.ncpu) ; avg_load=$(sysctl vm.loadavg|cut -w -f3) ; percent=$(echo "result = $avg_load / $cpu_count * 100; scale=0; result / 1"|bc -l) ; printf "󰻠%.2d%%\n" $percent ; [ $percent -ge 70 ] && return 33 || return 0
+command=cpu_count=$(sysctl -n hw.ncpu) ; avg_load=$(sysctl vm.loadavg|cut -w -f3) ; percent=$(echo "result = $avg_load / $cpu_count * 100; scale=0; result / 1"|bc -l) ; printf "󰻠 %.2d%%\n" $percent ; [ $percent -ge 70 ] && return 33 || return 0
[temp]
interval=10
-command=celcius=$(sysctl -n dev.cpu.0.temperature|cut -d'.' -f1) ; printf "󰔏%.3d ℉\n" $(echo "$celcius * 9 / 5 + 32" | bc) ; [ $celcius -ge 80 ] && return 33 || return 0
+command=celcius=$(sysctl -n dev.cpu.0.temperature|cut -d'.' -f1) ; printf "󰔏 %.3d℉\n" $(echo "$celcius * 9 / 5 + 32" | bc) ; [ $celcius -ge 80 ] && return 33 || return 0
[battery]
interval=60
-command=status=$(apm -b) ; level=$(apm -l) ; [ $status -eq 3 ] && printf "󰂄%.2d%%" $level || printf "󰂁%.2d%%" $level && [ $status -eq 2 ] && return 33 || return 0
+command=status=$(apm -b) ; level=$(apm -l) ; [ $status -eq 3 ] && printf "󰂄 %.2d%%" $level || printf "󰂁 %.2d%%" $level && [ $status -eq 2 ] && return 33 || return 0
[date]
interval=59
-command=printf "󰃰%s\n" "$(date '+%a %b %e %l:%M %p')"
+command=printf "󰃰 %s\n" "$(date '+%a %b %e %l:%M %p')"