Your Latest Workflow Improvement - Desktop Customization & Workflow
Users browsing this thread: 31 Guest(s)
|
|||
(08-09-2015, 05:00 PM)Wildefyr Wrote:(07-09-2015, 09:08 PM)ninjacharlie Wrote: Not a super recent performance boost, but I did start using Vimium in Chrome (adds vim-ish keybindings). It's way more comfortable for me to use now :) I started using pentasaurus in palemoon recently myself. I have it set up to be as much like qutebrowser as I can because qutebrowser has too many issues and isn't robust enough, but I absolutely love its interface. |
|||
|
|||
On a different note, a month later... I've written a python script to take journal paper titles pass them through google scholar and output the bibtex entry or add it to my biblio.bib reference file for whatever latex doc I'm working on.
|
|||
|
|||
@fraun:
Oh, that's an interesting one. Would you mind sharing it? |
|||
|
|||
@pranomostro
Yeah sure. It's kind of tailored to me, but I'm sure you can work it out. The hard bit was getting the bibtex link to show up on google scholar without a google account signed in. So had to generate a fake one... https://github.com/fraun/scripts/blob/ma...tBibtex.py |
|||
|
|||
(26-10-2015, 12:46 PM)fraun Wrote: So had to generate a fake one... https://github.com/fraun/scripts/blob/ma...tBibtex.pyThanks. |
|||
|
|||
i've noticed that i use cat and less quite a bit when debugging code, and i'm a fan of syntax highlighting.
so i decided to come up with a way to add highlighting to these commands. i discovered pygments, a cool little syntax highlighter that has a commandline interface. so i started by porting my my colorscheme then make two quick little aliases: Code: # cat - with syntax highlighting! preview: |
|||
|
|||
(28-10-2015, 02:36 PM)xero Wrote: # cat - with syntax highlighting! AAAAAARGH !! You're killing me bro! "$1" !!! By using only one argument, you destroy the ONLY purpose of cat! I'm particularly proud of my "ssh" workflow at work. I connect to many servers quite a lot, and thus optimized this process to make it simpler. I did 3 major things:
The first part is easy. I maintain a /etc/hosts file to map "decent" names to IPs on the network (the original names as provided by the DNS are pretty odd, and the DNS doesn't work well anyway. I know it 'cause it's part of my job to maintain it :P Sadly, I'm not the one who choose the servers names...). thanks to vim/curl and some shell glue, I now have a ~500 lines hosts file, meaning I can just run "ssh <hostname>" to connect to any host, using a name of MY invention, that I can easily recover from memory. The second part is the ssh config file. This one is the simplest part, I defined my "default" parameters, and specific ones: Code: host * You get the idea... The last part is actually the most interresting. My work terminal of choice is "rxvt-unicode", mostly because I know how it works in-depth, and something like "st" would make my productivity drop too much (for now...). It also let you bind keys to actions, and particularly the "string" actions which will input a string when you press a key. I created a script based on slmenu (beware, bitbucket link), which is basically a dmenu, but for the terminal. I then feed it with the hostnames from my /etc/hosts, and upon pressing <ENTER>, it connects to the chosen host. I then used the directive: "URxvt.keysym.F1: string:sshmenu\n" to have it started everytime I press F10 in a terminal. Simple, efficient! EDIT: here is video showing (at home) how it works: http://raw.z3bra.org/dev/random/ssh-menu.webm The difference here is that I need to run "sshmenu" by hand because I'm not using urxvt. At work, I only need to press F10 :) |
|||
|
|||
(28-10-2015, 03:01 PM)z3bra Wrote: AAAAAARGH !! You're killing me bro! "$1" !!! By using only one argument, you destroy the ONLY purpose of cat! i never view the source of more than one file time. but i agree with your argument. http://git.io/vlnDk Code: c() { |
|||
|
|||
@z3bra: Neat! I've seen something like this before, but now I finally took the time to "implement" it. :)
Just out of curiousity, how does your code look like? Here's mine: https://github.com/vain/bin-pub/blob/master/ssh-menu (Uses pmenu instead of slmenu.) |
|||
|
|||
@xero I also found a good way to get syntax highlighting in the shell using https://github.com/rkitover/vimpager after installing I can just call 'vimcat' from the commandline, but it also follows my vim colourscheme! neat huh?
@z3bra super cool! I might get around to using this at some point, although I think I will use fzf over slmenu as it has better fuzzy searching. I didn't know you could rebound keys with just urxvt, been rebinding everything in my zsh/keybindings file. Also slight question, how did you setup up those funky bars and icons in the top right? Edit: here's a sick one liner for you all: https://github.com/Wildefyr/scripts/blob/master/sshmenu I wrote a small script today to resize a mpv video back to it's resolution when it was opened. I'll probably integrate it with my tiling script soon but it's still pretty neat: https://u.teknik.io/cavFpS.webm Here's the source: https://github.com/Wildefyr/fyre/blob/ma...aximise.sh |
|||
|
|||
(28-10-2015, 08:57 PM)Wildefyr Wrote: Edit: here's a sick one liner for you all: https://github.com/Wildefyr/scripts/blob/master/sshmenuThat's something extremely useful. I'll have to remind myself to map it to some keys and use it when watching videos. The "resize while keep aspect ratio" of 2bwm isn't always very precise as it rounds values so this might become handy. |
|||
|
|||
@vain: here is my take: https://p.iotek.org/b98 . I use /etc/hosts and $HOME/.ssh/config to get the hostnames/aliases rather than known_hosts. It means it also works with hosts I never logged in (/etc/hosts is >400 lines on my setup :P). Never really used pmenu before. Is it the one which appears in fullscreen in your terminal?
(28-10-2015, 08:57 PM)Wildefyr Wrote: @z3bra super cool! I might get around to using this at some point, although I think I will use fzf over slmenu as it has better fuzzy searching. I didn't know you could rebound keys with just urxvt, been rebinding everything in my zsh/keybindings file. Also slight question, how did you setup up those funky bars and icons in the top right? That's another option yeah, in my case, slmenu is enough because I keep my "/etc/hosts" rather clean, using a retough naming convention, which means that 2-3 chars are usually enough to go from 500 entries to only 5, which I can then choose with <C-n>. Now for the bars at the top right, the first one is the volume, and the second one the state of the currently playing music. I have one lemonbar instance for each, nothing fancy. |
|||
|
|||
@z3bra: Yes, my version does not pick up hosts I've never visited. My known_hosts is well populated, though, 651 lines, so that's not much of an issue.
pmenu appears in fullscreen, yes. People have pointed out (https://github.com/vain/bin-pub/commit/1...16b5dc68f7) that there's a lot of alternatives to pmenu. And I have to admit that I'm not 100% satisfied with it. I'd love to be able to type "offiste" and it would still show me "offsite.bla.de". None of the menus/pickers I've tried so far does that. :/ |
|||
|
|||
Ah yeah, correcting/accepting typos is a hell of a hot topic actually... Fuzzy search might handle it though, I'm not quite sure
|
|||
|
|||
old post but i figured what i did was relevant
so i liked tiling wms as everything was in place, but i liked floating wms as well as they allowed you to freely move things around and have more windows visible at once. so i wrote a script using wmutils that arranged windows into different tiled layouts, and had it run when a window was opened, with different layouts and the ability to save layouts and not have them overwritten. the script arranges windows into a tiled position, but lets you move them around and resize them as if they were floating, allowing for overlap. |
|||
|
|||
^^ show your work arcetera
|
|||
|
|||
I finally managed it that yawee.sh does not think the right-click pop-up menu is
an own window. Also, lemonbar. It is simply great. |
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
@xero
I'll take a day to upload everything on my github. |
|||
|
|||
Got rid of tiling with fyre and I'm instead using more precise movement scripts to 'slot' windows into place -> https://u.teknik.io/8oqvjF.webm
|
|||
|
|||
Pretty cool! This "snap-to-grid" feature reminds me a lot of goomwwm workflow. Neat script!
For myself, I decided to stop giving a shit about what my desktop look like, and only tweak things when I there is a real need for it (eg, missing characters in a font, or unreadable contrast). This also means I'm gonna start seeing which applications feature the famous "sane defaults". So far, everything is working properly (I'm still using wmutils though, don't worry about that :P) For instance: here is how my current desktop look like now: http://raw.z3bra.org/dev/random/bare-install.png We'll see how it goes on the long run... |
|||
|
|||
I must say, that browser with minimum css is fuck ugly. Well done.
Also, I could do with making it more consistent as it currently just moves the window's width/height in a direction and snaps it to the border if it would go beyond certain points. It seems closest.sh isn't the most accurate of things either, little things are annoying me on how it orders. |
|||
|
|||
I made some changes in lnotify.py for weechat.
I was tired of not getting notifications when I had the private chat open and moved to another i3 workspace. Now if I the weechat buffer is open but i3 workspace isn't active I get the notifications! |
|||
|
|||
(14-12-2015, 06:14 AM)Wildefyr Wrote: Got rid of tiling with fyre and I'm instead using more precise movement scripts to 'slot' windows into place -> https://u.teknik.io/8oqvjF.webm I actually did something very similar recently (smaller grid cells, but similar idea). Are using `wew` or anything like that to ensure new windows snap in place or is it just a keybinding? z3bra Wrote:This "snap-to-grid" feature reminds me a lot of goomwwm workflow. Neat script!Ooh, I didn't realize this was a feature in other WMs. Thanks for pointing that out! |
|||
|
|||
(14-12-2015, 07:26 AM)z3bra Wrote: For instance: here is how my current desktop look like now: http://raw.z3bra.org/dev/random/bare-install.png i get not using addon css. but why not change your browser defaults to match your otherwise dark colorscheme? switching background and foreground would make a 10,000% difference in this scrot. |
|||
|
|||
Plus, what world do I live in where z3bra doesn't rice?!
|
|||
|
|||
(14-12-2015, 07:26 AM)z3bra Wrote: For instance: here is how my current desktop look like now: http://raw.z3bra.org/dev/random/bare-install.pngWhen I see this scrot I can't help but think "This is a lazy scrot". It's not like customizing your desktop is a time consuming task, you do it once and keep the configs across installs. I wouldn't be comfortable on this. Personal choice. |
|||