You are not logged in.
i use a custom mode....
cool any chance I can see your config please ?
ROG Strix (GD30CI) - Intel Core i5-7400 CPU - 32Gb 2400Mhz - GTX1070 8GB - AwesomeWM (occasionally XFCE, i3)
If everything in life was easy, we would learn nothing!
Linux User: 401820 Steam-HearThis.at-Last FM-Reddit
Offline
Should look like:
# exit mode
mode "(E)xit, (R)eboot, (P)oweroff" {
bindsym r exec systemctl reboot
bindsym e exit
bindsym p exec systemctl poweroff
# back to normal: Enter or Escape
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+Shift+e mode "(E)xit, (R)eboot, (P)oweroff"
Offline
Should look like:
# exit mode
mode "(E)xit, (R)eboot, (P)oweroff" {
bindsym r exec systemctl reboot
bindsym e exit
bindsym p exec systemctl poweroff# back to normal: Enter or Escape
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+Shift+e mode "(E)xit, (R)eboot, (P)oweroff"
thank you
ROG Strix (GD30CI) - Intel Core i5-7400 CPU - 32Gb 2400Mhz - GTX1070 8GB - AwesomeWM (occasionally XFCE, i3)
If everything in life was easy, we would learn nothing!
Linux User: 401820 Steam-HearThis.at-Last FM-Reddit
Offline
I'm new to tiling window managers, decided to try i3 on my desktop PC and I'm very pleased with it. There are only two things I'm not yet completely happy with:
1) Dual monitor setup. I have two monitors: VGA-0 (1280x1024) and DVI-0 (1440x900). What I want is:
- DVI-0 as my primary monitor.
- VGA-0 as my secondary monitor, to the left of DVI-0.
- Status bar displayed ONLY on DVI-0.
By default, VGA-0 is set as my main monitor, and DVI-0 mirrors it, so I tried this configuration of bar and xrandr inside ~/.i3/config:
# Set DVI-0 as main monitor
exec --no-startup-id xrandr --output DVI-0 --primary
# Set DVI-0 native resolution. Also tried with --auto instead of --mode 1440x900, and removing entirely this line.
exec --no-startup-id xrandr --output DVI-0 --mode 1440x900
# Set VGA-0 as secondary monitor to the left of DVI-0
exec --no-startup-id xrandr --output VGA-0 --auto --left-of DVI-0
# Display status bar only on DVI-0
bar {
output DVI-0
status_command i3status
}
This doesn't work as expected, and causes some random problems. With this configuration, sometimes a somehow broken status bar is displayed also on the VGA-0 panel, sometimes DVI-0 resolution is not properly set, sometimes it's mirrored. It looks like xrandr doesn't work as expected when called on i3 startup, and somehow it also causes problems with the status bar. I have a workaround for this problem. If I set a command like this: "bindsym $mod+x exec --no-startup-id xrandr --output DVI-0 --auto --right-of VGA-0
" and input the key combination, then both monitors and the status bar behave as expected. Weird.
2) Is there a fast and easy way to launch wine applications? dmenu works great for native applications, but for me having to cd ~/.wine/dosdevices/c\:/Program\ Files/AppDir and then wine APP.EXE is annoying (and time consuming).
Offline
2) Is there a fast and easy way to launch wine applications? dmenu works great for native applications, but for me having to cd ~/.wine/dosdevices/c\:/Program\ Files/AppDir and then wine APP.EXE is annoying (and time consuming).
create a .desktop file which runs the wine app in:
~/.local/share/applications
example:
#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Name=Torchlight2
Exec=env WINEARCH=win32 WINEPREFIX="/home/t0m5k1/.local/share/wineprefixes/TL2" wine "C:\Program Files\Torchlight 2\Torchlight2.exe" -dsound
Terminal=false
Icon=path/to/icon.png
Type=Application
Categories=Games;RPG
Name[en_GB.UTF-8]=Torchlight2
ROG Strix (GD30CI) - Intel Core i5-7400 CPU - 32Gb 2400Mhz - GTX1070 8GB - AwesomeWM (occasionally XFCE, i3)
If everything in life was easy, we would learn nothing!
Linux User: 401820 Steam-HearThis.at-Last FM-Reddit
Offline
Thanks for the quick reply. I have already a bunch of .desktop files for wine programs under .local/share/applications/wine/Programs, pretty similar to the one you posted. I used XFCE before and I could launch them without problem from XFCE menu.
Just in case, I have tried symlinking e.g. ~/.local/share/applications/tg-win.desktop to "~/.local/share/applications/wine/Programs/Telegram Win (Unofficial)/Telegram.desktop", but that didn't help, I don't know how to open it from dmenu (or other fast/easy way).
Offline
Thanks for the quick reply. I have already a bunch of .desktop files for wine programs under .local/share/applications/wine/Programs, pretty similar to the one you posted. I used XFCE before and I could launch them without problem from XFCE menu.
Just in case, I have tried symlinking e.g. ~/.local/share/applications/tg-win.desktop to "~/.local/share/applications/wine/Programs/Telegram Win (Unofficial)/Telegram.desktop", but that didn't help, I don't know how to open it from dmenu (or other fast/easy way).
I use j4-dmenu-desktop in place of dmenu and it finds my .desktop files/all my wine installed programs
Offline
That works like a charm, thanks!
Now I only have problems with xrandr
Offline
This doesn't work as expected, and causes some random problems. With this configuration, sometimes a somehow broken status bar is displayed also on the VGA-0 panel, sometimes DVI-0 resolution is not properly set, sometimes it's mirrored. It looks like xrandr doesn't work as expected when called on i3 startup, and somehow it also causes problems with the status bar. I have a workaround for this problem. If I set a command like this: "bindsym $mod+x exec --no-startup-id xrandr --output DVI-0 --auto --right-of VGA-0
" and input the key combination, then both monitors and the status bar behave as expected. Weird.
I'm not always the best one to answer... but I am able to set up xrandr in i3 without issues with my laptop... my suggestion is to not put the xrandr command in .i3/config.
try running it in ~/.xinitrc just dont forget the && at the end for example:
xrandr --output DVI-0 --auto --right-of VGA-0 &&
put that on the top line
I may be way off but that is how i set up my dual moniters... you should also be able to set primary moniter there and then place the bar on either screen you want from the i3 config
Offline
Added:
xrandr --output DVI-0 --primary --auto --right-of VGA-0 &&
before the exec i3 line and now both monitors are working perfect. Thanks!!!
Offline
good... you really only need one & i was thinking in C++ at that momment and i apologize for that.
Offline
No problem, and again, thanks!
Offline
So, I did away with my i3status bar... Im rather happy with it gone ... however the ability to have a clock handy was nice ... for now i have the time stamps on my terminal was curious if anyone knows a solution to the clock thing... I know conky would require a bar and that would make this meaningless. Perhaps I need to adjust to it since I cannot think of an alternative and would rather not the bar.
Offline
There is a default hotkey to toggle the i3bar. I know someone who has it hidden on start and then just toggles it when he wants to see system stats, time, workspace, etc
Offline
Well, yea I know I could hide the bar... I just find it to be a clutter of things and even toggling it on off ... I dunno call it personal taste I just find it better without one... short of using a clock app which i would have to open I guess I will just use the time stamp on the terminal for now. Maybe my vision of a great ui will morph again later but as I stated above I'd rather do away with the bar. Thanks for your input though WonderWoofy it's appreciated.
Offline
Well, yea I know I could hide the bar... I just find it to be a clutter of things and even toggling it on off ... I dunno call it personal taste I just find it better without one... short of using a clock app which i would have to open I guess I will just use the time stamp on the terminal for now. Maybe my vision of a great ui will morph again later but as I stated above I'd rather do away with the bar. Thanks for your input though WonderWoofy it's appreciated.
You could run a notification-daemon like dunst and keybind a simple script with notify-send and date.
| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |
Offline
Or use the clock in ncmpcpp... Listen to some tunes and know what time it is! \m/
Offline
Why not just hide bar and then show it when you hit $mod key [ooops just read WonderWoofys post!]
It is one of the only reason I have bar is for clock...
Last edited by Mr Green (2014-03-19 08:20:17)
Mr Green
Offline
Not really the technical solution you all are waiting, but if the only thing you miss is the clock, just buy a desktop clock and put it near your monitor. I have one of these on my table:
Offline
VanillaFunk wrote:Well, yea I know I could hide the bar... I just find it to be a clutter of things and even toggling it on off ... I dunno call it personal taste I just find it better without one... short of using a clock app which i would have to open I guess I will just use the time stamp on the terminal for now. Maybe my vision of a great ui will morph again later but as I stated above I'd rather do away with the bar. Thanks for your input though WonderWoofy it's appreciated.
You could run a notification-daemon like dunst and keybind a simple script with notify-send and date.
Thanks. This may be the best alternative.
@jasonwryan wouldnt be a bad idea as well
Offline
There is a default hotkey to toggle the i3bar. I know someone who has it hidden on start and then just toggles it when he wants to see system stats, time, workspace, etc
Mod + f -- toggles full screen. I use a workspace bar with conky in that bar and use Mod + f on certain desktops
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
Offline
I have Conky running with a clock. I use Mod - down arrow to workspace focus down to show the desktop. After reading the stuff in Conky, imposed over my lovely wall paper, I recover by selecting a workspace.
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
The problem for me Mr. Green is I am ocd and dont like seeing the bar everytime i $mod+key+combo or when I was placeing windows up into corners etc... it has been more a nuiscnece than a benifit... but as I mentioned... I can set it up again if I find I miss it... the beauty of i3 / arch / linux choice
-- added --
Ewaller maybe your solution would work for me I'll have to go look into setting conky over my wallpaper see if I can do that in a manner that is apealing. In awesome it became a window and thus would be tiled... sounds like you found a way around that. I'll try some things and ask if I get really stuck
Last edited by VanillaFunk (2014-03-19 15:51:56)
Offline
Bar can easily be disabled in config
bar {
mode invisible
hidden_state hide
font xft: Sans 8
tray_output none
# status_command i3status -c ~/.i3/i3status.conf
# status_command /home/mrgreen/.i3/mystatus
}
Hopefully I have read docs right, $mod does not wake bar at all....
Mr Green
Offline