You are not logged in.

#1376 2016-01-08 12:57:56

Docbroke
Member
From: India
Registered: 2015-06-13
Posts: 1,438

Re: The i3 thread

Ok, understood.

Use "ALT (or winkey whichever is you mod key) + shift + r" which is default key for window resizing, after that you will enter resize mode, where you can change size of selected window with arrow keys.

You can check defaults keybinds in ".config/i3/config" file.

Offline

#1377 2016-01-08 13:01:21

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,330
Website

Re: The i3 thread

Docbroke, he's not trying to manually resize them - he wants to swap their sizes (presumably with a simple key binding).  I've not used i3 enough to be able to help, but it is perfectly clear to me what is desired: it's a common behavior with a default key binding in most other tilers.  In dwm it would be swapping which client window is in the 'master' region.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#1378 2016-01-08 13:21:25

Docbroke
Member
From: India
Registered: 2015-06-13
Posts: 1,438

Re: The i3 thread

bokiscout wrote:

before:
[_firefox_][______eclipse_______]

after:
[_eclipse_][______firefox_______]


Also it is just fine if the swap is like this:

before:
[_firefox_][______eclipse_______]

after:
[______firefox_______][_eclipse_]

bokiscout wrote:

I think we have misunderstanding.
Before and after is representation of  how I want to be, not how it is.

@bokiscout, your first case is possible with "Alt(mode key)+shift+left/right arrow key", which is default shortcut for moving selected window to left or right. I am not sure if second case is possible with i3.
If there is no such keybinding in your .config/i3/config add this

bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Right move right

@Trilby, thanks for clarification.

Offline

#1379 2016-01-09 08:51:41

AlexIL
Member
From: Israel
Registered: 2016-01-02
Posts: 45
Website

Re: The i3 thread

I'm reposting my question here:
Hey guys, I configured i3status to be piped into dzen2 to add additional information and icons.
It works great except for when on fullscreen, the i3status is on top of the window.
How can this be fixed? Thanks!

Offline

#1380 2016-01-10 10:46:16

bokiscout
Member
Registered: 2015-09-27
Posts: 24

Re: The i3 thread

Docbroke wrote:
bokiscout wrote:

before:
[_firefox_][______eclipse_______]

after:
[_eclipse_][______firefox_______]


Also it is just fine if the swap is like this:

before:
[_firefox_][______eclipse_______]

after:
[______firefox_______][_eclipse_]

bokiscout wrote:

I think we have misunderstanding.
Before and after is representation of  how I want to be, not how it is.

@bokiscout, your first case is possible with "Alt(mode key)+shift+left/right arrow key", which is default shortcut for moving selected window to left or right. I am not sure if second case is possible with i3.
If there is no such keybinding in your .config/i3/config add this

bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Right move right

@Trilby, thanks for clarification.

Thank You for trying to help me but still we do not understand each other, probably becouse You have not been using AwesomeWM. Excuse me if I'm wrong, but anyway.

As we know this is not possible out of the box but I think that is possible by using I3 IPC Interaface. This is how I3 expose infomration about active windows, it's sizes etc...

I will take a deep look into later this month because I'm to busy at the moment.


What's the object-oriented way of becoming wealthy?
- Inheritance

Offline

#1381 2016-01-10 13:05:00

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,418
Website

Re: The i3 thread

And yet, "move left" and "move right" matches your before/after exactly. Have you even tried using it?

To resize windows, use mod+r and the arrow keys.

Last edited by Alad (2016-01-10 13:06:02)


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

#1382 2016-01-11 14:45:46

bokiscout
Member
Registered: 2015-09-27
Posts: 24

Re: The i3 thread

Alad wrote:

And yet, "move left" and "move right" matches your before/after exactly. Have you even tried using it?

To resize windows, use mod+r and the arrow keys.

Yes of course I'm using them.

But I found stacking both windows and periodically unstacking one of them, then stacking it back again, kind of better workflow than the one I was looking for ( strange but it works for me big_smile ).

Maybe I should try to adopt to I3 before any attempt to transform it to something that it is not meant to be.

Off topic:
No offense to any of You but reading multiple replies with basic (out of the box) shortcuts makes me feel as a donkey. Probably you are used to see bunch of new wannabe archers that are skipping wikis and manuals but that's not the case here.


What's the object-oriented way of becoming wealthy?
- Inheritance

Offline

#1383 2016-01-11 15:04:38

