shortcut updates

master
tiynger 5 years ago
parent df2abe0340
commit 99a701d793

@ -2,36 +2,14 @@ command=~/.local/bin/statusbar/$BLOCK_NAME
separator_block_width=15 separator_block_width=15
markup=pango markup=pango
#[record]
#command=cat /tmp/recordingicon
#interval=once
#signal=9
#[music]
#label=🎼
#interval=once
#signal=11
#[news]
#label=📰
#interval=once
#signal=6
#[iplocate]
#interval=30
[pacpackages] [pacpackages]
label=📦 label=📦
interval=once interval=once
signal=8 signal=8
#[torrent] [weather]
#interval=20 interval=180
#signal=7 signal=5
#[weather]
#interval=180
#signal=5
[mailbox] [mailbox]
label=📬 label=📬
@ -50,9 +28,9 @@ label=💻
interval=once interval=once
signal=10 signal=10
#[disk] [disk]
#interval=60 interval=60
#command=disk / command=disk /
[disk] [disk]
interval=60 interval=60

@ -1,8 +1,20 @@
# Basic binds # Basic binds
super + Return super + Return
$TERMINAL $TERMINAL
super + b
$BROWSER
super + c
code
super + d super + d
dmenu_run dmenu_run
super + f
$TERMINAL -e $FILE
super + j
xournalpp
super + m
$TERMINAL -e neomutt
super + i
idea
# Et cetera... # Et cetera...
XF86Launch1 XF86Launch1
@ -36,21 +48,6 @@ XF86MonBrightnessUp
# Function keys # Function keys
# Show readme
super + F1
groff -mom $HOME/.local/share/larbs/readme.mom -Tpdf | zathura -
# Browser
super + F2
$BROWSER
# File Manager
super + F3
$TERMINAL -e $FILE
# VS Code
super + F4
code
# xournal
super + F5
xournalpp
# Mount a USB drive or Android device # Mount a USB drive or Android device
super + F6 super + F6
dmenumount dmenumount
@ -63,12 +60,12 @@ super + F8
# Network Manager interface # Network Manager interface
super + F9 super + F9
$TERMINAL -e sudo -A nmtui $TERMINAL -e sudo -A nmtui
# Reboot
super + F11
prompt "Reboot computer?" "sudo -A shutdown -r now"
# Hibernate # Hibernate
super + F10 super + F10
prompt 'Hibernate computer?' 'sudo systemctl suspend' prompt 'Hibernate computer?' 'sudo systemctl suspend'
# Reboot
super + F11
prompt "Reboot computer?" "sudo -A shutdown -r now"
# Shutdown # Shutdown
super + F12 super + F12
prompt "Shutdown computer?" "sudo -A shutdown -h now" prompt "Shutdown computer?" "sudo -A shutdown -h now"

@ -75,6 +75,12 @@ sudo pacman -S openssh
## add owncloud-client ## add owncloud-client
sudo pacman -S owncloud-client sudo pacman -S owncloud-client
## add pip3
sudo pacman -S python-pip
## add pip3 module httplib2 for calcurse
pip3 install --user httplib2
## add pulseaudio-alsa pulseaudio-bluetooth ## add pulseaudio-alsa pulseaudio-bluetooth
sudo pacman -S pulseaudio-alsa pulseaudio-bluetoot sudo pacman -S pulseaudio-alsa pulseaudio-bluetoot
@ -122,9 +128,5 @@ sudo pacman -S xournalpp
## add zip ## add zip
sudo pacman -S jdk8-openjdk sudo pacman -S jdk8-openjdk
## add pip3 ## remove unwanted files
sudo pacman -S python-pip rm -r ~/.local/share/larbs
## add pip3 module httplib2 for calcurse
pip3 install --user httplib2

@ -5,3 +5,5 @@ git clone https://aur.archlinux.org/thinkfan $HOME/downloads/set\-ups/thinkfan
cd $HOME/downloads/set\-ups/thinkfan cd $HOME/downloads/set\-ups/thinkfan
makepkg -sirc makepkg -sirc
##adding support for touchpad
pacman -S xf86-input-synaptics

