SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#26 2012-05-03 12:13:51

fortyseven
#! Die Hard
From: Sector 7G
Registered: 2011-12-23
Posts: 514

Re: The great #! forums i3 thread

OK, scratch everything; I think I've found the problem.
Allow me to quote the Arch wiki:

The internal status bar, i3-wsbar, was deprecated and replaced by i3bar in i3 v4.0.

A quick version check informs me I'm using v3.

My bad. roll


on the outside looking in

Offline

Help fund CrunchBang, donate to the project!

#27 2012-05-03 13:06:46

gutterslob
#! Resident Bum
Registered: 2009-11-03
Posts: 3,130

Re: The great #! forums i3 thread

^Good to know you got it sorted. smile


Point & Squirt

Offline

#28 2012-05-03 13:43:08

fortyseven
#! Die Hard
From: Sector 7G
Registered: 2011-12-23
Posts: 514

Re: The great #! forums i3 thread

Oh happy day; I finally got it working! After reading through a related topic on the debian forums, I replaced conky with conky-cli and added the following to my config:

exec conky | dzen2 -bg black -fg white

Two more questions.
1. How do I prevent windows from overlapping the top bar?
2. How do I get rid of the bottom bar?

tZGx1aw


on the outside looking in

Offline

#29 2012-05-03 14:39:01

PackRat
#! Die Hard
From: USA
Registered: 2011-03-03
Posts: 1,405

Re: The great #! forums i3 thread

What version of dzen2 are you using?

You can try the dock option with dzen2 to see if that will prevent the windows from overlapping:

exec conky | dzen2 -dock -bg black -fg white

or, use the x, y, geometry options in dzen2 to move your dzen2 bar to the bottom of the screen and overlap the unused i3 bar - gutterslob did a nice write up on how to do that in the "getting started with scrotwm" thread.

Take a look at the dzen2 readme for the options:

http://dzen.googlecode.com/svn/trunk/README

dzen2 --help

in a terminal will show you the available options.

Edit - just looked at the Arch Wiki; looks like the dock option for dzen2 will place it at the bottom in the i3 bar (scroll to bottom of page).

https://wiki.archlinux.org/index.php/I3 … r_and_dzen

I'm not sure if you can create an additional status bar in i3 so you'll have one at top and bottom of screen; although, the following from the i3 Users Guide implies (to me anyway) that it is doable:

Configuring your workspace bar starts with opening a bar block. You can have multiple bar blocks to use different settings for different outputs (monitors):

Last edited by PackRat (2012-05-03 14:56:56)


"It does not require many words to speak the truth." - Chief Joseph, Nez Perce tribe

Online

#30 2012-05-04 05:44:52

fortyseven
#! Die Hard
From: Sector 7G
Registered: 2011-12-23
Posts: 514

Re: The great #! forums i3 thread

^ Thanks for all the help. I managed to move the top bar down to the bottom, overlaying the original. While I'm fairly satisfied with the result, ideally I'd like to make the dzen background transparent so that I'll be able to see workspace numbers displayed on the original bar. However, it appears that dzen doesn't support transparency so I'll have to live with what I have, for now. I'd also prefer to have the whole bar at the top of the screen but at some point in the future I'll upgrade to i3 v4 which should fix that.

Again, thanks to all for the help provided. A free ice-cream toaster for everyone! big_smile

Screenshot:
tZG02aw

Last edited by fortyseven (2012-05-04 07:33:49)


on the outside looking in

Offline

#31 2012-05-04 14:01:47

PackRat
#! Die Hard
From: USA
Registered: 2011-03-03
Posts: 1,405

Re: The great #! forums i3 thread

dzen2 has height and width options, as well as x-y geometry, so you can set it at the bottom right and shorten the width so it will not cover the work spaces or system tray (if your version of i3 has a system tray).

for example:

conky | dzen2 -fg "#666666" -bg "#333333" -w 1100 -h 13 -x 333 -y 1 

puts the dzen2 status bar in the upper right, but it's only 1100 pixels wide on my 1600x900 monitor - leaves the workspace indicator in spectrwm/dwm uncovered.

screen of above code (you can see the right edge where it overlays the conky I start with dwm)

aasQ9Qw0.jpg


"It does not require many words to speak the truth." - Chief Joseph, Nez Perce tribe

Online