Docbroke
Member
From: India
Registered: 2015-06-13
Posts: 1,438

Re: The i3 thread

I found tabbed windows works much better especially on my small screen as compared to tiling or stacking.

Offline

#1384 2016-02-09 09:41:28

mikaelbrun
Member
From: Tistedal/ Norway
Registered: 2016-01-01
Posts: 43

Re: The i3 thread

I have trouble with some startup. My config file is:

# Autostart
exec --no-startup-id nm-applet
exec --no-startup-id setxkbmap -model pc104 -layout no,us -variant latin -option grp:ctrls_toggle
exec xinput set-prop 'ETPS/2 Elantech Touchpad'  'libinput Tapping Enabled' 1
exec --no-startup-id feh --bg-fill ~/.bakgrunner/archlinux-wallpaper_graa.png
exec --no-startup-id dropbox start
# exec_always [--no-startup-id] conky
exec --no-startup-id volumeicon

nm-applet and dropbox starts fine, but volumeicon, setxkbmap, xinput and feh is not.

What's wrong with my config? Or is it something else that may be wrong?

My .xinitrc file is:

# i3 window manager
# exec i3 -V >> ~/i3log-$(date +'%F-%k-%M-%S') 2>&1
# exec i3 -V >> ~/.i3log 2>&1

# Awesome window manager
exec awesome


# Gnome keyring
eval $(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh)
export SSH_AUTH_SOCK

# Setting keyboard switch
exec setxkbmap -model pc104 -layout no,us -variant latin -option grp:ctrls_toggle

(the Setting keyboard swithc part is added just to try starting it from .xinitrc to see if that works).

And gnome keyring doesn't start either.

EDIT: wrong place to post it. Can anyone move it to the right place? :-)

Last edited by mikaelbrun (2016-02-09 09:42:31)

Offline

#1385 2016-02-09 10:11:22

Docbroke
Member
From: India
Registered: 2015-06-13
Posts: 1,438

Re: The i3 thread

regarding feh, you may want to put target in ' ' like , it works that way with me, also make sure that your path is correct.

exec --no-startup-id feh --bg-fill '~/.bakgrunner/archlinux-wallpaper_graa.png'

you are starting setxkbmap from .xinitrc as well as i3config??

for others try running, below from terminal, it it works there it should work from your config file, (and post errors here if any)

i3-msg exec "command"

all the best!


EDIT: anything after 'exec xxx' line in your .xinitrc will be ignored, so you may want your exec awesome at the end.
Also how did you start i3 then?

Last edited by Docbroke (2016-02-09 10:13:34)

Offline

#1386 2016-02-09 12:48:32

mikaelbrun
Member
From: Tistedal/ Norway
Registered: 2016-01-01
Posts: 43

Re: The i3 thread

I just found a major mistake. I am running awesome, not i3wm :-D could be the problem i guess... but anyway..thanks for the respond.

Offline

#1387 2016-02-09 14:25:13

Docbroke
Member
From: India
Registered: 2015-06-13
Posts: 1,438

Re: The i3 thread

that's awesome
btw, your config file looks similar to i3 ( I have no idea about awesome though)

Offline

#1388 2016-02-09 15:13:36

mikaelbrun
Member
From: Tistedal/ Norway
Registered: 2016-01-01
Posts: 43

Re: The i3 thread

That's because I was looking at the wrong config file. I am trying out both i3 and awesome to see which fits me the best :-)

Offline

#1389 2016-02-20 12:16:45

chickenPie4tea
Member
Registered: 2012-08-21
Posts: 309

Re: The i3 thread

Rofi-problem version 0.15.8 (latest Stable)
in i3 (but not Bspwm or Dwm or Snapwm etc)
rofi shows up but the font is so small it's not readable
I have the correct dpi set in my .xinitrc (96)

Last edited by chickenPie4tea (2016-02-20 12:18:01)


You can like linux without becoming a fanatic!

Offline

#1390 2016-02-20 12:41:39

Docbroke
Member
From: India
Registered: 2015-06-13
Posts: 1,438

Re: The i3 thread

chickenPie4tea wrote:

Rofi-problem version 0.15.8 (latest Stable)

I am already on 0.15.12-1, no issues with that version.

Offline

#1391 2016-02-20 17:41:53

chickenPie4tea
Member
Registered: 2012-08-21
Posts: 309

Re: The i3 thread

