Your Latest Workflow Improvement - Desktop Customization & Workflow
Users browsing this thread: 13 Guest(s)
|
|||
I've been ricing for years as you all probably know. And one thing I've learnt is that you don't rice once and be done with it. There is always something you want to change, something you want to fix, something you grew tired of...
It's a never ending process, or a kindof "drug". So I'm just trying to focus on using my desktop rather than making it usable :) |
|||
|
|||
Contrary to the above, I've had the same basic setup (dwm, 1 'primary' colour on a complementary grey, 1px-wide borders) for a good few years now and the exact colourscheme for at least one year. Whenever I go to change anything I always end up deciding I preferred what I had so just go back. I guess I'm just stuck in my ways.
To stay vaguely on topic, I installed an SSD on my netbook so it's a lot quicker, which I guess is a workflow improvement haha. |
|||
|
|||
(28-12-2015, 09:28 AM)kirby Wrote: To stay vaguely on topic, I installed an SSD on my netbook so it's a lot quicker, which I guess is a workflow improvement haha. Which laptop are you using? I've been looking at this one: http://www.amazon.com/gp/product/B00SGS7ZH4 , but am not sure if Linux support is any good. |
|||
|
|||
I set a keybind for terminal, wolfmenu, and printscreen screenshot.
|
|||
|
|||
What's wolfmenu? A menu for wolfenstein?
|
|||
|
|||
Some menu program I made. Kinda like dmenu but user-defined and for GUI and terminal usage. |
|||
|
|||
i got a second monitor and hacked around to make it work with wmutils
|
|||
|
|||
I just found a way to bring Emacs-like buffer to the terminal: In emacs, everything is hold into a 'buffer', that can be a file, a terminal app, a process list, a music player, another file, a graphical web browser, a shell, a pdf document, the pdf source file in markdown...
This permits you to switch from file to music player to mail client and back to file, with a same interface showing 'everything that is going on' at glance. That was not present outside emacs AFAIK: tmux and dvtm manage "workspaces", "tags", "windows" and "panes", but not "buffers". Abduco can bring the required abstraction needed to do this: all terminal are wrapped in a nohup for interactive programs (tmux attach/detach feature), and can be detached, list running abduco sessions... And to expose vim buffers to abduco, I simply do not use vim buffers: I start the editor once for every file I edit. To quickly switch between the buffers, I use slmenu/dmenu to list and select opened buffers. Ctrl + Z comes back from a buffer to the parent shell. |
|||
|
|||
I often leave the terminal when I want to translate words and phrases to/from a language and also when I want to define a word.. No longer!
Code: define() { |
|||
|
|||
(29-07-2016, 02:38 AM)Tmplt Wrote: I often leave the terminal when I want to translate words and phrases to/from a language and also when I want to define a word.. No longer!I've ran into the same issue just recently. I already had a define command but, just like yours it was using the internet to fetch definitions. After some research, `sdcv` seemed like a good solution. The archwiki, as usual, was a good place to get information from. I got the stardict-dictd_www.dict.org_gcide-2.4.2 dictionary. Now no need for internet to fetch those definitions. |
|||
|
|||
I use google for that:
Code: #!/bin/sh Though it's a bit more complex than yours, it hasn't failed on me yet! |
|||
|
|||
tmplt: z3bra: Yet another webservice replaced by a shell script, just like "curl -4 wttr.in"
|
|||
|
|||
Haha, nice! Didn't know about it
|
|||
|
|||
|
|||
(17-08-2015, 09:58 AM)venam Wrote: background processes (ctrl-z) and specific zsh tricks with directories (using pushd). those are awesome and I couldn't live without them anymore :> a little bit of URL generating trick to use macmillandictonary.com to get the pronunciation of a word and play it on terminal by mplayer. an alternative would be greatly appreciated :) Code: pron() { |
|||
|
|||
> pron() {
that's not where I thought that was going. |
|||
|
|||
I'm sure that these are horrible. But I thought I would share a couple scripts that might fit in here.
Earlier in the thread a window selecter had been mentioned, I've been using this for quite some time now. It depends on wmctrl and wmutils, but you can substitute most of it honestly. Although using wmctrl allows one to see the window id, workspace, and title all at once. Code: #!/bin/sh I also made a conversion script, since units didn't play well with dmenu. But found it gets all of google's quick instant answers, like what time is it in ___ city, country, etc. Code: #!/bin/sh I also spent quite some time working on a bookmarks dmenu for my firefox and vimb bookmarks, titles display in dmenu, then launch in vimb. I had to re-enable the creation of bookmarks.html in about:config. And both use an automated a sed command to remove a lot of dumb reformatting. I don't miss tabs at all, and now use rtv instead of the browser. Lastly I couldn't survive without the "keyword" function I picked up from firefox, that I use in vimb as "shortcuts" like duckduckgo bangs. Edited a bunch of times because I forgot shit, then shortened. |
|||
|
|||
I am slowly taking the halfwit route, by building up dmenu scripts.
All the io-* scripts in ~/etc/bin/ use iomenu, and I try to keep them stupid. io-calendar: One line per event, from ical files, converted with calendar-update io-edit: Most recently used files and all files in $HOME io-abduco: prompt to attach/create an abduco(1) session io-setfont: For setting TTY fonts in linux (BSD has wsconsctl), psf format. io-search: Prompt for a dir and dump the content of every file, for interactive search, and open the selected line of file in editor. iomenu can handle it (strstr(3) can). io-mblaze: for the super-light mail client mblaze(1) that is a set of command line tools. io-music: You can select a directory or pick individual songs. Currently mplayer, but you can change it. |
|||
|
|||
Oh, I forgot the best of them:
io-troll: What's the magic word? |
|||
|
|||
Workflow improvement: USE ACME.
My flow is super hot fire now. |
|||
|
|||
This ^. And with the "win" command. You get an interactive shell within the editor.
Presentation from Russ Cox himself. |
|||
|
|||
I hope there isn't anyone using acme without win out there.
|
|||
|
|||
Not using acme, but I'm using more and more sam commands thanks to vis. I must say it is way more powerful and comprehensive than vi's addresses. Once you wrap your head around it, it is pretty nice!
Workfllw wise, well, not much changed. I'm removing more and more fluff everyday, and using bare tools more (eg, default dvtm against 1000 lines .tmux.conf). |
|||
|
|||
I'm more and more writing small scripts using dmenu to do things faster.
For example this beauty, which is a small file explorer using dmenu. For me it is used to open my lecture/exercise slides. |
|||
|
|||
Code: function up { Code: function extract { Code: function video { Code: alias stopwatch="time cat" |
|||
|
|||
A small thing I did recently that has made things a tiny bit easier on myself is to use ZSH's Vi mode. I spend most of my time at work in various vim sessions with several shells open for performing various tasks (e.g. One specifically for debugging and that's all I do in it, another for file management, etc). It always felt a bit jarring to go from vim to one of my shells and have to use different key bindings for tasks. Well, with Vi mode a lot of that is alleviated and it's made a small improvement to my productivity as I don't have to think as much about key bindings.
Since it will probably come up, here's what's in my ~/.zshrc to distinguish modes at the prompt: Code: function ins-mode() { echo "λ" } The result looks like the following. CMD Mode: Code: Ω ⊡ ❱ INS Mode: Code: λ ⊡ ❱
Github: https://github.com/darthlukan
CRUX Ports: http://ports.brianctomlinson.com GPG: 3694569D "We're all human, act accordingly." -- Me |
|||
|
|||
I guess i'm the only one who does not knew this but
getting some output from a shell command into vim with that little command: Code: :r !shellcommand just blew my mind. That's so nice :D |
|||
|
|||
(03-05-2017, 06:21 PM)jvarg Wrote: I guess i'm the only one who does not knew this but Then you'll probably love piping your selection into random programs Code: :'<,'>!tr a-z A-Z |
|||
|
|||
|
|||