@ -1,7 +0,0 @@
#!/bin/sh
kill -9 "$(cat ~/.recordingpid)"
# Update i3bar.
echo "" > ~/.recordingicon
pkill -RTMIN+9 i3blocks

@ -1,10 +0,0 @@
#!/bin/sh
# Display contents of selection via dunst if running.
# Separate script for i3.
clip=$(xclip -o -selection clipboard)
prim=$(xclip -o -selection primary)
[ -n "$clip" ] && notify-send "Clipboard:" "$clip"
[ -n "$prim" ] && notify-send "Primary:" "$prim"

@ -1,4 +0,0 @@
#!/bin/sh
# This is the script that i3 runs to either start tmux in
# the dropdown terminal or log into a previous session.
tmux a || tmux

@ -1,9 +0,0 @@
#!/bin/sh
# Gets your public ip address checks which country you are in and
# displays that information in the statusbar
#
# https://www.maketecheasier.com/ip-address-geolocation-lookups-linux/
ifinstalled "geoiplookup" || exit
addr="$(curl ifconfig.me 2>/dev/null)" || exit
grep "flag: " ~/.config/emoji | grep "$(geoiplookup $addr | sed 's/.*, //')" | sed "s/flag: //;s/;.*//"

@ -1,18 +0,0 @@
#!/bin/sh
filter() {
sed "/^volume:/d" | tac | sed -e "s/\\&/&amp;/g;s/\\[paused\\].*/<span color=\"gray\" font_style=\"italic\">/g;s/\\[playing\\].*/<span>/g" | tr -d '\n' | sed -e "s/$/<\\/span>/g"
}
case $BLOCK_BUTTON in
1) mpc status | filter && setsid "$TERMINAL" -e ncmpcpp & ;; # right click, pause/unpause
2) mpc toggle | filter ;; # right click, pause/unpause
3) mpc status | filter && pgrep -x dunst >/dev/null && notify-send "🎵 Music module" "\- Shows mpd song playing.
- Italic when paused.
- Left click opens ncmpcpp.
- Middle click pauses.
- Scroll changes track.";; # right click, pause/unpause
4) mpc prev | filter ;; # scroll up, previous
5) mpc next | filter ;; # scroll down, next
*) mpc status | filter ;;
esac; exit

@ -1,17 +0,0 @@
#!/bin/sh
# i3blocks newsboat module.
# Displays number of unread news items and an loading icon if updating.
# When clicked, brings up `newsboat`.
case $BLOCK_BUTTON in
1) setsid "$TERMINAL" -e newsboat ;;
2) setsid newsup >/dev/null & exit ;;
3) pgrep -x dunst >/dev/null && notify-send "📰 News module" "\- Shows unread news items
- Shows 🔃 if updating with \`newsup\`
- Left click opens newsboat
- Middle click syncs RSS feeds
<b>Note:</b> Only one instance of newsboat (including updates) may be running at a time." ;;
esac
cat /tmp/newsupdate 2>/dev/null || echo "$(newsboat -x print-unread | awk '{ print $1}' | sed s/^0$//g)$(cat ~/.config/newsboat/.update 2>/dev/null)"

@ -1,28 +0,0 @@
#!/bin/sh
transmission-remote -l | grep % |
sed " # This first sed command is to ensure a desirable order with sort
s/.*Stopped.*/A/g;
s/.*Seeding.*/Z/g;
s/.*100%.*/N/g;
s/.*Idle.*/B/g;
s/.*Uploading.*/L/g;
s/.*%.*/M/g" |
sort -h | uniq -c | sed " # Now we replace the standin letters with icons.
s/A/🛑/g;
s/B/⌛️/g;
s/L/🔼/g;
s/M/🔽/g;
s/N/✅/g;
s/Z/🌱/g" | awk '{print $2, $1}' | tr '\n' ' ' | sed -e "s/ $//g"
case $BLOCK_BUTTON in
1) $TERMINAL -e transmission-remote-cli ;;
3) pgrep -x dunst >/dev/null && notify-send "Torrent module" "🛑: paused
⏳: idle (seeds needed)
🔼: uploading (unfinished)
🔽: downloading
✅: done
🌱: done and seeding" ;;
esac
Loading…
Cancel
Save