#32 2012-05-07 07:45:48

fortyseven
#! Die Hard
From: Sector 7G
Registered: 2011-12-23
Posts: 514

Re: The great #! forums i3 thread

^ Thanks. Instead of using the -w and -h options, I merely adjusted -x by a few pixels.

One (hopefully) last thing. I added keybindings for cb-exit, Openbox's window to shutdown, restart etc. The problem is that when I invoke it, i3 obviously tiles it. I don't want that. I want it to float, otherwise it takes up too much space (and just looks ridiculous).

According to the i3 User's Guide:

With the for_window command, you can let i3 execute any command when it encounters a specific window. This can be used to set windows to floating or to change their border style, for example.

Syntax:
for_window <criteria> command

Example:
for_window [class="XTerm"] floating enable

I tried that but it doesn't seem to work. I googled a bit and also found that replacing the word 'class' with 'title' or 'instance' can also work, although none of them do, for me.

Anyone played with this?


on the outside looking in

Offline

#33 2012-05-07 08:32:29

jelloir
#! CrunchBanger
From: Outside the garden wall
Registered: 2009-08-21
Posts: 212

Re: The great #! forums i3 thread

^ You need to use xprop to identify the class and possibly instance to use in for_window.

Launch cb-exit and then run xprop and click on the cb-exit window.

You could run the following to output only the line you need to see.

xprop | grep 'WM_CLASS(STRING)'

Offline

#34 2012-05-07 10:09:59

fortyseven
#! Die Hard
From: Sector 7G
Registered: 2011-12-23
Posts: 514

Re: The great #! forums i3 thread

^  I ran xprop which returned:

WM_CLASS(STRING) = "cb-exit", "Cb-exit"

That information doesn't help much though; adding:

for_window [class="cb-exit"] floating enable

doesn't do anything.

I'm beginning to think that it's because I'm using an older version of i3 that I'm experiencing so many issues. Previously when i3 seemed to ignore entries in the config, it was because of the version difference. How would I go about upgrading to a newer version of i3? I tried to enable it in the repo's but I keep getting "dependency unresolvable" errors. The same thing happened when I tried to download the package and install it manually.


on the outside looking in

Offline

#35 2012-05-07 10:30:10

jelloir
#! CrunchBanger
From: Outside the garden wall
Registered: 2009-08-21
Posts: 212

Re: The great #! forums i3 thread

Use:

for_window [class="Cb-exit"] floating enable

Note the capital C (the second string)

Offline

#36 2012-05-07 10:56:11

fortyseven
#! Die Hard
From: Sector 7G
Registered: 2011-12-23
Posts: 514

Re: The great #! forums i3 thread

^ Nope. Tried that. Doesn't work either.


on the outside looking in

Offline

#37 2012-05-07 11:19:51

jelloir
#! CrunchBanger
From: Outside the garden wall
Registered: 2009-08-21
Posts: 212

Re: The great #! forums i3 thread

Weird...

You could try:

for_window [class="Cb-exit" instance="cb-exit"] floating enable

But beyond that I am not sure why it wouldn't work for you sorry - I don't use cb-exit plus I am running Sid with the latest i3 version and don't have any problems with setting floating windows.

To ask a stupid question... You are restarting i3 after updating your config file?

Offline

#38 2012-05-07 11:30:33

fortyseven
#! Die Hard
From: Sector 7G
Registered: 2011-12-23
Posts: 514

Re: The great #! forums i3 thread

Although I've not found anything that explicitly states "floating doesn't work with v3", I'm 99% sure that's the issue. It would appear that there's some major improvements between v3 and v4.

Oh, and yes, I was restarting after config changes. big_smile


on the outside looking in

Offline

#39 2012-05-07 12:06:37

2ManyDogs
dv#!
From: elsewhere
Registered: 2011-11-22
Posts: 1,346

Re: The great #! forums i3 thread

fortyseven wrote:

How would I go about upgrading to a newer version of i3?

You could build it yourself from source, using gensym's guide if you need help, or if you upgrade to Waldorf you'll be in the testing branch, and i3 v4 is in the testing repos.

There are a lot of improvements in v4 (from the 30WMs thread):

