You are not logged in.

#1 2013-10-19 16:51:21

epic
Member
Registered: 2013-09-14
Posts: 6

i3 window manger & automount external hard disk / usb drive

Hi,
I using arch x86_64 with 3.11.5-1-ARCH #1 SMP PREEMPT kernel + i3 window manager + pcmanfm.
But i'm unable to automount my external hard disk or usb drive.(I have installed gvfs package as well.
Also is there any gui tool to configure keybinding? (something like obkey in openbox)

Please help.
Thank you.

Offline

#2 2013-10-19 16:58:05

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: i3 window manger & automount external hard disk / usb drive

epic wrote:

But i'm unable to automount my external hard disk or usb drive.(I have installed gvfs package as well.

What's the output of 'dmesg' when you plug the drive in? Is it being recognized? Can you mount it manually?


Please open another thread for the other issue.
https://wiki.archlinux.org/index.php/Fo … ow_to_Post

Forum Etiquette @ Arch Wiki wrote:

Choose one topic per thread.

Last edited by karol (2013-10-19 17:00:46)

Offline

#3 2013-10-19 17:01:18

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,804

Re: i3 window manger & automount external hard disk / usb drive

epic wrote:

Also is there any gui tool to configure keybinding? (something like obkey in openbox)

I think you need to look at https://wiki.archlinux.org/index.php/I3#Volume_Manager and the output of man i3

tl;dr - the ~/.i3/config file does it nicely.

Here is mine:

ewaller$@$odin ~ 1001 %cat .i3/config
# 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!

set $mod Mod4

# Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below. ISO 10646 = Unicode
#font -*-charter-medium-r-*-*-*-100-*-*-*-*-*-*
# The font above is very space-efficient, that is, it looks good, sharp and
# clear in small sizes. However, if you need a lot of unicode glyphs or
# right-to-left text rendering, you should instead use pango for rendering and
# chose a FreeType font, such as:
font pango:DejaVu Sans 8


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

# start a terminal
bindsym $mod+Return exec i3-sensible-terminal

# kill focused window
bindsym $mod+Shift+q kill

# start dmenu (a program launcher)
bindsym $mod+d exec dmenu_run
# There also is the (new) i3-dmenu-desktop which only displays applications
# shipping a .desktop file. It is a wrapper around dmenu, so you need that
# installed.
# bindsym $mod+d exec --no-startup-id i3-dmenu-desktop

# change focus
bindsym $mod+j focus left
bindsym $mod+k focus down
bindsym $mod+l focus up
bindsym $mod+semicolon focus right

# alternatively, you can use the cursor keys:
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+j move left
bindsym $mod+Shift+k move down
bindsym $mod+Shift+l move up
bindsym $mod+Shift+semicolon move right

# alternatively, you can use the cursor keys:
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right

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

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

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

# change container layout (stacked, tabbed, toggle split)
bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split

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

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

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

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

# 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

# move focused container to workspace
bindsym $mod+Shift+1 move container to workspace 1
bindsym $mod+Shift+2 move container to workspace 2
bindsym $mod+Shift+3 move container to workspace 3
bindsym $mod+Shift+4 move container to workspace 4
bindsym $mod+Shift+5 move container to workspace 5
bindsym $mod+Shift+6 move container to workspace 6
bindsym $mod+Shift+7 move container to workspace 7
bindsym $mod+Shift+8 move container to workspace 8
bindsym $mod+Shift+9 move container to workspace 9
bindsym $mod+Shift+0 move container to workspace 10

# 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

#bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'"

# 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 windows width.
        # Pressing right will grow the windows width.
        # Pressing up will shrink the windows height.
        # Pressing down will grow the windows height.
        bindsym j resize shrink width 10 px or 10 ppt
        bindsym k resize grow height 10 px or 10 ppt
        bindsym l resize shrink height 10 px or 10 ppt
        bindsym semicolon resize grow width 10 px or 10 ppt

        # same bindings, but for the arrow keys
        bindsym Left resize shrink width 10 px or 10 ppt
        bindsym Down resize grow height 10 px or 10 ppt
        bindsym Up resize shrink height 10 px or 10 ppt
        bindsym Right 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"


# Bindings for my HP Pavilion 

