SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Speaking of Polybar... I was all set up to try it out, and then I decided I didn't need it. I'm happy with i3's default bar, and for the following, I decided that I had enough information without it:
It's OpenBox with Plank, Stalonetray, and pcmanfm-qt. The font size is at 160dpi, because it's an HTPC. The theme is one that was popular on /r/unixporn a while back: Arc widgets and window decorations, Papirus icons. TMUX theme is oh-my-tmux.
Speaking of Polybar... I was all set up to try it out, and then I decided I didn't need it. I'm happy with i3's default bar, and for the following, I decided that I had enough information without it:
It's OpenBox with Plank, Stalonetray, and pcmanfm-qt. The font size is at 160dpi, because it's an HTPC. The theme is one that was popular on /r/unixporn a while back: Arc widgets and window decorations, Papirus icons. TMUX theme is oh-my-tmux.
Thanks for the suggestion on the Papirus icons. They look good on my Awesome WM too.
By the way, up until recently I've been using xscreensaver to lock the screen, but I don't like how the unlock screen is very ugly and can't be changed outside of editing the source code, which is frowned upon by the author. I came upon i3lock, which lets you specify an image to display when the screen is locked. A little bit of googling and testing later, I came up with this script, which takes a screenshot, blurs it, adds a lock image and text, and then runs i3lock.
Code:
#!/bin/bash
#
# Creates a blurred image of the current screen and runs i3lock
# Image is resized before blurring to improve speed
# Lock icon and some ideas for the command shamelessly "borrowed" from the
# i3lock-fancy project: https://github.com/meskarune/i3lock-fancy
#
IMAGE=/home/dan/.local/share/i3lock/current_screenshot.png
LOCK_TEXT="Type password to unlock"
LOCK_IMAGE=/home/dan/.local/share/i3lock/circlelockdark.png
FONT="Noto Sans"
FONTSIZE=28
EFFECT="-scale 35% -blur 5x5 -scale 286%"
scrot $IMAGE
convert $IMAGE $EFFECT $IMAGE
convert $IMAGE $LOCK_IMAGE -gravity center -font "$FONT" -pointsize "$FONTSIZE" \
-annotate +0+150 "$LOCK_TEXT" -composite $IMAGE
i3lock -i $IMAGE
Of course, edit the image paths to suit your own setup. You can see in the comments that I got the lock icon from the i3lock-fancy project, which I haven't tried but which seems to do basically the same thing as this script, plus more. I attached a screenshot of what the lock screen looks like.
I am also using xautolock now to run this lock script when idle for a specified length of time.
Edit: the script requires ImageMagick, scrot, and i3lock.
Last edited by montagdude; 12-25-2017 at 02:51 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.