A brief word about versions. I3 Version 3.6 is in the stable repo and version 4.1 is in the testing and sid repos. These versions look very similar and their default behavior is very similar, but version 4.0 and up becomes much easier to configure. After version 4.0, when you first start I3 it asks whether you want to use the alt or super key for your "mod" key and adjusts its config file accordingly. The format of the config file after version 4.0 is also easier to read and modify. I won't tell you not to try version 3.6 if you're on stable, but if you can get version 4.0 or better you'll have an easier time with it.

Last edited by 2ManyDogs (2012-05-07 12:07:34)


Be eggsalad to each other.

Offline

#40 2012-05-07 13:28:19

gutterslob
#! Resident Bum
Registered: 2009-11-03
Posts: 3,130

Re: The great #! forums i3 thread

@jelloir
Off-topic, but I love that avatar you're rollin. That Slater's latest mad achievement?


Point & Squirt

Offline

#41 2012-05-07 22:31:52

jelloir
#! CrunchBanger
From: Outside the garden wall
Registered: 2009-08-21
Posts: 212

Re: The great #! forums i3 thread

^ The guys a total freak!  Yep thats the ridiculous air he pulled in the Bells final - I've watched it quite a few times now and it seems more ridiculous each time I watch it.

Offline

#42 2012-06-24 22:57:54

jelloir
#! CrunchBanger
From: Outside the garden wall
Registered: 2009-08-21
Posts: 212

Re: The great #! forums i3 thread

Google Tech Talk presented by lead developer Michael Stapelberg.

I haven't had time to watch this in full yet, but looks interesting.

http://youtu.be/QnYN2CTb1hM

Offline

#43 2012-07-04 07:35:14

pitje
#! Junkie
From: me to you
Registered: 2009-02-10
Posts: 437
Website

Re: The great #! forums i3 thread

been using i3 for a few now... loving it so far smile

I've been wrestling with conky, and made myself a little script for generating a conkyrc
It's in php, because that's what I know best, but I think I'm going to redo it in python.

aaaaanyhow, here it is:

<?php if (PHP_SAPI !== 'cli') die('cli only');

                            // path to your conkyrc (filepath)
$setup['conkyrc']             = '/home/pitje/.config/conky/i3/conkyrc';
                            // path to lua functions file (filepath)
$setup['lua']                 = '/home/pitje/.config/conky/i3/conky_functions.lua';
                            // segments you want conky to show. choose from mpd,disk,wifi,ip,temp,battery,cpu,ram,time (array)
$setup['segments']            = array('mpd', 'ip', 'battery', 'cpu', 'ram', 'time');
                            // show _titles? (true/false)
$setup['show__titles']        = true;
                            // divider (string)
$setup['divider']             = ' | ';
                            // opening bracket (string)
$setup['bropen']            = '[';
                            // closing bracket (string)
$setup['brclose']            = ']';
                            // [mpd] your mpd-host (string)
$setup['mpd_host']             = '192.168.2.10';
                            // [mpd] your mpd-port (string)
$setup['mpd_port']             = '6600';
                            // [cpu] number of cpus conky should show (int)
$setup['cpu_num']            = 4;
                            // [wifi,ip] network interface (string)
$setup['network_interface']    = 'eth0';
                            // [disks] disks to show (array)
$setup['disks']                = array('/', '/home');




// NO REAL NEED TO CHANGE ANYTHING BELOW THIS LINE, BUT FEEL FREE :)

//suppress error msgs... (if shit goes wrong: hey, it's only a conky config file dude...)
if (@$argv[1]) $setup['mpd_host'] = @$argv[1];

echo (new conky_config_maker($setup) ? ':) successfully generated' : ':( failed to generate'), ' conkyrc', "\n", $setup['conkyrc'], "\n";


/////////////////////////////////////
///////// HERE BE DRAGONS ! /////////
/////////////////////////////////////
class conky_config_maker
{
    //defaults, can be overriden in the setup-array
    var $mpd_host             = 'localhost';
    var $divider             = '6600';
    var $conkyrc             = '.conkyrc';
    var $lua                 = '.conky_functions.lua';
    var $bropen             = '[';
    var $brclose             = ']';
    var $cpunum             = '1';
    var $show__titles        = true;
    var $disks                 = array('/');
    var $network_interface     = 'eth0';
    var $segments             = array('cpu', 'ram', 'disk', 'time');

    var $output             = '';


