[ cyb / tech / λ / layer ] [ zzz / drg / lit / diy / art ] [ w / rpg / r ] [ q ] [ / ] [ popular / ???? / rules / radio / $$ / news ] [ volafile / uboa / sushi / LainTV / lewd ]

tech - God bless the AMD

2nd chances
Name
Email
Subject
Comment
File
Password (For file deletion.)

BUY LAINCHAN STICKERS HERE

STREAM » LainTV « STREAM

[Return][Go to bottom]

File: 1436827338121.jpg (381.48 KB, 900x630, cyberpunk_girl_by_oligarch….jpg) ImgOps Exif iqdb

 No.8397[Last 50 Posts]

Let's help eachother make our Linux lives more comfy. Whether it be useful scripts, extensions\add ons, programs, or commands.

I'll start with some Gnome extensions.

Force Quit adds an "X" on your top bar that you can click and then click on an application to force quit it. A quick xkill button https://extensions.gnome.org/extension/770/force-quit/

Imgur Screenshot Uploader lets you take a screenshot of your whole screen, A window, or an area you select and then auto upload it to imgur and provide you a link so you can quickly share screenshots
https://extensions.gnome.org/extension/683/imgur-screenshot-uploader/

Show Desktop from Overview lets you click on an empty space when you open the overview "by pressing the window\super key" to hide all open windows and show you the desktop.
https://extensions.gnome.org/extension/496/show-desktop-from-overview/

Shellshape is one of my favorites. It automatically tiles all your open windows and resizes your windows once you open and close one.
https://extensions.gnome.org/extension/294/shellshape/

and the final one brings tons of options like adding an icon for every application you have running on you top bar, adding a show desktop button, workspace switcher, and some other things I don't use.
https://extensions.gnome.org/extension/584/taskbar/

Something i've been looking for that I can't find is how to have my VPN connect on startup and kill my internet connection when its not running. I tried VPN Demon but that doesn't work very well.
>>

 No.8398

I don't use GNOME, but I am quite happy with my Linux Noteboook where I have lightweight utilities installed for the most part.

I am running:
WM: Awesome
Term: Terminator
Networking: Wicd
Battery meter: tidybattery.py
Virtualization: qemu/kvm (virt-manager gui)
Media streaming: Peerflix
Torrent DL: rtorrent
Web server: nginx
Pulseaudio Mixer: pa-mixer-mk2.py

On a low power machine I'd also suggest the Pale Moon browser. I recently upgraded so now I can actually comfortably use Chrome, which is quite a luxury.

Can think of much else..

>>

 No.8399

>>8397
>Imgur Screenshot Uploader
curl and imagemagick are all I need.

>automatically tiles all your open windows

Why aren't you using a twm then?

>how to have my VPN connect on startup and kill my internet connection when its not running

Why not just change your network manager config files?

>>

 No.8400

>>8398
>rtorrent
Give aria2 a try, it's great.

>>

 No.8401

>>8397
>>8399
adding to this:
doesn't the super-key bring up gnome's start menu, focusing the Run field? just type xkill (xki + tab should suffice), and click the window. so many options which don't require you to install 3rd party stuff, really.

>>

 No.8402

>>8399
>Why aren't you using a twm then?

Because I like the GNOME top bar and the rest of Gnome. I get both tiling and Gnome this way.

>Why not just change your network manager config files?

Not sure how to do this correctly to get the desired effect.

>>

 No.8403

File: 1436833285514-0.png (103.93 KB, 647x691, 2015-07-13-203915_647x691_….png) ImgOps iqdb

File: 1436833285514-1.jpg (853.43 KB, 2276x2276, 1426554944069.jpg) ImgOps Exif iqdb

The confiest thing about my OS might be the keyboard layout. Here's a screenshot.
It's based on colemak, I moved the right hand keys to the right to make it a bit more ergonomic and to be able to reach the Enter key with my pinky, AltGr+key writes symbols, Meta+key does wm/os stuff and the numpad controls music. Here's the important part of .Xmodmap http://paste.debian.net/hidden/90dd10e3/
Check xmodmap's manpage for how to use that.

xbindkeys lets you bind keys to commands, that's some confyness potential. Also dmenu for starting up programs.
If you know your way around linux then Arch can be a "configure once and forget" OS. Just don't update stuff unless it's a major version jump.
i3-gaps for a non-intrusive wm and i3blocks for an easy to customize and neat looking status bar.
qutebrowser is a chill and lightweight web browser meant to be used without a mouse.
A medium-sized font that doesn't fuarrrk your eyes up and lets you sit straight can be good. Redshift too.
And of course, lots of scripts and aliases to automate repetitive tasks.

One thing I'm missing is a good organizer with calendar, alarms, etc, preferably ncurses. Took a look at wyrd+remind but the syntax for saving memos is too complicated.
And some of my applications like gimp, libreoffice and audacity look like windows 95 and I don't know why.

>>8398
>rtorrent
Check deluge-console, version 2.0+ now has a great ncurses interface from where you can manage the downloads and configurations, I switched from rtorrent and can say it's the same or better in all aspects.

>>8402
>Not sure how to do this correctly to get the desired effect.
Check the ifconfig manpage.

>>

 No.8404

>>8403
>And of course, lots of scripts and aliases to automate repetitive tasks.

Any you use that you can share?

>Check the ifconfig manpage.

What?

>>

 No.8405

>>8400
I'm all for CLI apps, but I find that for torrenting they tend to be a pain.

>>

 No.8407

>>8404
>Any you use that you can share?
Here are the ones worth mentioning http://paste.debian.net/hidden/e850147d/
PLEASE check the code before running it, I don't want to feel sad if you have an accident.

>What?

ifconfig, it's a command line tool you can use to configure your network.
You can check it's manpage to see if it can help you. You can definitely use it to take down/up your connection.

>>

 No.8411

>>8407
feh  --bg-fill --no-fehbg --recursive --randomize '~/image/wallpapers/'

That is comfy as fuarrrk since i have a soykafton of cool minimalistic wallpapers from http://simpledesktops.com/

>>

 No.8412

>mosh
avoid ssh sessions freezing if you have unreliable internet. will auto reconnect even across ip address change.

>>8398


>>8411
haha i have actually written a script to do something similar with the less minimalistic wallpapers of wallhaven.cc

>>8398
>Term: Terminator
me too. pretty good.
>Web server: nginx
i use nginx all the time it's super useful. for example i can allow remote access to any webinterface for an app running on my server in 2 minutes, just copy a similar .conf file, change server_name and boom. sometimes i'll use my script to generate a password to protect it:

#!/bin/sh
if [ $# -eq 0 ]
then
echo "Usage: <usersname> <password>"
exit 1
fi
printf "$1:$(openssl passwd -apr1 $2)\n"
#write output into a file
#add to configuration with:
#server {
#...
#auth_basic "Restricted";
#auth_basic_user_file conf.d/filename
#}

>>

 No.8414

also i sometimes use this
>generate-selfsigned-cert.sh

#!/bin/bash

if [[ $# -eq 0 ]] ; then
echo 'usage: <filename>'
exit 1
fi
openssl req -x509 -nodes -sha256 -days 800 -newkey rsa:4096 -keyout $1.key -out $1.crt
openssl x509 -noout -text -in $1.crt



i'm sorry i'm deviating from the desktop theme a little, i'm not that well-versed in linux desktop

>>

 No.8415

>>8397
>Imgur Screenshot Uploader...
After pomf.se's untimely death, an anon from /g/ thought to make the program pomf.sh (which allowed uploading to pomf from console) almost universal. You can upload any files to your choice of hosting sites and if you'd rather use another, it's very easily customized!

https://github.com/jschx/uguush

>>

 No.8416

>>8415
Props to him, that handy as fuarrrk.

>>

 No.8418

>>8415
nice

>>

 No.8427

>>8415
Thats really nice. I might start using this. It's still more convenient to click the icon and then select the screen with the Gnome imgur extension. It automatically copies to clipboard too.

Can anyone help me get my vpn to auto connect on startup and kill my internet on disconnect?

>>

 No.8432

>>8427
> It's still more convenient to click the icon
you could create an icon that runs the command, no problem there.

>>

 No.8433

How do people like i3? I've been using awesome for a while and I was wondering what the advantages of i3 are.

>>

 No.8435

File: 1436921487079.webm (787.35 KB, 480x360, gnome.webm) ImgOps iqdb


>>

 No.8439

>>8399
curl is a helluva command. Could you pls post some ways you use it? I'm reading the man page and it got me amazed.

>>

 No.8440

>>8439
currently using it for this:
http://guide.couchdb.org/draft/replication.html#continuous
you have to scroll down a bit to see it in action.

i don't know the flags by heart but yes it's handy AF, i always install it on my boxes. and wget to download stuff. you could probably do pretty much everything with either curl or wget alone but i'm too lazy for that

>>

 No.8981

I'm trying to get rid of modifier keys (shift ctrl alt meta) because they make my hands hurt. I prefer chained actions like in vim, and will be trying to make the whole OS work like that (or at least the programs I use often).
The three milestones for making this are the wm, web browser and text editor.
For a text editor I'll use vim, remapping the Ctrl-X commands to single keys.
Qutebrowser is a pretty configurable web browser so I'll come up with a comfy layout for the keys.
I'm clueless about the WM, but I've read dwm is configurable to the bone so I might try it.

I just tried using my keyboard upside-down (no joke) with the keys remapped accordingly so the function keys are below my thumbs and I can use them like it's an ergodox, but couldn't sort out some of xmodmap's tricks and some keys didn't work well. At least it was fun.

>>

 No.8982

>>8981
haha

>>

 No.8983

>udevil

I don't know how it works behind but this is magic. No need for gvfs, hal (I don't even know if it still exists) or heavy packages and daemon for mounting without root privilege. To my surprise it even works with my NTFS hard hardrive out of the box. Just type :

udevil mount /dev/sdb1 /media/drive


And here you go.

>>8433
I find the conf file more easy to edit, the way to manage autostarting programs is also cleaner, and I like the default behavior more. I don't remember all the details beside the maximizing/minimizing function and the integrated taskbar, but I quickly get back on i3 (as usual, i tried to switch to many other WMs but it was pointless)

>>

 No.8996

>I prefer chained actions like in vim,
>I'm clueless about the WM
ratpoison (or stump if you like that godawful language that is lisp or herbsluftwm, if you dont need sane vim like defaults, but which can be configured to be very vim like).

>>

 No.9001

File: 1439052712863.png (866.37 KB, 1366x768, 2015-08-08-131833_1366x768….png) ImgOps iqdb

>>8996
Thanks for the recommendations, they all seem thorougly configurable. I got my hands on some free time so I'll be reading the docs and wikis but looks like it's possible to use them without mod keys.
I don' t know lisp but I wouldn't mind learning, neither do I mind defaults because I'll be changing them anyways.

I'll describe what I'm looking for along with a screenshot of my desktop right now, using i3:
A tabbed layout for individual containers would be great, I use it in pic related.
I like to resize windows leaving empty space alongside, that can't be done with i3 and that's why I have to use a transparent terminal emulator as a soykafty workaround if I don't need to fill all the screen. You can see the cursor of that almost-invisible terminal to the right of the music player.
A status bar that can display the output of user defined shell commands, I use i3blocks and it does exactly that, plus it's easy to configure. I always wanted notifications coming up from the left on the status bar but i3blocks doesn't provide an easy way to do that.

I liked herbstluftwm except it doesn't include a tabbed layout yet, but it's cool how you can resize the windows and the gaps between them however you want. Same for dwm IIRC.

>>8982
I'll post the config files if I fix it.
"Ladies, check this out"

>>8983
Have you checked pmount? It works like
pmount sdb1 drive

That mounts /dev/sdb1 in /media/drive

>>

 No.9026

>>9001

You saved me the hassle to type 5 letters, thanks!

HERE IS YOUR REWARD
https://inconsolation.wordpress.com/

>>

 No.9027

>>8996
>that godawful language that is lisp
That's a hot opinion coming from a blub programmer.

Also, you don't need to know Common Lisp to use StumpWM.

>>

 No.9033

>>9026
If you liked that one check this out. You add this as an alias and hold on to your hat.
# mount /dev/sdb1 in /media/drive typing "mt b drive"
mt() { pmount -w sd"$1"1 "$2";}
Sometime I'll make an un/mounter that lets you choose the drive by its label and using dmenu, when I do I'll share it here.
Thanks for the site, there goes a chunk of my saturday.

>>

 No.9034

>>9001
> that music selection
*tips fedora* jk

>>

 No.9039

alias get='sudo apt-get install --no-install-recommends'

Probably saved me more typing than any other alias.

>>

 No.9040

>>9039
Does anyone know how to keep tab-autocompletion when using an alias?

eg. typing apt-get install lets me use tab to find available packages, whereas using an alias for apt-get doesn't.

>>

 No.9042

>>9034
I got nostalgic. I really thougt I should play boa's duvet for the screenshot but I was too hooked up with Megaguiltypleasure.

>>9039
Maybe you should check other package managers, Arch's yaourt, for example, works like
yaourt -Sy firefox

where the S means "install" and the y means "update the repositories first".
That program can even search/install/uninstall/update programs from github in a whim.

>>9040
Try zsh, configure it like this
https://wiki.archlinux.org/index.php/Zsh#Command_completion

>>

 No.9047

File: 1439165712305.jpg (23.89 KB, 450x289, gamepad.jpg) ImgOps Exif iqdb

I've been thinking about using a wireless USB playstation-like gamepad for everything except text edition, does anyone have any xp on that?
Arch wiki says it can be used to send keystrokes, that plus xbindkeys and xmodmap should be enough for controlling the wm, scrolling, following links and moving through tabs on a web browser, etc. with a modal approach, that is, press the square and the keys start controlling the wm, press the circle and it controls the music, and so on.

>>

 No.9050

>>9047
No, but also interested. I got my hands on a Xbox One controller and want to make use of that.

>>

 No.9051

>>9050
On Linux?
This is the arch wiki article I mentioned in my post btw.
https://wiki.archlinux.org/index.php/gamepad

>>

 No.9053

File: 1439205579172.gif (41.41 KB, 660x906, retrovision.gif) ImgOps iqdb

You know that dated and dusty gaming console you have stashed away with all of your other childhood memorabilia?
Don't let it die down in the dark with your Type to Learn 3 CD and your beloved collection of mouse trackballs, give that ol' hunk of plastic a second wind with Linux!

Dreamcast (Runs Debian, can also be used as VPN+Router)
http://www.gamesurge.com/dreamcast/technical_pages/hardware_specs.shtml (Specs)
http://linuxdc.sourceforge.net/ (Project maintainers)
http://www.lxdream.org/wiki/index.php?title=Dreamcast_Linux (Wiki)
https://wiki.netbsd.org/ports/dreamcast/ (Bonus! NetBSD)

Game Boy Advance (Runs UNIX)
http://www.engadget.com/products/nintendo/game-boy/advance/specs/ (Specs)
http://www.kernelthread.com/publications/gbaunix/ (Comprehensive Guide)

XBox (Requires Softmod/Chip, can act as full computer)
http://www.ign.com/articles/2001/10/02/xbox-specs (Specs)
http://xboxlinuxproject.wikia.com/wiki/How_To_Install_Linux (Walkthrough)
http://xbox-hacker.com/xbox-linux.htm (Mod guide)

Gamecube (Compatible with many low-spec flavors)
http://www.gamecubicle.com/system-gamecube-specs.htm (Specs)
http://gc-linux.org/wiki/Download (Wiki)
http://hackaday.com/2005/11/25/gamecube-linux/ (Article)

PSP (Huge modding community, capable hardware)
http://playstation.about.com/od/psp/a/PSPSpecs.htm (Specs)
http://psplinux.info/ (Information/Download)
http://aruljohn.com/info/pspubuntu/ (Walkthrough)

Wii (Passionate homebrew community)
http://www.engadget.com/products/nintendo/wii/console/specs/ (Specs)
http://wiibrew.org/wiki/Wii-Linux (Wiki)
http://www.linux.org/threads/linux-on-the-wii.6606/ (Walkthrough)

>>

 No.9062

>>9051
Yeah. So far I've only tried to play a bit on emulators, but it was so-so. It's kinda hard to figure out a good mapping for the keys. I was also tripped by the fact that keys don't always work the same on my controller and the one from the emulated console.

I mostly just want to be able to control mpv and mcomix though, but haven't looked into it yet.

>>

 No.9100

File: 1439304886885.gif (704.41 KB, 686x379, example.gif) ImgOps iqdb


>>

 No.9101

>>9100
>>9100
>>9100
>>9100
>>9100
>>9100
>>9100
its NOT called thefurarrk obviously, so the link is not dead, it's mutilated by the language enhancers.

>>

 No.9112

>>9101
this should work http://bit.ly/1yJMMf8

Kalyx needs to have language enhancers not effect links.

>>

 No.9115

>>9100
looks like a great program but whenever i try and run it after a failed command i get no command "fuck" found

>>

 No.9122

playrar.sh

#!/bin/sh
7z -so x "$1" |mpv -

plays videos distributed as a load of rar files without having to extract them. set demuxer-readahead-secs in .mpv/config and you can rewind a little bit.

>>

 No.9125

File: 1439344353462.webm (182.72 KB, 480x360, HUEHAAHAHAHHAH.webm) ImgOps iqdb

>>9100
What a fantastic and hilarious idea.

>>

 No.9155

>>9062
tl;dr check xbindkeys and see if it can help you.
About the mapping, I was thinking of a modal approach, like:
Press the square, start controlling the wm.
The analogs change focus, move windows around, move through workspaces, etc.
Press the circle, control the music player.
You can use xbindkeys or a dedicated gamepad mapper to make the buttons (and, I hope, the analogs' movements) send mpc commands to control mpd. Oh, you said mpv. Well, you won't need mpc then.
Press the X, execute programs.
The eight positions of the right analog execute different programs and the left one moves the focus to the different programs.
Press the triangle for generic controls.
The left analog scrolls and the right one sends letters like hjkl and other important ones, mainly used for web browsing. It can also send different letters according to the focused program, maybe if you focus something with the X + left analog it could also send you to this generic control mode, configured accordingly to what you just focused.
The arrow keys would send arrows in all modes and the two middle buttons could send escape and enter.

After coming up with this, I remembered that gamepads have these L1 L2 R3 R4 buttons, so I don't know what to do with them. Maybe a mouse control mode having those do the left and right clicks or something.

I don't know about games, I might try some nethack but my main goal is to stop using the keyboard because it hurts my hands.

>>

 No.9178

>>9155
xbindkeys is soykaf. Use sxhkd or xchainkeys.

>>

 No.9345

I got one of these el cheapo controllers >>9047 and started playing with it.
It automatically started controlling the mouse when I plugged it in so I had to do this https://wiki.archlinux.org/index.php/gamepad#Disable_Joystick_From_Controlling_Mouse and restart X.
Then I installed antimicro-qt4[1], that's the only gamepad manager from the ones mentioned in that thread that is still active.
The interface is kinda ugly but it works, first you press Controller Mapping at the bottom for the initial configuration, then you press Quick Set and start mapping stuff.
The layout I'm using works like this: L1 L2 R1 R2 choose modes (in antimicro they're called sets) and all other keys control stuff depending on the mode you're in. I have a music mode, wm mode, mouse + execute programs mode, and an application mode in which you select a program (web browser, some game, etc) fsing dmenu and the keys adapt for controlling that program.
Definitely a good rest for the hands.

I already had some keys mapped to commands with xbindkeys, so I mapped some of the gamepad's to those keys so they would execute these commands too.
I'll be learning some dmenu tricks, it seems really useful here.

[1] https://github.com/Ryochan7/antimicro/wiki

>>9178
sxhkd is great, I'll be using it from now on. Thanks.

>>

 No.9354

The most comfy thing about my computer is probably the key mappings.

First, I remapped my Super/Meta/Win key to Caps_Lock. Then I used xcape so that pressing caps_lock alone would send the Escape key, and pressing it along with another hey would just send Super+PressedKey. So now I can use caps_lock to switch modes in vim, but also to navigate i3. I remapped i3 navigation keys to use MOD4 (my CAPS_LOCK physical key)+hjkl and installed vimfx in firefox in order to be able to navigate pages with hjkl, my history with JK and tabs with HL. I also configured vim so that I could navigate my tabs with H and L and now I have a pretty consistent way of navigating the 3 software I use the most.

>>

 No.9357

>>9354
>So now I can use caps_lock to switch modes in vim, but also to navigate i3.
That's impressive. You might like qutebrowser if you want to browse the wired without using the mouse, it lets you do everything with the kb and configurable bindings that are vim-like by default, and the dev is pretty active.

https://github.com/The-Compiler/qutebrowser

>>

 No.9371

>>9357
I personally greatly prefer Firefox + pentadactyl for this.

In particular because it's not just a keyboard-driven, it's actually a *good* browser as well.

I wish more “minimal” browsers could be a thing, but unfortunately they all just fail on providing basic features like eg. color management, resource blocking or TLS hardening.

That's why I think for stuff like this it's generally always better to go with something that is widespread and supported, and turning *that* into the user experience you want by sufficient customization; rather than starting with something that just provides your desired interface but has no functionality to back it up with.

>>

 No.9372

File: 1440092301469.gif (51.06 KB, 500x376, rain.gif) ImgOps iqdb

>>9371
Yeah, depends on what you expect from a browser.
Qute can en/disable javascript, scripts and ad-blocking but only globally, not in a per-site form yet, and the UI's colors are customizable. I know there were plans to give it https-everywhere-like functionality but I don't know if it's been done already.

I actually like how smaller browsers point to scratch different itches, like elinks is cli-only, qute is lightweight and mouseless, etc. I think that's mainly because noone would pay attention to yet another a general purpose browser unless it's actually great, but it's a good thing for me.

>>

 No.9375

>>9372
I guess at the end of the day, browsers are pretty much like operating systems - in more ways than one.

Among operating systems you also have the “big names” and the hobbyist projects, and committing to a non-standard operating system is a bit like committing to a non-standard web browser.

And just like with operating systems, you have both the “turd-polishers” (the ones writing extensions for firefox/chrome etc.) and the “rethinkers” (the ones trying to build a browser concept from scratch).

I really want the rethinkers to win, but at the end of the day the turds seem to be here to stay - with our best practical browsers and operating systems being essentially equivalent to glorified, polished turds.

>>

 No.9376

>>9375
I think turd makers allow independent devs to polish their product because you can't have a single thing cover the needs of millions of people, you can have the clients want what you make by adding shiny features but can't listen to everyone, so you let them make plugins and addons.
Rethinkers are active devs, reachable and open to suggestions and I think that puts them on a different level.
If you think Firefox or Crome are almost perfect, you write an addon. If you like most of an independently developed browser you can email the dev or contribute with code.

I don't really care about which side wins, actually turders win their battle against eachother if they have the biggest market share and lose if they are forgotten by the masses, but it's not the same for rethinkers. Most interesting projects started because the dev wanted something so he made and published it. So I don't think they'll have the concept of "winning", or at least not the same as the big companies.
I'll keep using what I need and choosing what I think is best for my case, and doesn't include videochat.

Turds will stay or be replaced by a competitor, they're companies. But you can opt out of their stuff by giving priority to your needs and will to do research about not-that-widespread alternatives.

>>

 No.9385

>>9100
beautiful and quite a nice addition for the frustrated command line user

>>

 No.9386

>>8397
In case anyone doesn't know already, Guake/yuake is very handy drop down terminal.

http://www.webupd8.org/2011/01/yakuake-quake-like-terminal-emulator.html

>>

 No.9388

>>9100
I want to try it out. Anybody got an ebuild for this?

(If not I'll make one when I wake up)

>>

 No.9394

>>9388
if your going to go through the effort of writing an ebuild then you may as well fork it and add gentoo appropriate scripting. or just use pip.

>>

 No.9401

>>9394
I really don't like pip, although that's not entirely pip's fault.

I just can't sleep at night when I know I have my FS filled up with garbage that isn't tracked by my package manager.

Normally in situations like these I would just eg. “make” but not “make install” and use the binary from the ./build folder, but the python build system doesn't properly support that (though I *have* managed to figure out how to hack around that limitation in the past, it still doesn't solve my issue of missing dependencies).

Either way, the python build system and ecosystem simply is like kicking dead whales down the beach. I would prefer using portage for the job, since it's so bad at it.

(Also, according to #python, what I am doing is highly unpythonic and I should just embrace the python ecosystem... I told them to go fuarrrk themselves and “embraced” it by removing myself from it. I hate the python crowd so much.)

>>

 No.9408

File: 1440179979874.png (88.31 KB, 1366x768, 2015-08-21-205829_1366x768….png) ImgOps iqdb

After seeing a few anons talking about vim addons for firefox I've decided to try pendactyl and vimperator. After a few key remaps so I don't feel like a complete retard I think I'm going to switch to vimperator.There's only one thing that bugs me. Does anybody have any idea ?

>>

 No.9409

>>9408
You can probably change the height of that section with CSS or something.

Is it really that big of a deal? You could try changing the color from white to something more pleasing on the eyes and see if that makes it less annoying.

Btw, what made you decide to go with pentadactyl over vimperator? I use the former and have never really touched the latter and would be interested in your opinion of the differences.

>>

 No.9412

>>9409
Ok, so my initial post is a little confusing now that I look at it.
I have been using vimfx for a while and decided to look at vimperator and pentadactyl tonight.

After trying nightly builds for a while I realized I'm more comfortable with pentadactyl.I also got rid of the completions widget and now shows itself only when I hit [TAB] (hint: autocomplete option). In case I want to switch to vimperator in the near future I know how to port my small rc file.
Here's my .pentadactylrc


javascript dactyl.beep = function() { return false; }
set guioptions=Cbr
set hintkeys=fjdkslaghrueiwovncm
set autocomplete=
map -builtin x d
map -builtin X u
map -builtin d <C-d>
map -builtin u <C-u>
map -builtin J <C-p>
map -builtin K <C-n>

>>

 No.9417


>>

 No.9434

>>9412
How does using pentadactyl feel? Which of its features that weren't available in VimFX are you now using?

>>

 No.9435

>>9434

Well for starters, it frees up some space since now there are only the tabs (which are smaller than default) and I quite enjoy that since I have a soykafty screen size.
Hinting also feels a tad faster. I did no benchmarking and I state this from experience.
Other than that, thanks to my config it's just like using vimfx.

>>

 No.9437

File: 1440262650172.png (69.97 KB, 1198x1918, dactyl.png) ImgOps iqdb

>>9435
You can get rid of the tabs, too Present Day, Present Time! AHAHAHAHAHA!

>>

 No.9438

>>9437
But I don't really want to get rid of tabs.

>>

 No.9440

I am looking for a comfy cli web browse. Using w3m right now but I'm not sure how I feel about it. Anyone have anything to help improve my experience?

>>

 No.9441

>>9440
There aren't many so maybe you can try them and post back ?
There's elinks,links,lynx,retawq and w3m.

>>

 No.9572

>>8411
Use setroot

>>

 No.9582

Searches youtube from CLI, with support for url only for piping into mpv/ytdl

#!/bin/sh
# perform a search on youtube and return the best result (title + link)

usage() {
echo "`basename $0` [-htu] [-n <num>] <query>"

test -z "$1" && return

cat <<EOF
-h : display this help
-t : output titles only (default 'title - uri')
-u : output uris only
-n : print only <num> results (default: 3)
EOF
}

num_results=3
regex='^.*<a href="\(/watch[^"]*\)"[^>]*>\([^<]*\)</a>.*$'
output='\2 \| https://youtube.com\1'

while getopts "hn:tu" OPT; do
case $OPT in
h) usage long; exit 0;;
n) num_results=$OPTARG;;
t) output='\2';;
u) output='https://youtube.com\1';;
*) usage; exit 1;;
esac
done

