Coder Social home page Coder Social logo

dswitcher's People

Contributors

excerion avatar jtsymon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

dswitcher's Issues

Multi-Monitor support

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.

Changing font

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

Recent window sorting

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

Some improvements

#!/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.

  1. sh invocation is faster
  2. replaced some tools with awk. I saw you used sed to squeze spaces. Look at tr, for those tasks tr is much faster. But as I invoked awkI've let it handle that job as well.
  3. you don't need to handle the height. Dmenus -l parameter is a "max height". If you feed it with less rows, it will show less.

Take some ideas from it if you want.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.