I find it's not an i3 problem, it's the same in Bspwm, sorry for posting in i3 thread.

It turns out rofi was picking up a general font setting I had for terminals set in .Xresources
so I made a specific font setting for rofi in there and it works fine now.
rofi.font: DejaVu Sans Mono 14

Last edited by chickenPie4tea (2016-02-21 12:35:00)


You can like linux without becoming a fanatic!

Offline

#1392 2016-04-04 10:50:05

QX
Member
Registered: 2010-05-20
Posts: 14

Re: The i3 thread

I'm having issues with i3status acknowledging a battery.

excerpt from my i3status config:

order += "battery 0"
...
battery 0 {
  format = "joy:%percentage"
  format_down = "no joy"
  path = "/sys/class/power_supply/sony_controller_battery_04:76:6e:XX:XX:XX/uevent"
  low_threshold = 25
  threshold_type = "percentage"
}

copying and pasting the path gives me this:

$ cat "/sys/class/power_supply/sony_controller_battery_04:76:6e:XX:XX:XX/uevent"
POWER_SUPPLY_NAME=sony_controller_battery_04:76:6e:XX:XX:XX
POWER_SUPPLY_PRESENT=1
POWER_SUPPLY_CAPACITY=100
POWER_SUPPLY_SCOPE=Device
POWER_SUPPLY_STATUS=Discharging

However my status bar simply displays "no joy". I'm a sad panda.

Offline

#1393 2016-05-20 22:00:34

AoiHana
Member
Registered: 2016-05-20
Posts: 5

Re: The i3 thread