    function __construct($setup = array())
    {
        foreach ($setup as $key => $value)
            if ( ! in_array($key, array('segments')))
                $this->$key = $value;

        if ( ! is_file($this->lua)) die('conky will not work! lua file not found!' . "\n");

        $this->_c_basics();

        foreach ($setup['segments'] as $item)
            if (method_exists($this, $item))
                $this->$item();

        return $this->_write_to_file();
    }


    private function _write_to_file()
    {
        return file_put_contents($this->conkyrc, rtrim($this->output, $this->divider));
    }



    private function _c_basics()
    {
        $this->output = <<<EOF
## no output in X (with vanilla conky, not conky-cli)
out_to_x no

## print text to standard output
out_to_console yes

## run indefinitely
total_run_times 0

## update interval in seconds
update_interval 1

## average out sampling
cpu_avg_samples 2
net_avg_samples 2

## show nice percentages
pad_percents 2

## use short units
short_units on

## mpd
mpd_host {$this->mpd_host}
mpd_port {$this->mpd_port}

## Strictness of if_up. One of: up, link or address. The later ones imply the further ones.
## Defaults to up.
if_up_strictness address

## Timing interval for music player thread, e.g. mpd, audacious
## Defaults to default interval
#music_player_interval 1.0

temperature_unit celcius

lua_load {$this->lua}

##########################
########  OUTPUT  ########
##########################
TEXT

EOF;
    }


    private function mpd()
    {
        $this->_add('${if_mpd_playing}');
        $this->_title('mpd');
        $this->_add('${if_match "$mpd_status"=="Paused"}||${else}► ${endif} ');
        $this->_add('${if_match "$mpd_artist"!=""}${mpd_artist 50} - ${endif} ${mpd_title 50} ');
        $this->_add($this->bropen . '${mpd_elapsed} / ${mpd_length}' . $this->brclose . $this->divider);
        $this->_add('${endif}');
    }


    private function battery()
    {
        $this->_title('bat');
        $this->_add('${lua_parse pad ${battery_percent}}% ' . $this->bropen . '${if_match "$battery_short"!="N"}${if_match "$battery_short"<"D"}≃${else}');
        $this->_add($this->_makeBars('battery_percent', false));
        $this->_add(str_repeat('${endif}', 2) . $this->brclose . $this->divider);
    }


    private function cpu()
    {
        $this->_title('cpu');
        $this->_add('${lua_parse pad ${cpu cpu0}}% ' . $this->bropen);
        for ($i = 1; $i < ($this->cpu_num + 1); $i++)
            $this->_add($this->_makeBars('cpu cpu' . $i, false) . str_replace(' ', '', $this->divider));
        $this->output = rtrim($this->output, $this->divider) . $this->brclose .' ${freq_g}GHz' . $this->divider;

    }


    private function wifi()
    {
        $this->_add('${if_up ' . $this->network_interface . '}');
        $this->_title('wifi');
        $this->_add($this->_makeBars('wireless_link_qual_perc wlan0'));
        $this->_add($this->divider . '${endif}');
    }


    private function ip()
    {
        $this->_add('${if_up ' . $this->network_interface . '}');
        $this->_title('ip');
        $this->_add('${addr ' . $this->network_interface . '}' . $this->divider . '${endif}');
    }


    private function temp()
    {
        $this->_title('temp');
        $this->_add('${hwmon temp 1}°' . $this->divider);
    }


    private function ram()
    {
        $this->_title('ram');
        $this->_add('${mem}/${memmax} ');
        $this->_add($this->_makeBars('memperc') . $this->divider);
    }


    private function time()
    {
        $this->_add('${time %Y.%m.%d %R}' . $this->divider);
    }


    private function disk()
    {
        $this->_title('disk');
        foreach ($this->disks as $disk)
            $this->_add($disk . ' ${fs_used ' . $disk . '}/${fs_size ' . $disk . '} (${fs_used_perc ' . $disk . '}%)' . $this->divider);
    }



    private function _makeBars($arg, $brackets = true)
    {
        $out = $brackets ? $this->bropen : '';
        $list = array(
            90    => '█',
            75    => '▇',
            60    => '▆',
            45    => '▅',
            30    => '▄',
            15    => '▃',
             0    => '▂'
        );
        foreach ($list as $val => $bar)
            $out .= '${if_match ${' . $arg . '}>' . $val . '}' . $bar . '${else}';
        return $out . '▁' . str_repeat('${endif}', count($list)) . ($brackets ? $this->brclose : '');
    }