bindsym XF86AudioPlay exec mpc toggle
bindsym XF86AudioPrev exec mpc prev
bindsym XF86AudioNext exec mpc next
bindsym XF86AudioStop exec mpc stop
bindsym XF86AudioRaiseVolume exec pavolume increase
bindsym XF86AudioLowerVolume exec pavolume decrease
bindsym XF86AudioMute exec pavolume mute
bindsym XF86Save exec dmenu_run
bindsym $mod+x exec x48
bindsym $mod+Tab workspace next
bindsym $mod+Shift+Tab workspace prev
bindsym Mod1+Tab workspace next
bindsym $mod+Menu exec i3-winmenu.py

bindsym $mod+XF86Save exec gmrun
for_window [title="Execute program feat. completion"] floating enable' border none; focus mode_toggle
for_window [title="x48-0.6.4"] floating enable' border none; focus mode_toggle
for_window [title="Wicd Network Manager"] floating enable' border none; focus mode_toggle

# Float notifications

for_window [class="Xfce4-notifyd"] floating enable; border none; focus mode_toggle

# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
bar {
        status_command i3status
}

#exec --no-startup-id i3-msg 'workspace 2; exec firefox; workspace 1'
exec --no-startup-id i3-msg 'workspace 10; exec claws-mail; workspace 1'
exec --no-startup-id exec nitrogen --restore
exec --no-startup-id exec xcompmgr
exec --no-startup-id exec conky
exec --no-startup-id exec mpd
#exec --no-startup-id emacs
exec --no-startup-id exec wicd-gtk -t
ewaller$@$odin ~ 1002 %

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

#4 2013-10-19 18:40:09

teateawhy
Member
From: GER
Registered: 2012-03-05
Posts: 1,138
Website

Re: i3 window manger & automount external hard disk / usb drive

epic wrote:

i'm unable to automount my external hard disk or usb drive

Can you mount the drives from the commandline?

epic wrote:

Also is there any gui tool to configure keybinding?

No.

Offline

#5 2013-10-19 18:54:29

epic
Member
Registered: 2013-09-14
Posts: 6

Re: i3 window manger & automount external hard disk / usb drive

I also installed thunar file manger (thunar+gvfs sake) and got following errors

hunar-volman: Unsupported USB device type.
thunar-volman: Unsupported USB device type.
thunar-volman: Unknown block device type.
thunar-volman: Could not detect the volume corresponding to the device.

There's similar post(old one) viewtopic.php?id=111867&p=1 , but I cant make if it is resolved or not.
Is this because of some policykit issue ? (cause when I tried the full blown xfce install  :xfce4 xfce4-goodies slim) I was only able to mount external disk in read only mode (with all those padlocked icons).

In .xinitrc

exec dbus-launch  startxfce4

--> slim failed to execute login command  (without dbus it works )

Hope this helps, I'll post dmesg ouput soon  (also messed up nm-applet ,on different machine now)


ewaller wrote:

I think you need to look at https://wiki.archlinux.org/index.php/I3#Volume_Manager and the output of man i3

tl;dr - the ~/.i3/config file does it nicely.

Here is mine:

There are many overlapping keybinds ( I was thinking of writing  it from scratch)
Thank you for sharing your config file (great u also hav multimedia keybindings big_smile). Tiling window managers are kinda new to me (After reading this postthought I should give it a try, always gave up on  awesome wm and quickly switched back to openbox).


Thanks.

Offline

#6 2013-10-19 19:30:43

epic
Member
Registered: 2013-09-14
Posts: 6

Re: i3 window manger & automount external hard disk / usb drive

Update:

karol wrote:

What's the output of 'dmesg' when you plug the drive in? Is it being recognized? Can you mount it manually?

[ 259.940145] usb 5-1: new high-speed USB device number 2 using ehci-pci
[  260.504535] usb-storage 5-1:1.0: USB Mass Storage device detected
[  260.504619] scsi4 : usb-storage 5-1:1.0
[  260.504711] usbcore: registered new interface driver usb-storage
[  261.507849] scsi 4:0:0:0: Direct-Access     Seagate  Expansion        0219 PQ: 0 ANSI: 6
[epic@machine ~]$ 
teateawhy wrote:

Can you mount the drives from the commandline?

And yes I'm able to mount external drive but in read only mode.

karol wrote:

Please open another thread for the other issue.
https://wiki.archlinux.org/index.php/Fo … ow_to_Post

Sorry, I was kinda desparate to resolve these errors. (Keybindings were messed up, Internet wasnt working and couldnt copy error messages to a external drive).
Internet is working now and keybindings are much better big_smile

@teateawhy archinstaller.sh if only I had see this earlier. Can you include the system-restore option in your script? I would definitely use it. big_smile

Last edited by epic (2013-10-19 19:46:28)

Offline

Board footer

Powered by FluxBB