Hello. There's a feature I would like,  maybe it is feasible technicaly but too hard for me, maybe it is simple for you guys.
So, feel free to say the level of difficulty ... If it is simple I can learn, if not, too bad but It's not a big deal.
How to use dmenu to choose between the windows(inside all containers, and workspaces alike, through their title, like I was choosing between different programs to run, and go to it ?
I tend to forgot systematically where the windows are etc, so if I3 was yet even more "automatic" it would be fine. I wouldn't have to care anymore where I put what. I seldom use more than one or two workspaces, but I have tens of windows without talking of the scrapyard. Oh, if only I could use dmenu too to research things in the scratchpad as well !
Well, I use the scratchpad only to make things disappear, so if I could just send them away anywhere and search for them wherever they are, I wouldn't use the scratchpad that much, indeed.
While writing this post, I learned a lot. Not so complicated, even if for the stuff with dmenu I have no idea.
Something else: I got the error

_on_window_activation focus
ERROR: CONFIG:           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ERROR: CONFIG: Line  22:
ERROR: CONFIG: Line  23: popup_during_fullscreen smart 

What the problem ? ? Everything else was working before I wrote that line. Because it is rare that windows gets activated, it is better that focus is set on it the instant. Then I would simply use back_and_forth.
My version is  4.8 (2014-06-15, branch "4.8"

Thanks for the advices !

Last edited by AoiHana (2016-05-20 22:46:19)

Offline

#1394 2016-05-21 04:03:36

Docbroke
Member
From: India
Registered: 2015-06-13
Posts: 1,438

Re: The i3 thread

just replace dmenu with "rofi", it can search applications as well as windows (including scratchpad)

the line should be
focus_on_window_activation <option>

Offline

#1395 2016-05-21 14:24:28

AoiHana
Member
Registered: 2016-05-20
Posts: 5

Re: The i3 thread

Fine ! exactly what I wanted ! Too bad I can't run the configure script, and it will likely cause a huge crash.
I can count on one hand's fingers the times I succeeded to run a ./configure script. No secret I ain't calling myself a "poweruser" ! I am already all the more satisfied with running a tilling wm and keyboard driven browser. 
Whatever I put in option, "focus_on_window_activation <option>" rises an error/exception.

Offline

#1396 2016-05-27 14:55:00

MetalOn
Member
Registered: 2016-05-27
Posts: 2

Re: The i3 thread

Hello, I recently wrote a small script which prompts the user for input and then searches for this string on amazon, google,..., depending on the input parameter (inspired by Xmonad.Actions.Search)
Today I tried to extend the script, so that when it is calles with a second argument, it instead searches for the contents of the clipboard.
This works when the script is called from the shell, but I can't get i3 to pass the second argument for some reason, so it still just prompts the user for a query, but calling

i3 'exec --no-startup-id "~/.i3/dmenu_search.sh a clipboard", mode "default"'

from the shell will work.
The relevant section from the config file is

 bindsym $mod+s mode "$search"
 set $search (a)mazon, (g)oogle, (s)cholar, (u)nibib, (w)olframalpha, w(i)kipedia, (h)oogle
 mode "$search" {
     bindsym a exec --no-startup-id ~/.i3/dmenu_search.sh a, mode "default"
     bindsym g exec --no-startup-id ~/.i3/dmenu_search.sh g, mode "default"
     bindsym w exec --no-startup-id ~/.i3/dmenu_search.sh w, mode "default"
     bindsym s exec --no-startup-id ~/.i3/dmenu_search.sh s, mode "default"
     bindsym i exec --no-startup-id ~/.i3/dmenu_search.sh i, mode "default"
     bindsym u exec --no-startup-id ~/.i3/dmenu_search.sh u, mode "default"
     bindsym h exec --no-startup-id ~/.i3/dmenu_search.sh h, mode "default"
 
     # exit system mode: "Enter" or "Escape"
     bindsym Return mode "default"
     bindsym Escape mode "default"
 }
 
 bindsym $mod+Shift+s mode "$Ssearch"
 set $Ssearch (a)mazon, (g)oogle, (s)cholar, (u)nibib, (w)olframalpha, w(i)kipedia, (h)oogle
 mode "$Ssearch" {
     bindsym a exec --no-startup-id "~/.i3/dmenu_search.sh a clipboard", mode "default"
     bindsym g exec --no-startup-id "~/.i3/dmenu_search.sh g clipboard", mode "default"
     bindsym w exec --no-startup-id "~/.i3/dmenu_search.sh w clipboard", mode "default"
     bindsym s exec --no-startup-id "~/.i3/dmenu_search.sh s clipboard", mode "default"
     bindsym i exec --no-startup-id "~/.i3/dmenu_search.sh i clipboard", mode "default"
     bindsym u exec --no-startup-id "~/.i3/dmenu_search.sh u clipboard", mode "default"
     bindsym h exec --no-startup-id "~/.i3/dmenu_search.sh h clipboard", mode "default"
 
     # exit system mode: "Enter" or "Escape"
     bindsym Return mode "default"
     bindsym Escape mode "default"
 }

Where the part called by $mod+Shift+s does not work as intended.
Is there a better way to force i3 to call the script with both arguments?

Thanks very much!

Last edited by MetalOn (2016-05-27 15:07:30)

Offline

#1397 2016-05-27 15:28:19

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,203

Re: The i3 thread

I have a sneaky feeling it is the comma after the char that defines the search engine.
My i3 config file has these lines:

bindsym XF86MonBrightnessDown exec backlight -d 200
bindsym XF86MonBrightnessUp exec backlight -i 200

That pass multiple parameters, and they work just fine.  There are another dozen or so commands bound that have multiple parameters as well


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#1398 2016-05-27 15:48:21

MetalOn
Member
Registered: 2016-05-27
Posts: 2

Re: The i3 thread

ewaller wrote:

I have a sneaky feeling it is the comma after the char that defines the search engine.
My i3 config file has these lines:

bindsym XF86MonBrightnessDown exec backlight -d 200
bindsym XF86MonBrightnessUp exec backlight -i 200

That pass multiple parameters, and they work just fine.  There are another dozen or so commands bound that have multiple parameters as well

Thanks for your answer! It's kind of weird, I tried removing the ',mode "default"' part, so there are no more commas, but it still does not work.
Removing the --no-startup-id part also does not help.
On the other hand, something like

 bindsym $mod+q exec --no-startup-id "~/.i3/dmenu_search.sh a clipboard"

works as intended

Offline

#1399 2016-07-07 06:56:19

cgo
Member
From: Paris, France
Registered: 2010-11-05
Posts: 22

Re: The i3 thread

Hi,
it feels like it's obvious, but I can't find in the docs/the internet how to send/pass/quote a shortcut that's captured by i3 as-is to a client window. ie I want to send CTRL-R to the client, but it's captured by i3 to resize the current window.
Thanks,
Charles

Offline

#1400 2016-07-07 07:02:49

bstaletic
Member
Registered: 2014-02-02
Posts: 658

Re: The i3 thread

cgo,

As far as I know, it's not possible and you'll have to work around it. Though I've not used i3 for a long time.

Offline

Board footer

Powered by FluxBB