    private function _title($string)
    {
        if ($this->show__titles)
            $this->_add(strtoupper($string) . ': ');
    }


    private function _add($string)
    {
        $this->output .= $string;
    }


}

the conkyrc it generates is referencing conky_functions.lua, wich is nothing more than

function conky_pad( number )
    return string.format( '%3i' , conky_parse( number ) )
end

I've saved the phpfile as makeconky.php and put it in my bin folder.
Now, when I want my conky to display the mpd-info from my server I just call `makeconky.php 192.168.2.5` and it's done smile


oh yeah? well, your momma dresses you funny and you need a mouse to delete files

Offline

#44 2012-07-04 20:09:56

Tunafish
#! Die Hard
From: the Netherlands
Registered: 2010-03-07
Posts: 1,204

Re: The great #! forums i3 thread

pitje wrote:

been using i3 for a few now... loving it so far smile

hours, days, weeks, months, years? smile
I'm using it for a couple of days now. I still have some (a lot) of tweaking to do. Some of the configs posted in this thread seemed quite strange to me.

Pitje, how do I have to run the php script? I get this error message:

/home/nn/bin/makeconky.php: line 1: syntax error near unexpected token `('
/home/nn/bin/makeconky.php: line 1: `<?php if (PHP_SAPI !== 'cli') die('cli only');'

Tuna


sed 's/stress/relaxation/g'
Privacy & Security on #!

Offline

#45 2012-07-05 06:21:42

pitje
#! Junkie
From: me to you
Registered: 2009-02-10
Posts: 437
Website

Re: The great #! forums i3 thread

a few weeks now smile

about the error, that's the cli-test that's borking.....
You can remove the line (leave the '<?php'), or replace it with

if ( ! defined('STDIN')) die('cli only');

you should be able to run the script by running

php <scriptname>

you can also change the file slightly by adding

#!/usr/bin/php

to the top of the file

#!/usr/bin/php
<?php

that way you can just call the script by its name smile


oh yeah? well, your momma dresses you funny and you need a mouse to delete files

Offline

#46 2012-07-05 07:36:13

Tunafish
#! Die Hard
From: the Netherlands
Registered: 2010-03-07
Posts: 1,204

Re: The great #! forums i3 thread

Thanks Pitje, I just didn't know how to run a PHP script. hmm
It's working now.
Do you mind posting your i3 config file?


sed 's/stress/relaxation/g'
Privacy & Security on #!

Offline

#47 2012-07-05 16:38:00

pitje
#! Junkie
From: me to you
Registered: 2009-02-10
Posts: 437
Website

Re: The great #! forums i3 thread

# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout somewhen, delete
# this file and re-run i3-config-wizard(1).
#

# i3 config file (v4)
# Please see http://i3wm.org/docs/userguide.html for a complete reference!

# mod key!
set $mod Mod4

# font for window titles. ISO 10646 = Unicode
#font -misc-fixed-medium-r-normal--10-150-75-75-*-80-iso10646-1
font -*-clean-*-*-*-*-12-*-*-*-*-*-iso10646-*

# some basic workspace settings
workspace_layout default

workspace_auto_back_and_forth yes

new_window none

# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod

# change focus
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right

# move focused window
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right

# enter fullscreen mode for the focused container
bindsym $mod+Shift+f fullscreen

# split in horizontal orientation
bindsym $mod+Shift+h split h

# split in vertical orientation
bindsym $mod+Shift+v split v

# change container layout (stacked, tabbed, default)
bindsym $mod+Shift+i layout stacking
bindsym $mod+Shift+u layout tabbed
bindsym $mod+Shift+y layout default

# toggle tiling / floating
bindsym $mod+Shift+space floating toggle

# change focus between tiling / floating windows
bindsym $mod+Shift+d focus mode_toggle

# focus the parent container
bindsym $mod+Shift+a focus parent

# focus the child container
#bindcode $mod+d focus child

# floating sizes
floating_minimum_size 75 x 50
floating_maximum_size -1 x -1


