i3 – show mapped hotkeys

2019-12-02 1 min read Learning

Here is a simple script that can show you the hotkeys bound in ~/.config/i3/config :

 

#!/bin/bash - 
#===============================================================================
#
#          FILE: i3-showkeys.sh
# 
#         USAGE: ./i3-showkeys.sh 
# 
#   DESCRIPTION: 
# 
#       OPTIONS: ---
#  REQUIREMENTS: ---
#          BUGS: ---
#         NOTES: ---
#        AUTHOR: Amit Agarwal (aka)
#  ORGANIZATION: Individual
#       CREATED: 11/26/2019 14:22
# Last modified: Tue Nov 26, 2019  02:43PM
#      REVISION:  ---
#===============================================================================

set -o nounset                              # Treat unset variables as an error


> /tmp/keys
cd ~/.config/i3
grep '^bindsym $mod' config|grep -v '^#'|grep -v 'move container to'|grep -v 'workspace $ws'|sed 's/bindsym //'|grep -v '='|while read key line
do
    printf "%20s\t?\t%s\n" "$key" "$line"  >> /tmp/keys
done

xterm -e "cat /tmp/keys; read -p 'press any key to continue'"
rm -f /tmp/keys

And once this is done, you can bind the script in i3 config like this:

Continue reading

Typing the current date automaticly in any application with a key binding.

2010-07-20 1 min read Linux

$ xvkbd -xsendevent -text $(date +%Y%m%d) I don&#8217;t want to waste time to all the time type the current date. I have set this snippet in my kde shortcuts with meta+l. All the <a class="zem_slink freebase/en/window_manager" title="Window manager" rel="wikipedia" href="http://en.wikipedia.org/wiki/Window_manager">window managers have <a class="zem_slink freebase/en/keyboard_shortcut" title="Keyboard shortcut" rel="wikipedia" href="http://en.wikipedia.org/wiki/Keyboard_shortcut">key-bindings AFAIK. That works in all softs, <a class="zem_slink freebase/en/command_line_interface" title="Command-line interface" rel="wikipedia" href="http://en.wikipedia.org/wiki/Command-line_interface">CLI or <a class="zem_slink freebase/en/graphical_user_interface" title="Graphical user interface" rel="wikipedia" href="http://en.wikipedia.org/wiki/Graphical_user_interface">GUI…

Continue reading

Change the look and feel of Fedora with emrald, change to openbox, fvwm, emerald, metacity or openbox

2010-06-25 1 min read Fedora

I have been looking for this information for quite sometime now. Did not quite find this information in the net. Finally looked through some of the packages in the repository and found the one that I was looking for. There is a rpm called fusion-icon that has quite a lot of features. The description for the package goes like this:

The Compiz Fusion Icon is a simple panel applet for starting and controlling Compiz Fusion. Upon launch, it will attempt to start Compiz Fusion automatically. You may need to select a window decorator, if one does not appear.

Continue reading

wmctrl – window control manager

2010-06-16 0 min read Fedora Linux
\"Blue
Image via Wikipedia

What is <a class="zem_slink freebase/en/wmctrl" title="Wmctrl" rel="wikipedia" href="http://en.wikipedia.org/wiki/Wmctrl">wmctrl?

wmctrl  is  a  command that can be used to interact with an X Window manager that is compatible with the EWMH/NetWM specification.  wmctrl can query the <a class="zem_slink freebase/en/window_manager" title="Window manager" rel="wikipedia" href="http://en.wikipedia.org/wiki/Window_manager">window manager for information, and it can request that certain window management actions be taken.

Continue reading

cairo-dock themes on server – download to local machine.

2010-05-30 1 min read Linux

I was trying to get all the cairo-themes locally. One because sometimes the internet connection is slow and second for the fun of it. So I did the first thing that can be done, to search the internet and find out how to do it. Could not find anything in the results and thus started to search how to to it. And here it is finally:

Get the list of themes <a href="http://themes.cairo-dock.org/liste.txt" target="_blank">here. Once this is done, simply go to http://themes.cairo-dock.org/ and download the file. Once this is done you can untar it to /usr/share/cairo-dock/themes and you are done.

Continue reading

FVWM window manager.

2010-03-05 1 min read Fedora Linux

<a href="http://www.fvwm.org/" target="_blank">Home Page of fvwm.

So Now I am trying different window managers. My requirement is simple, alt+tab should allow me to swicht the windows and the window manager should be light but configurable and should show the programs/applications that are installed on my system. The last requirement comes from the fact that I am quite forgetful person and keep forgetting about the application to use for the particular purpose. So Window Manager should not be CPU and Memory hogging like Gnome or KDE but still should be decent and not like &#8221;X&#8221; or hackedbox.

Continue reading
Older posts