Submitted scripts and programs
Forum rules
Your own work only.
-
machinebacon
- Baconator
- Posts: 10253
- Joined: Thu Sep 16, 2010 11:03 am
- Location: Pfälzerwald
-
Contact:
Unread post
by machinebacon » Thu Feb 04, 2016 2:44 pm
Set wallpaper via dmenu.
1) using hsetroot. Adjust options (blur, fill, etc) and of course the path.
Code: Select all
#!/bin/sh
# set wallpaper using dmenu
wallpath=/usr/local/share/wallpapers
walls="$(ls $wallpath)"
selection="$(echo "$walls" | dmenu "$@")"
hsetroot -fill $wallpath/$selection
2) using xsetroot. You just need to enter the hexcode without quotes and hash.
Code: Select all
#!/bin/sh
# set xsetroot color using dmenu
selection="$(dmenu -p "Color: $@")"
xsetroot -solid "#$selection"
..gnutella..
-
ChefIronBelly
- Approved BBQer
- Posts: 1044
- Joined: Mon Jan 13, 2014 6:01 am
- Location: Michigan
Unread post
by ChefIronBelly » Thu Feb 04, 2016 4:42 pm
Thats some sweet sauce thanks for sharing.
(1/1) Installing: LinuxBBQ...................................[69%]==============[/]
-
dkeg
- Configurator
- Posts: 3782
- Joined: Sun Nov 18, 2012 9:23 pm
- Location: Mid-Atlantic Grill
Unread post
by dkeg » Fri Feb 05, 2016 12:13 am
There you go. I had set a simple alias for hsetroot so I can just wall 'wall' or actually set a new wall with 'setwall'. Recently I changed my .xintrc to point to a .bg file that breaks the wall setting down to variables.
This could be useful with automating schemes.
Work hard; Complain less
-
Snap
- Sperminator
- Posts: 189
- Joined: Sun Oct 05, 2014 8:11 pm
Unread post
by Snap » Fri Feb 05, 2016 8:16 am
dmenu love. Gorgeous, Thanks.