# switch to workspace
bindsym $mod+1 workspace 1: ω
bindsym $mod+2 workspace 2: ε
bindsym $mod+3 workspace 3: ƒ
bindsym $mod+4 workspace 4: Ξ
bindsym $mod+5 workspace 5
bindsym $mod+6 workspace 6
bindsym $mod+7 workspace 7
bindsym $mod+8 workspace 8: ↓
bindsym $mod+9 workspace 9: ≈
bindsym $mod+0 workspace 10: ⊗
bindsym $mod+grave workspace cli
bindsym $mod+BackSpace workspace www
bindsym $mod+equal workspace editor


# move focused container to workspace
bindsym $mod+Shift+exclam move container to workspace "1: ω"; workspace "1: ω"
bindsym $mod+Shift+at move container to workspace "2: ε"; workspace "2: ε"
bindsym $mod+Shift+numbersign move container to workspace "3: ƒ"; workspace "3: ƒ"
bindsym $mod+Shift+dollar move container to workspace "4: Ξ"; workspace "4: Ξ"
bindsym $mod+Shift+percent move container to workspace 5; workspace 5
bindsym $mod+Shift+asciicircum move container to workspace 6; workspace 6
bindsym $mod+Shift+ampersand move container to workspace 7; workspace 7
bindsym $mod+Shift+asterisk move container to workspace "8: ↓"; workspace "8: ↓"
bindsym $mod+Shift+parenleft move container to workspace "9: ≈"; workspace "9: ≈"
bindsym $mod+Shift+parenright move container to workspace "10: ⊗"; workspace "10: ⊗"
bindsym $mod+Shift+grave move container to workspace "cli"; workspace "cli"
bindsym $mod+Shift+BackSpace move container to workspace "www"; workspace "www"
bindsym $mod+Shift+equal move container to workspace "editor"; workspace "editor"


# Make the currently focused window a scratchpad
bindsym $mod+Shift+minus move scratchpad
# Show the first scratchpad window
bindsym $mod+minus scratchpad show


# program shortcuts
## screenlock
bindsym $mod+l exec i3lock -i ~/Pictures/wall/locked.png
## kill focused window
bindsym $mod+Shift+Q kill
## dmenu
bindsym $mod+space exec ~/.config/dmenu/dmenu-bind.sh
## browser
bindsym $mod+g exec google-chrome
bindsym $mod+w exec luakit
## editor
bindsym $mod+e exec sublime
## file manager
bindsym $mod+f exec spacefm
## video player
bindsym $mod+v exec vlc
## audio player (mpd)
bindsym $mod+m exec gmpc
## terminal
bindsym $mod+t exec terminator
bindsym $mod+Return exec terminator
## lock touchpad
bindsym $mod+p exec /home/pitje/bin/tp


## apps2windows
assign[class="Google-chrome"] www
assign[class="Firefox"] www
assign[class="luakit"] www

assign[class="Iceweasel"] www

assign[class="Sublime_text"] editor

assign[class="Spacefm"] 3: ƒ
assign[class="Thunar"] 3: ƒ
assign[class="Nautilus"] 3: ƒ

assign[class="Vlc"] 4: Ξ

assign[class="Gimp"] 5

assign[class="Transgui"] 8: ↓

assign[class="Gmpc"] 9: ≈

assign[class="Terminator"] cli

# floating enabled for....
for_window [class="Xfce4-notifyd"] floating enable


# autostart programs
## wallpaper
exec_always --no-startup-id nitrogen --restore
## ssh-diskmounts to homeserver (with a little wait for the network to come up)
exec sleep 6s && ~/bin/ssh.home
## touchpadsettings for zenbook
exec ~/bin/zenbooktouchpad
## powermanager (for suspend on lid-close)
exec xfce4-power-manager
## terminal
exec terminator
##volume control
exec volumeicon
##gmail notifier (with a little wait for the network to come up)
exec sleep 5s && gmail-notify



# reload the configuration file
bindsym $mod+Shift+C reload
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $mod+Shift+R restart
# exit i3 (logs you out of your X session)
bindsym $mod+Shift+E exit



# class                    border  backgr. text    indicator
#client.focused          #000000 #000000 #ffffff #cecece
client.focused          #cecece #cecece #000000 #cecece
client.focused_inactive #000000 #000000 #c5c5c5 #000000
client.unfocused        #000000 #000000 #858585 #000000
client.urgent           #ff0000 #000000 #ff0000 #ff0000

