Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add your requests! #1

Open
Anachron opened this issue Nov 22, 2015 · 18 comments
Open

Add your requests! #1

Anachron opened this issue Nov 22, 2015 · 18 comments

Comments

@Anachron
Copy link
Owner

If you are missing any blocks from my collection, feel free to make a request here.

@Anachron
Copy link
Owner Author

From myself:

  • Temperature indicator (lm-sensors)
  • VPN indixcator (-a /var/run/vpnc.pid)
  • Program status indicator (for webserver, databases & more!) (ps -e | grep)
  • External drive/device (harddrive, phones, etc) (lsblk)
  • IP Address (ip route get 1 | awk '{print $NF;exit}')
  • Bluetooth
  • Launcher (Rofi/DMenu)
  • Mails
  • Indicator-Bar (Space-saving display of indicators)
  • RSS reader (latest headline truncated, click opens browser to read)
  • Countdown (Counts years/months/days/hours/minutes to a spefic datetime)
  • SSID
  • Notifications (Recent/Last) (requires dunst)
  • USB device
  • Capture (Area/Desktop, Movie/Screenshot)
  • RecycleBin (Clean)
  • Window (print focused window name)
  • Reddit status
  • Scroll
  • Notifier

Hint:
Launcher is smart enough to read the corresponding dmenu/rofi execution from the i3-config-file. It will also replace the variables used in it's execution parameters with real values from the i3-config-file. This allows for very dynamic buttons that always fit to whatever has been customized for rofi/dmenu inside i3-config-file. It however requires a valid keybinding inside to dmenu/rofi in this file.

Hint2:
Feed reader is smart enough to follow shorteners (redirection). This will allow you to create dynamic links and/or bypass the i3blocks instance limit of 32 characters.

Hint3:
The temperature block can use multiple sources and creates an average from it.
Example: Passing instance=Core will sum all current core temperature and print the average. If any of the values is higher than the high one the block will become urgent.

Trash:
Will open the folder with left-click and delete all files with right-click. Will not prompt for deletion! Be careful.

Scroll:
Enables monospace, needs "markup=pango" in block settings. Use "interval=repeat" for smooth scrolling.

@msvalina
Copy link

I would really appreciate keyboard layout indicator, thank you for your effort.

@Anachron
Copy link
Owner Author

@msvalina thanks for your request! I will see what's the best way to archieve this and come back to you.

@Anachron
Copy link
Owner Author

Hey @msvalina, I've added your request with the latest commit (5d45ed8).
Are you using Arch Linux? Then it should work for you. If not please tell me which OS you are on so I might adjust the path for the keymaps.

@Anachron
Copy link
Owner Author

@msvalina I've added another push (e873e6e). Could you please test again?

@msvalina
Copy link

I'm changing kb layout using alt+shift it is configured in x,
Seems like it is still not picking changes. Output of setxkbmap may help

○ setxkbmap -query
rules:      evdev
model:      pc105
layout:     hr,us,de
variant:    ,,
options:    terminate:ctrl_alt_bksp,grp:alt_shift_toggle,caps:escape
○ cat /etc/X11/xorg.conf.d/00-keyboard.conf 
Section "InputClass"
        Identifier "system-keyboard"
        MatchIsKeyboard "on"
        Option "XkbLayout" "hr,us,de"
        Option "XkbVariant" ",,"
        Option "XkbOptions" "terminate:ctrl_alt_bksp,grp:alt_shift_toggle,caps:escape"
EndSection

@Anachron
Copy link
Owner Author

@msvalina thanks for the information! I need to find a way how to figure out which of those layouts are active. I will tinker around with xserver and the localetools (locale, localectl, xkb and similiar) and update it once I found a solution for this.

If you change your layout via "setxkbmap" it should work. But I am aware that it's much better to have a simple toggle via the kdbOptions.

@windiean
Copy link

windiean commented Mar 4, 2016

@Anachron @msvalina I have keayboard layout switch configured in X and I've been able to show the current layout easily using xkb-switch.
The script is something like this:

layout=$(xkb-switch -p)
echo "${layout}"

@msvalina
Copy link

msvalina commented Mar 4, 2016

Wow thank you, this is great!

@Anachron
Copy link
Owner Author

@windiean @msvalina I will take another look, sorry for the delay!

@Anachron
Copy link
Owner Author

@msvalina @windiean little update:

So it seems like the command is in the AUR but does not come with x-client or x-server by default. https://aur.archlinux.org/packages/xkb-switch-git/ https://github.com/ierton/xkb-switch

I will install the program later and do some extensive testing. If it does not give any issues, I will base the keymap block on it. Thanks for your patience!

@vKnmnn
Copy link
Collaborator

vKnmnn commented Nov 23, 2016

I'd like to add the suggestion of adding the instances Dirty and Writeback to the memory blocklet. I've tried to do it myself but I'm just not that familliar with bash. Dirty and Writeback are included in /proc/meminfo

regards

@vKnmnn
Copy link
Collaborator

vKnmnn commented Jan 17, 2017

I use this block now. unless u give it an instance, it shows available memory. it works for every line that is provided by /proc/meminfo and is POSIX compatible ;)

#! /bin/sh

INSTANCE="${BLOCK_INSTANCE:-memavailable}"
MEMINFO="$(< /proc/meminfo grep -i "$INSTANCE":)"
NUMBER="$(echo "$MEMINFO" | tr -d -c '0-9')"
OUT="$(echo "$NUMBER" | awk '{
 	sum=$1*1024 ;
 	hum[1099511627776]="TiB";
 	hum[1073741824]="GiB";
 	hum[1048576]="MiB";
 	hum[1024]="KiB"; 
 	for (x=1099511627776; x>=1024; x/=1024){ 
 		if (sum>=x) { 
 			printf "%.2f %s\n" , sum/x , hum[x];
 			break 
 			} 
 		}
 	}'
 )"
echo "$OUT"
echo "$OUT"

@vKnmnn
Copy link
Collaborator

vKnmnn commented Jan 17, 2017

@Anachron
As another suggestion:
Have a (wifi)block that alternates different infos to save space.
eg:
display SSID and dB for 2 sec,
display ipv4 for 2 sec,
display ipv6 for 2sec, if available

or a battery block:
display battery percentage
display time to fully charged/time left on batt

maybe this can be combined with the scroll feature?

@h3ct0rjs
Copy link

h3ct0rjs commented Feb 4, 2017

@Anachron
Hi after checking your awesome blocks I would llike to suggest the support of LVDS displays in my case I use an old little laptop so here is my simple version with works pretty well with my needs, I was just wondering if is there any posibility to clone the wallpaper that I set in my LVDS1 to my External VGA filling the screen. Actually i'm using the random option that feh tool gives me.

@harshsinh
Copy link

@Anachron, when using the i3blocks as you suggest, cpu usage would not be displayed although running the cpu file (./cpu) does print the cpu percentage. Can you please tell me what could be going wrong ?

@vKnmnn
Copy link
Collaborator

vKnmnn commented Sep 13, 2017

@harshsinh you should open a new issue for this

@Kwbmm
Copy link

Kwbmm commented Nov 25, 2017

@Anachron would it be possible to make scroll script scroll text only if needed? Right now it scrolls even if there's more than enough space to fit the input text. I can't find what to change to do so..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants