excerion / dswitcher Goto Github PK
View Code? Open in Web Editor NEWDmenu-based window switcher for EWMH-compliant X11 window managers.
License: GNU General Public License v3.0
Dmenu-based window switcher for EWMH-compliant X11 window managers.
License: GNU General Public License v3.0
I am on dwm. This tool does successfully list all of the windows and switch to the right tag, but does not pay attention to which monitor the window is on. Say I'm on tag 2 monitor 1 and searching for a window that is on tag 4 monitor 2, this tool finds it but then switches to tag 4 monitor 1. This could be a bug specifically affecting dwm or just a missing feature. Either way, I would love to see it fixed.
Hi @Antithesisx,
Many thanks for this great tool. Precisely what I was looking for to quickly switch to an open window!
One request. Would it be possible to add an option to specify the font which is used by dswitcher
?
Such as: $ dswitcher -font Droid Sans-8:bold
I would prefer to use an Xft font.
Thanks for your opinion!
Robert
Hi there,
One cool idea I came up with is sorting the windows according to their recent use.
Let's say you have 5 open windows but recently switched from Firefox to Thunderbird. Could this information somehow be reflected in the following sorting order?
1. Firefox
2. Thunderbird
3. Window 3
4. Window 4
5. Window 5
Do you find such a feature useful?
Thanks,
Robert
#!/bin/sh
date=$(date +"%a %d. %b %R")
num=$(wmctrl -l | awk '{$1="";$2="";$3="";gsub(/ /,"", $0);printf("%d - %s\n",NR,$0)}' | dmenu -b -i
-p "$date" -l 30 | cut -d"-" -f1)
[ -z "$num" ] || wmctrl -l | awk -v n="$num" 'NR==n { print $1 }' | xargs wmctrl -i -a
I noticed your script was pretty laggy. So I fixed it. This script is a lot faster.
awk
. I saw you used sed
to squeze spaces. Look at tr
, for those tasks tr
is much faster. But as I invoked awk
I've let it handle that job as well.Take some ideas from it if you want.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.