shift $((OPTIND - 1))

query=$(echo $@ | tr ' ' '+')
url="https://www.youtube.com/results?search_query=${query}"
curl -s "$url" | sed -n "s,$regex,$output,p" | sed ${num_results}q

>>

 No.9584


>>

 No.9588

>>9584
Not that lainon but thank you for this. The album search feature is spectacular.

>>

 No.9589

Just testing dat shit, don't care about this message

>>

 No.9614

File: 1440720618008.webm (2.82 MB, 1680x945, ipc.webm) ImgOps iqdb

comfy tips

>opinions

terminal emulator should be urxvt, it's the fastest available. responsive is comfy. don't use st, it's not as responsive
window manager should be dwm, same reason. also it's minimalistic
use any tiling window manager if not dwm, it saves time and effort

>shell

get zsh + prezto and set up autocompletion
>links
https://wiki.archlinux.org/index.php/Zsh
>why
best autocompletion ever. if you want "[Anime-RG] Dragon.Ball.Super.S01E04.mkv.srt" type in dra<tab>s<tab>
I was a hardcore bash user, didn't think I needed the completion. it's like reading your mind. you gotta try it.
>why prezto
zsh is non-comfy to set up. prezto helps you set it up. oh-my-zsh, an alternative, didn't work right away for me. non-comfy. prezto worked right away.

>ssh

put your media servers, bots, etc. on an ssh box and hook it up to the tv
set it up for 4096 bit keys and a nickname
get x2x
get dynamic DNS to access it anywhere from the internet
>links
https://help.ubuntu.com/community/X2xHowto
https://wiki.archlinux.org/index.php/Secure_Shell
http://www.noip.com/
>why
double the computing power for when you need to do big operations
x2x lets you control your ssh server with any mouse/keyboard, like your laptop, when you mouse offscreen in realtime
>other tips
use screen to have a re-attachable terminal session. ssh into your box, type screen, do your command press <C-a><C-z> and then you can re-attach with "screen -x".

>keybindings

bind caps to escape
use xcape to double-bind keys to control modifiers when held
double bind caps (escape) to control and tab to alt
xcape -e 'Caps_Lock=Escape'
setxkbmap -option caps:ctrl_modifier
setxkbmap -option altwin:swap_alt_win
xmodmap -e "keycode 23=Meta_L"
xmodmap -e "keycode any=Tab"
xcape -e "Meta_L=Tab"

or whatever you want to do with xcape
>why
keep your pinky comfy

vim stuff now

>file manager

use vifm. it's vim like
>links
http://vifm.sourceforge.net/docs.html
>why
it's vim-like. it's feature rich. I use it hourly. check out its doc for features
I love its history, the ability to hjkl, the command capabilities, and renaming multiple files at once in vim

>vim

get gundo (undo tree browser, look up undo trees if you're wondering what those are) to never worry about messing up
get fugitive to git real fast
get surround to surround things
those are my top 3 comfy plugins

>browser

get vimperator
kill the rest of the firefox interface with a userchrome
>why
it's vim like. it's feature rich.
why browse normally when you can access any search engine with 2 keys, have a full macro engine, rebind anything inside firefox, and hjkl arround?

>thing

https://github.com/rbong/envi
this helps you navigate with vifm and have vim + your shell change directory
it also lets you use vim as output for gdb
check out the video in that link

>>

 No.9616

>>9614
Oh yeah, also throw rtorrent on your ssh server. I use the web interface for that all the time.
Also, use dmenu, even if you're not using dwm (comes default). Super fast auto completion program launcher, tiny little bar at the top of the screen.

>>

 No.9617

>>8983 Don't forget pmount. The command "pmount sdb1" mounts /dev/sdb1 to /media/sdb1. If you rather have a custom name it would be "pmount sdb1 drive". For umounting and directory removal it's "pumount sdb1" or "pumount drive".

>>

 No.9622

Has anyone looked into dwm forks? There are quite a lot, but there are official plugins so I see no reason for a fork. I'll give dwm and the plugins a try and if I can't get it to have a tabbed layout or if it can't resize a window when it's the only one open in tiled mode, I'll check the forks.

>>9614
Thanks for the xcape thing, I think I'll live longer because of that.

>urxvt

Keep in mind that if you install a lot of plugins it'll make the shell's startup slower.
>vifm
Looks comfier than ranger, I'd miss image previews though.

>>

 No.9623

>>9622
I haven't felt the need for urxvt plugins yet. To me a terminal emulator is a terminal emulator.
>tabbed layout
better, it has tags, which can be treated as a tabbed layout but is also more flexible. For example, you can have a window with multiple tags or multiple tags activated at once.
>changing size with only one window
not in tiled mode, but you can just hold mod + right click anywhere on the window to resize, changing it to floating mode in the process.

Honestly, I almost never find the need to resize windows though. To me that's mostly a relational positioning thing, which tiling window managers eliminate.

>>

 No.9624

>>9614
More zsh examples-
I type in systemctl -<tab> and get a list of arguments with descriptions
I type in make <tab> in a file with a makefile I wrote and it knows all the targets instantly

>>

 No.9635

>>9623
>tags
Neat
>>changing size with only one window
>not in tiled mode
Oh, I wanted that because none of the programs I use are worth having fullscreen. Herbstluftwm does have that feature, but it doesn't come with a tabbed layout.
Thanks for the info.

>>

 No.9639

>>9635
No problem. Check out this page for comprehensive window manager rundowns.
http://crunchbang.org/forums/viewtopic.php?id=18273

>>

 No.10629

File: 1442874979638.png (168.03 KB, 540x320, Screen-Shot-2015-07-25-at-….png) ImgOps iqdb

I want to set up a comfy way to share files over the WLAN, and I remembr seeing a very cool web interface for FTP servers, IIRC you could set it up and when someone connected to the server with a web browser they could up/download stuff with a Dropbox-like interface.
I can't recall the name of that interface and couldn't find it, so a reminder or a recommendation for something similar would be great.
In addition to this I'll be using my router as a repeater using openWRT, but so far I couldn't set it up.

Also, for anyone using openDNS, you might want to check their website because pic related.

>>

 No.10640

Say I have a wallpaper for sunrise, sunset, afternoon, etc.

Anyone know if it's possible to set it up so that the wallpapers show at their specific time frames?
Furthermore, I have multiple night time wallpapers, I'd like to display at random during the night. Would that be possible to work with the above feature?

I'm on Debian with XFCE

>>

 No.10645

>>10640
Yes, you can use feh for that. For setting a random one from a folder:
feh  --bg-fill --no-fehbg --recursive --randomize '/your/wallpapers/folder/'

Then you can use cron to execute that command at certain times for different folders, or you can make a bash script that every 30 minutes checks what time it is and sets a random wallpaper from the respective folder. It could also fetch the day's sunrise and sunset times and set a specific wall at exactly that time.

You might also like redshift.

>>

 No.10646

>>8403
>keyboard layout
Move (), [], <> and {} next to each other, it is way easier that way.

>not updating Arch

Why ? All the point of Arch is to have recent packages. If you don't have a major version jump, your config should just be fine.

>windows 95 rendering

1. Choose a gtk-theme
2. Install it. If it is not in your repos, put it in ~/.local/share/themes
3. Run lxappearance, let it configure this theme
4. Put in your .bashrc/.profile/whatever-you-source-when-you-launch-X
[code]export QT_STYLE_OVERRIDE=gtk
export GDK_BACKEND=x11[\code]

The second has nothing to do with it, but if your WM uses X, it might prevent strange behaviour.

>>

 No.10648

File: 1442887050526.png (35.76 KB, 505x684, 2015-09-21-223216_505x684_….png) ImgOps iqdb

>>10646
>Move (), [], <> and {} next to each other
That's how they used to be, but I actually find it easier to remember this way.
I changed the layout since that day, so here's an update.

>Why ? All the point of Arch is to have recent packages.

The point was that it isn't as unstable as rumors say, and one can choose how often to update.
>If you don't have a major version jump, your config should just be fine.
Random bugs worry me more than configs breaking, for example the other day I updated mpv and now I see a weird thin stripe at the top of all videos, and I keep updating wicd-curses but it keeps crashing every three keystrokes. At least there will always be alternatives.

>lxappearance

That was it, just installed a random theme from the repos and now everything looks awesome, thanks.

>>

 No.10652

Redshift is amazing and you all should try it.

>>

 No.10790

An edited and commented version of my .zsh/aliases.zsh

alias ssh-box="ssh -XYCD 1080 user@box.net"
Opens a ssh connection with port 1080 forwarding as a socks proxy

alias wifi-menu="sudo wifi-menu"
runs wifi-menu even if I forget to type sudo

alias shutdown="sudo shutdown now -HP"
runs shutdown with the halt and poweroff flags

alias dhcpstart="sudo systemctl restart dhcpcd"
starts dhcpd

alias dhcpstop="sudo systemctl stop dhcpcd"
stops dhcpd

alias r8='echo "gr8 m8 i r8 $((RANDOM % 8))/8"'
ebin r8 for ebin memes

alias lockscreen="exec ~/usrbin/lock.sh ~/Pictures/anon/1431009953385.png"
locks the screen

alias sl='P=(" " █ ░ ▒ ▓); while :; do printf "\e[$[RANDOM%LINES+1];$[RANDOM%COLUMNS+1]f${P[$RANDOM%5]}"; done'
makes fuzz if you type sl instead of ls

alias xrandr-leftvga="xrandr --output LVDS1 --auto --output VGA1 --left-of LVDS1 --auto"
alias xrandr-rightvga="xrandr --output LVDS1 --auto --output VGA1 --right-of LVDS1 --auto"
alias xrandr-novga="xrandr --output LVDS1 --auto --output VGA1 --off"
these turn on/off my vga displays

The lockscreen script for use with i3lock

#!/bin/sh
BKGND_FILE=$1
[ -f "${BKGND_FILE}" ] || BKGND_FILE=~/.config/lock.png
[ -f "${BKGND_FILE}" ] || BKGND_FILE=~/.lock.png
[ -f "${BKGND_FILE}" ] || BKGND_FILE=/etc/lock.png
if [ -f "${BKGND_FILE}" ]; then
i3lock -n -ti "${BKGND_FILE}"
else
i3lock -n
fi

>>

 No.10822

>>8403
>One thing I'm missing is a good organizer with calendar, alarms, etc, preferably ncurses. Took a look at wyrd+remind but the syntax for saving memos is too complicated.

Could do this with Emacs. Emacs is very comfy. Especially if you use evil-mode. Try Spacemacs, maybe.

>>

 No.11124

Is it possible for me to use a different wm say like i3 but keep my top bar from gnome?

>>

 No.11126

>>11124

Yes it is, but in the specific case of i3 you couldn't maximize/minimize windows as it's not supported by this wm. But I guess you can fix that with removing the right applet in the gnome bar.

>>

 No.11131

>>9614
can you write this and >>9616 and submit it to the lainzine? email it to hex_ofennder@opmbx.org and junk0@openmailbox.org

>>

 No.11137

>>9001 here. I made a better place holder window, a ncurses program that's plain invisible.
I made a kb shortcut to run
"urxvt -sh 99 -title '---' -e python3 ~/path/to/invisible.py"
where invisible.py contains
from curses import *

win = initscr()
curs_set(False)
noecho()
start_color()
use_default_colors()

def main():
while True:
win.getch()
return 0

main()
Added
for_window [title="---"] border none
to my i3's config and "name = '---'" to the shadow-exclude list in compton.comf and bam, invisible window. I hope none of the programs I use daily were programmed by someone like me.

>>10822
You mean with org-mode?
I could give it a try and make a stand-alone program with similar features.

>>

 No.11138

>>9417
For pentadactyl and emacs users. I don't like browsers builtin bookmarks, so I have an org file where I keep them, with this line in .pentadactylrc:


:map ,s :execute '!echo "** [[' + buffer.URL + '][' + buffer.title + ']]" >>> ~/org/toread.org' <CR><CR>


So that when I click ',s' in Firefox, it creates a new line in the org file, with the title as the link mask!

>>

 No.11608

>>9437
>Alphabetical link enumeration
genius, gotta use that too

>>

 No.12435

Here's a template for a dmenu that will let you execute a program from a list found in a text file.
#!/bin/sh
# insert an apology for bad code here
FONT="-xos4-terminus-medium-r-*-*-14-*"
BGCOL="#000000"
FGCOL="#dcdccc"
SELBGCOL="#5f7f5f"
SELFGCOL="#dcdccc"

dmenu -h 19 -b -p "run" -fn "$FONT" -nb $BGCOL -nf $FGCOL -sb $SELBGCOL -sf $SELFGCOL < ~/programs.txt | bash

>>

 No.12480

File: 1445198394003.jpg (205.97 KB, 2700x2106, 1404784086210.jpg) ImgOps Exif iqdb

>>9100
>tfw been learning Python
>still don't know how the fuarrrk that program works even though I can read the code

Should I give up, guys?

>>

 No.12481

>>12480
You just found a good exercise.

>>

 No.12482

>>12480
I'm still at this stage too Anon. Right now i'm reading Structure and Interpretation of Computer Programs and coding is starting to turn into imagery. I suggest you give that a read after you know the basic run down of Python.

>>

 No.12487

File: 1445203125321.jpg (82.63 KB, 480x640, 1411849467446.jpg) ImgOps Exif iqdb

>be computer noob
>learning C
>writing programs in vim
>decide to give fizzbuzz a try
>succeed fairly quickly
>that feel when

Okay, I am by no means experienced in this coding business but what's all the fuzz with fizzbuzz?
I honestly didn't think it was this straightforwardly easy and I could probably clean the code up a bit but I already feel like a damn wizard.

Also, I found working in the Terminal loads of fun, I'm not sure if I really want to go back to Windows or OSX.

>>

 No.12488

File: 1445203758469.jpg (298.9 KB, 642x1832, 1443806320711.jpg) ImgOps Exif iqdb

Does someone know a browser turn rather on security (no cookie, noscript, control all the request, proxy management etc..) and mouseless interface than "i'm such a macfag" "olol cool interface"?

For the one which want a browser turn on emacs keybinding and keyboard: there is conkeror, which accept add-on like NoScript.

>>

 No.12489

>>12487
What this really means is that you're not retarded and have a mind for code.

It's not a "only wizards can do this", it's more of a " If you can't do this you should stop trying "

>>

 No.12490

>>12487
Didn't you see that article about a hipster web-dev that got mad when she didn't got hired after she couldn't make a simple fizzbuzz?

There are people like that, man. that's why fizzbuzz exists.

>>

 No.12492

>>12488
Firefox (or one of its forks) with the pentadactyl addon, will take the plugins but using them with the keyboard can suck.
Then there's qutebrowser, made to be used with the kb but the security parts are still in development.
And xombrero, but I don't know much about that one.

>>

 No.12494

>>12488
I use "dwb", it's no longer maintained, but I'm finding it a bit difficult to switch to another browser. It's for linux.

dwb can en/disable cookies, scripts, and plugins per session, per site, and even per url, mix at your liking.

dwb has vim-like keybinds for everything, Not just browsing around and managing tabs, but for example you can enable plugins on a particular URL for just this session with the 'ptu' keybind.
Tuning what scripts/plugins/cookies run when and your proxy management is all easily configured.

A couple of package managers have it available or you could grab it from bitbucket. Alternatively there's qutebrowser written in python which is a spiritual fork from dwb.

>>

 No.12495

>>9100
have frustrated me enough, this command can help me a lot.

>>

 No.12496

>>12494
Exactly what i'm looking for. Thanks you.
Just need to switch the keybinding to emacs-like keybinding.

>>

 No.12498

>>12480
learn to just roughly follow the line of calls through the mess and only go into detail where you actually want, not everywhere at once

that said, python is a black magic mess to me too

>>12494
nice tip

>>

 No.12508

>>9584

this broke for me recently, haven't been able to fix it. was very cool when it worked though

>>

 No.12522

>>12508
mps-youtube and youtube-dl break sometimes break for some sites when those sites change their APIs or something. You can try updating to the newest version in the repo or to the github version if your distro won't update stuff that often.

>>

 No.12536

>>10629
Maybe you mean HFS (http file server)?

>>

 No.12541

File: 1445286365027.png (295.69 KB, 1365x767, Zaznaczenie_008.png) ImgOps iqdb


I guess that is the right thread to ask about it. Tell me Lainons, can you be really productive in Vim when it comes to programing? Vim looks pretty neat but I'm not sure about it's functionality. Is it worth learning if I feel comfy in IDE like CodeBlocks? Also, I've moved back to Arch. Actually using MATE DE. Is this possible to use more lightweight environment and keep the look of my actual setup (pic rel)? I was using awesomewm and bspwm but everytime I come back to MATE.

>>

 No.12542

>>12541
>can you be really productive in Vim when it comes to programing?
Of course, thousands of people have done it before.

>Is it worth learning if I feel comfy in IDE like CodeBlocks?

Well, it depends. If Code::Blocks suits your needs, then it suits your needs. However, vim is a more ergonomic text editor if you take the time to learn it, and you also have the advantage of it being installed on virtually every system (and if it's not there, vi will be).

>>

 No.12553

>>12541
Advice you to go look at emacs.

>>

 No.12554

>>12541
Nice wallpaper could you post it so people could use it?

>>

 No.12571

What benefit does Antergos give me over regular Arch?

>>

 No.12577

File: 1445365008961.jpg (104.99 KB, 1920x1080, 36619_serial_experiments_l….jpg) ImgOps Exif iqdb

>>12554
No problem.

>>

 No.12578

>>12571
not as hard to setup, it "just werks"
You can also choose your DE/WM (out of 6) at installation.

Other than those two things, it's pretty much identical to Arch, it still uses yaourt, pacman, etc.

>>

 No.12586

>>12577
thank you! c:

>>

 No.12598

>>8405

That rtorrent pyroscope patch tho

>>

 No.12599

>>9614
Disagree with terminal emulator. I've been using one called xiate recently and was an avid urxvt user before, and I don't think I'm ever going back

>>

 No.12616

>>12494
I was using qutebrowser and just switched to dwb, there's a github version that's updated regularly.
Some fonts look ugly and I still haven't figured why, in github for example https://github.com/The-Compiler/qutebrowser the file names look blurry.

>>

 No.12619

>>12536
That wasn't the one I had seen but it does look similar for the client side, thanks.

>>

 No.13147

>>9047
this would be a great article for the lainzine 3.

>>

 No.13429

>>9100
how did you make this gif? looks very good

>>

 No.13434

>>13429
It's on the github page so I don't think he's the author, but you should be able to do it with a screen recorder (like recordmydesktop) and some video to gif converter (ffmpeg maybe?).

>>

 No.13908

I am close to being comfy.
All I need to do is pick some better colors on i3(I like light blue/cyan and orange). And I need to learn how to do window themes on i3.

>>

 No.13909

File: 1447599113362-0.png (29 KB, 500x574, HDD Space.png) ImgOps iqdb

File: 1447599113362-1.png (31.54 KB, 543x412, HDD Space2.png) ImgOps iqdb

>>13908
About 400GB of space on my HDD is missing. The data on the hard drive totals 1.6TB but the drive says only 10GB are available. I've checked SMART and it is enabled. Does anyone have any idea where it all went and how to get it back?

Posting here because this was the closest I could find to a dumb question thread

>>

 No.13931

I really love KDE Plasma 5.

Anyone know the distros that have the least problems with Plasma 5?

>>

 No.13932

>>13909
Maybe try checking with a different program (dfc or ncdu) and as root.

>>

 No.13933

>>13909
I had a similar problem when trying to format a 3tb hdd from NTFS to ext4. The total file storage capacity dropped to 2.7tb.

>>

 No.13938

>>8397
My life became really comfy when I changed to Debian Stable.
It might not have the newest versions but it does everything I need.
It never crashes nor receives breaking updates.
It literally just werks and is FOSS ootb.

>>

 No.14354

awesome thread, I got nothing to contribute with so I am bumping

>>

 No.14358

Two music-related scripts:

Coverart - gets file path to cover art in the folder of the currently playing song:

#!/bin/zsh
# coverart

DEFAULT_COVER="~/Music/cover.png"

MFILE=`mpc current -f %file%`
MFILE=${MFILE%/*}

FULLDIR="/home/$USER/Music/$MFILE"

COVERS=`ls $FULLDIR | grep "\.jpg\|\.png\|\.gif\|.jpeg"`
if [ -z $COVERS ]; then
COVERS="$DEFAULT_COVER"
else
TRYCOVERS=`echo "$COVERS" | grep "cover\|front\|folder\|albumart\|Cover\|Front\|Folder\|Albumart\|f\|F" | head -n 1`
TRYCOVERS="$FULLDIR/$TRYCOVERS"
fi

echo -n "$TRYCOVERS"


and musicupdate - displays music info + coverart via libnotify, if coverart is jpg, converts to png, so it works with dunst


#!/bin/bash
for (( ; ; ))
do
ART=`coverart`

old="`mpc | head -n 1`"
sleep 2
new="`mpc | head -n 1`"

if [ "`echo ${new} | grep volume | grep repeat | grep random`" != "" ] ; then
if [ "$old" != "$new" ] ; then
notify-send -t 5 "MPD Plauback stopped"
fi
old="$new"
fi
if [ "$old" != "$new" ] ; then

COVERART=`coverart`
artist="`mpc current -f %artist%`"
album="`mpc current -f %album%`"
year="`mpc current -f %date%`"
song="`mpc current -f %title%`"

title="$artist"
info="$album\n$year\n$song"

if [[ -f "$COVERART" ]] && \
! file --mime-type "$COVERART" | grep -q "image/png" || \
[[ $(identify "$COVERART"|awk 'sub("x.*","",$3) {print $3}') -gt 200 ]]; then # 200 = size of image (200x200) by default
file_name=$(basename "$COVERART")
file_name=${file_name%.*}
mkdir -p /tmp/notif-images
new_image=/tmp/notif-images/"${file_name}.png"
convert -resize 200x -format png "$COVERART" "$new_image"
else
# image is not jpg, no conversion required
new_image="$COVERART"
fi
notify-send -a "prepare_image" -u "normal" -i "$new_image" "$title" "$info"
fi
done

>>

 No.14359

File: 1448577922189.webm (903.8 KB, 1680x1050, ncmpcpp-coverart.webm) ImgOps iqdb

>>14358
and a webm of it in action

>>

 No.14408

File: 1448715354666.jpg (131.18 KB, 426x640, 2177024598_bbf115e7cc_z.jpg) ImgOps Exif iqdb

Just discovered detox.

http://detox.sourceforge.net/

It's been years now that I use a working but improvable bash script to rename my files without space or weird characters. I'm coming for you non UTF8 french and german characters. Your time is done.

>>

 No.14409

>>14359

Nifty. What is this bar at the top, the i3bar?

>>

 No.14414

>>14408
Non ASCII you mean? UTF8 contains frech and german characters.

I don't really see the utility to make file names less readable.

>>

 No.14421

>>14414
im not him but they dont become less readable

they become less unreadable because the shell autocompletion doesnt have to escape the spaces with "\" anymore

bla_bla_something
instead of
bla\ bla\ something

>>

 No.14452

>>14409
i3blocks

>>

 No.14458

>>12487
>Also, I found working in the Terminal loads of fun, I'm not sure if I really want to go back to Windows or OSX.

me too. i only recently got back into linux after a haitus of several years. I'm picking up much faster than I would've thought.

>>

 No.14506

>>8397
What is the best wallpaper manager for multi monitor systems using i3? For some reason nitrogen is not working.

>>

 No.14532

File: 1449029414522.png (7.83 MB, 3968x2960, desktop.png) ImgOps iqdb

I am working on my setup. I just moved my Windows and GNU/Linux installs onto separate SSDs, so hopefully my linux install will be more stable, and I will be able to use it 90% of the time.

I am really liking i3 with my monitors. I am still working on the config and rice.

>>

 No.14544

>>14506
I got it working. I had to add an exec for nitrogen to i3.

>>

 No.14563

I've been learning Bash lately, what's some cool stuff to do with it?
What do you often write scripts for?

>>

 No.14565

>>14563
What I like the most about bash is how you can just put cli commands in the scripts and execute them or use their output.
The script I write more often is
for i in *; do command "$i"; done
for extracting all files in a folder or things like that. You can also pipe stuff around to have progressbars and such fancy things.
I don't like how you end up using complicated regex sometimes if you want to select just a portion of text.

>>

 No.14571

>>14563
on the fly website blocker

#!/bin/bash

if [[ $EUID -ne 0 ]]; then
echo "Must run as root."
exit 1
fi
block_sites="reddit.com tumblr.com huffingtonpost.com google.com"

unblock_sites() {
echo "unblocking sites"
mv /etc/hosts.bak /etc/hosts
}

block_sites() {
if [[ ! -f /etc/hosts.back ]]; then
cp /etc/hosts /etc/hosts.bak || (echo "Uh oh, error backing up /etc/hosts. Exiting." ; exit 1)
fi
for site in $block_sites; do
echo "blocking $site"
echo "0.0.0.0 $site" >> /etc/hosts
done
}

if [[ -n $1 ]]; then
if [[ $1 == block ]]; then
block_sites
elif [[ $1 == unblock ]]; then
unblock_sites
fi
else
if [[ -f /etc/hosts.bak ]]; then
unblock_sites
else
block_sites
fi
fi


>>

 No.14572

>>14571
>>14563
Checks your current weather!

#!/bin/bash
#
# WTFPL 2015

LOCATION=KDAA
# station list at: http://www.rap.ucar.edu/weather/surface/stations.txt

NEW=$(wget -qO- "http://www.weather.gov/data/current_obs/${LOCATION}.xml"\
| sed -nr '/<(weather|temp_f)>/s/.*>(.*)<.*/\1/p' 2>/dev/null)
if [ "x$NEW" != x ]; then
NEW=$(echo "$NEW" | awk 'BEGIN{RS="";FS="\n"}{printf "%s %s\xb0",$1,$2}')
echo -e "$NEW F" | tr -d '°'
echo "" # an empty line flushes data inside i3blocks
fi


>>

 No.14588

There's something I want to do but don't know if it's possible or easy.
I want to disallow the loading of certain elements per website, for example don't show banners on lainchan, don't show the languages list on wikipedia, etc.
and maybe change things like background colors and such.
It would make browsing a lot more comfy and (I think) save a bit of bandwith.
Is it possible to download a site's CSS/HTML, modify it and tell the browser to load the site's content using that custom configuration?
There surely is a Firefox addon for this but I'm using dwb on arch.



Delete Post [ ]
[ cyb / tech / λ / layer ] [ zzz / drg / lit / diy / art ] [ w / rpg / r ] [ q ] [ / ] [ popular / ???? / rules / radio / $$ / news ] [ volafile / uboa / sushi / LainTV / lewd ]