# resize window (you can also use the mouse for that)
mode "resize" {
    # These bindings trigger as soon as you enter the resize mode
    # Pressing left will shrink the window’s width.
    # Pressing right will grow the window’s width.
    # Pressing up will shrink the window’s height.
    # Pressing down will grow the window’s height.
    bindsym 113 resize shrink width 10 px or 10 ppt
    bindsym 116 resize grow height 10 px or 10 ppt
    bindsym 111 resize shrink height 10 px or 10 ppt
    bindsym 114 resize grow width 10 px or 10 ppt
    # back to normal: Enter or Escape
    bindsym Return mode "default"
    bindsym Escape mode "default"
}

bindsym $mod+r mode "resize"

# Start i3bar to display a workspace bar (plus the system information i3status finds out, if available)
bar {
    position top
    #status_command i3status -c ~/.config/i3status/config
    status_command conky -c ~/.config/conky/i3/conkyrc
    colors {
        background #000000
        statusline #cecece
        #focused_workspace     #cecece #cecece #000000
        focused_workspace     #000000 #000000 #ffffff
        active_workspace      #000000 #000000 #cecece
        inactive_workspace    #000000 #000000 #8e8e8eut 
        urgent_workspace      #000000 #000000 #ff0000
    }
}

there ya go smile

ah, so the error was not the PHP_SAPI stuff (I had that my VM not liking that at all @ work...)

and I see I made a little error in the post;
when the first line of the script is like <?php, you should run it like php <scriptname>,
in the other case you can put in in your $PATH, chmod +x it and just call <scriptname> smile

Last edited by pitje (2012-07-05 22:06:17)


oh yeah? well, your momma dresses you funny and you need a mouse to delete files

Offline

#48 2012-08-20 22:46:13

Digit
#! Die Hard
From: the internet
Registered: 2009-05-26
Posts: 1,057
Website

Re: The great #! forums i3 thread

so there i was, sat in icewm, there only on a whim, and then starting to get an itch to try stumpwm.  i held off for a moment cos i had a distro dling in yeahconsole, then i remembered, it was in tmux, and i already had wget running with -c, so i could reattach once in stumpwm... so off i went closed the lot... but, to my surprise, no stumpwm in my session list.   

... so i jumped into i3.

folks rave about it, and i could hardly remember what it was like.

... okies, skip ahead, and it's so much more intuitive and powerful than most tiling wm.  and has a lot of similarities to my most loved features of clfswm... and even surpasses them in many areas.

not doing anything fancy with it yet, but i did throw in some nicer colours into the config.  ^_^

#digit's colours:
#colourclass                border    bckgrnd    text
client.focused                #996600    #000000    #FF7700
client.focused_inactive    #333333    #333333    #996600
client.unfocused            #333333    #333333    #666666
client.urgent                #FF0000    #8C5665    #FF0000
bar.focused                    #996600    #773300    #FFFFFF
bar.unfocused                #333333    #333333    #999999
bar.urgent                    #FF0000    #000000    #FF0000

cos the grey n blue was sucking the life outta me. ^_^

im in love!  ^_^  (again!  ... what a wm slut)

Last edited by Digit (2012-08-20 22:47:09)


~ think ~
i have chosen to commit to bedrocklinux.
causes of the mo: remember aaron | stop lennart (& systemd) | without a shot fired

Offline

#49 2012-09-06 11:09:20

jelloir
#! CrunchBanger
From: Outside the garden wall
Registered: 2009-08-21
Posts: 212

Re: The great #! forums i3 thread

Anyone who has used i3 for a while may have come across the "Bars" issue with the edges of terminals - in my case URxvt.  I noticed a post from Michael Stapelberg on the mailing list today about a patch to resolve it and gave it a try.

http://infra.in.zekjur.net/archives/i3- … 00895.html

Great news!  Now you can set a wallpaper and happily have transparency without the yucky bars around terminal edges...

tZmR2MQ

There was a workaround if using solid colours but that's no longer needed with this patch which is due for inclusion in 4.3.

Offline

Be excellent to each other!

#50 2012-09-07 18:30:52

chiffon_rouge
#! Member
Registered: 2011-07-24
Posts: 60

Re: The great #! forums i3 thread

Is there any chance you could share your .i3/config? I love your colors, jelloir.

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo