Help setting up keyboard shortcut to switch between audio-devices in i3

Hello,

I’m currently setting up i3 for the first time. I see that I have “Pulseaudio Preferences” that I can go into to jump between my headphones and my speakers. However, I’m wondering if it would be possible in the i3 config to instead create a keyboard shortcut where I can just switch between them. Preferably something like mod+m to jump between them so I don’t have to use two different keyboard shortcuts. Is this possible?

Thanks in advance!

DuckDuckGo is your friend :smiley:
https://faq.i3wm.org/question/1679/toggle-i3s-listening-behavior/index.html%3Fanswer=1681.html

Summary

i3 Reference Card
[Search domain i3wm.org/docs/refcard.html] https://i3wm.org/docs/refcard.html
Look at the “Resizing containers / windows” section of the user guide. Changing the container layout + e
i3 (window manager) keyboard shortcuts ‒ defkey
[Search domain defkey.com/i3-window-manager-shortcuts] https://defkey.com/i3-window-manager-shortcuts
Toggle focus mode Moving windows (4 shortcuts) … Web page: i3wm.org. Last update: 25 Dec 2019. Shortcut count: 27 How easy to press shortcuts: 63%. Platform detected: Windows or Linux (not macOS) Featured shortcut. Alt + D. Open application launcher (dmenu). Similar programs. League of Legends …
i3: i3 User’s Guide
[Search domain i3wm.org/docs/userguide.html] https://i3wm.org/docs/userguide.html
The toggle option will toggle the orientation of the split container if it contains a single window. Otherwise it makes the current window a split container with opposite orientation compared to the parent container. Use layout toggle split to change the layout of any
Toggle i3’s Listening Behavior - i3 FAQ
[Search domain faq.i3wm.org/question/1679/toggle-i3s-listening-behavior/index.html?answer=1681.html] https://faq.i3wm.org/question/1679/toggle-i3s-listening-behavior/index.html?answer=1681.html
I was wondering if it would be possible to create a keybinding that would toggle on/off all of i3’s keybindings (except the same toggle key)? The reason I am asking is that I think this would be a good way to implement a sort of “video game mode” where you wouldn’t need to worry about your i3 keybindings clobbering those of the application. The most ideal situation would be the ability to add …
r/i3wm - Switching keyboard layout with win_space _toggle …
[Search domain www.reddit.com/r/i3wm/comments/hew73c/switching_keyboard_layout_with_win_space_toggle/] https://www.reddit.com/r/i3wm/comments/hew73c/switching_keyboard_layout_with_win_space_toggle/
I like to switch keyboard layouts with win+space. That’s easy enough, setxkbmap -layout us,gr -option -option grp:win_space_toggle. Unfortunately, that apparently means that X handles win+space, and doesn’t let i3 know. Which would be fine if it only handled win+space. But win+space isn’t enough apparently, as it also eats every combination …
i3 - improved tiling wm
[Search domain i3wm.org/docs/] https://i3wm.org/docs/
i3wm T-shirts (2013-12, by Stefan) Where and how to order official i3 T-shirts. Switch to workspaces on the current output (2014-08, by captnfab) When switching workspaces, i3 sets focus to the output of the target workspace. With the script that is presented in this article, you always stay on the same output, and instead the workspace is moved.
How to use FancyZones, Windows 10’s new tiling window …
[Search domain www.onmsft.com/how-to/how-to-use-fancyzones-windows-10s-new-tiling-window-manager] https://www.onmsft.com/how-to/how-to-use-fancyzones-windows-10s-new-tiling-window-manager
The initial release comes with just two modules, a shortcut key guide and FancyZones. We’ve already covered the former, … Make sure FancyZones’ toggle button is turned on. Next, click the …
My i3 shortcuts Cheat Sheet by evilinfu - Download free …
[Search domain cheatography.com/evilinfu/cheat-sheets/my-i3-shortcuts/] https://cheatography.com/evilinfu/cheat-sheets/my-i3-shortcuts/
My shortcuts in i3wm. Basics. Super (Win-key) Run dmenu. M (Modifier, left Alt) Show i3bar. Focusing. M-<­Arr­ow> Change focused window. M-p. Focus parent container. Additional. M-f. Fullscreen (Toggle) M-l. Floating (Toggle) Splitting Modes. M-v. Vertical Layout. M-h. Horizontal Layout. M-d. Tabbed Layout. M-c. Layout Switch. System. M-S-e …
i3
[Search domain i3wm.org] https://i3wm.org
i3 is a tiling window manager, completely written from scratch.The target platforms are GNU/Linux and BSD operating systems, our code is Free and Open Source Software (FOSS) under the BSD license. i3 is primarily targeted at advanced users and developers.
Your Guide to a Practical Linux Desktop With i3WM
[Search domain www.devpy.me/your-guide-to-a-practical-linux-desktop-with-i3wm/] https://www.devpy.me/your-guide-to-a-practical-linux-desktop-with-i3wm/
Your Guide to a Practical Linux Desktop With i3WM. Robert Washbourne - 3 years ago - desktop environments. Technically, what you see in my screenshot above is not really i3. The distance between the windows and the screen edges is from a fork of i3, dubbed i3-gaps, created by Ingo Bürk.Also, the bar is an alternative to i3bar, which I will go over later in the list of bars for i3.
Keyboard layout toggle : i3wm
[Search domain www.reddit.com/r/i3wm/comments/a7cbrh/keyboard_layout_toggle/] https://www.reddit.com/r/i3wm/comments/a7cbrh/keyboard_layout_toggle/
Press question mark to learn the rest of the keyboard shortcuts. r/i3wm. log in sign up. User account menu. 4. Keyboard layout toggle. Question. Close. 4. Posted by u/[deleted] 1 year ago. Archived. Keyboard layout toggle. Question. Hey folks. Just started using i3 a couple of days ago. I vastly prefer the US keyboard layout for anything …
I am resigning from active moderation on /r/i3wm. : i3wm
[Search domain www.reddit.com/r/i3wm/comments/8fxuca/i_am_resigning_from_active_moderation_on_ri3wm/] https://www.reddit.com/r/i3wm/comments/8fxuca/i_am_resigning_from_active_moderation_on_ri3wm/
I already consider this the fault of OP because frankly, to me, it’s a sign of laziness, but let’s ignore that for the moment. So I decided to help newcomers by making rules stick out more. Nowadays, if you come to r/i3wm and open a thread, you have a total of five places where you are asked to read the rules, two of which are dominant red boxes.
Regolith Linux is the i3 Ubuntu Spin You’ve Been Waiting For
[Search domain www.omgubuntu.co.uk/2019/06/install-regolith-linux-i3-gaps-ubuntu] https://www.omgubuntu.co.uk/2019/06/install-regolith-linux-i3-gaps-ubuntu
The idea is that you use keyboard shortcuts to move, manage and arrange open apps and windows (though you can use a mouse too). A typical i3 desktop looks like this: Image: i3wm.org
Other - i3wm floating sticky window perfect for video …
[Search domain forums.freebsd.org/threads/i3wm-floating-sticky-window-perfect-for-video.70790/] https://forums.freebsd.org/threads/i3wm-floating-sticky-window-perfect-for-video.70790/
i3wm is a tiling window manager which has the ability to create floating sticky windows, which will remain visible when you switch workspaces This allows you to have a floating sticky window containing a video player like mpv, which will remain visible when you switch workspaces.
shortcut keys - How can I adjust the screen brightness in …
[Search domain askubuntu.com/questions/1060147/how-can-i-adjust-the-screen-brightness-in-i3wm-on-ubuntu-16-04] https://askubuntu.com/questions/1060147/how-can-i-adjust-the-screen-brightness-in-i3wm-on-ubuntu-16-04
This is an old question, but an answer may help out others. I ran into an issue upon a fresh installation of i3wm on my laptop where, for whatever reason, my XF86MonBrightnessUp/Down keys weren’t being registered (I checked with xev).What I ended up doing is creating acpi actions and events which corresponded to the keys being pressed… The following are the actions/events I defined in /etc …
5 reasons the i3 window manager makes Linux better …
[Search domain opensource.com/article/18/8/i3-tiling-window-manager] https://opensource.com/article/18/8/i3-tiling-window-manager
I3 makes extensive use of keyboard shortcuts to control different aspects of your environment. These include opening the terminal and other programs, resizing and positioning windows, changing layouts, and even exiting i3. When you start using i3, you need to memorize a few of those shortcuts to get around and, with time, you’ll use more of them.
i3wm cheat sheet - Linux Toko
[Search domain linuxtoko.com/i3wm-cheat-sheet/] https://linuxtoko.com/i3wm-cheat-sheet/
Shortcut Use $mod Enter: Open new Terminal $mod ( j / ← ) Focus left $mod ( k / ↓ ) Focus down $mod ( l / ↑ ) Focus up $mod ( ; / → ) Focus right
i3 | sticky toggle | Hide from workspace? : i3wm
[Search domain www.reddit.com/r/i3wm/comments/blry0d/i3_sticky_toggle_hide_from_workspace/] https://www.reddit.com/r/i3wm/comments/blry0d/i3_sticky_toggle_hide_from_workspace/
r/i3wm: Official FAQ subreddit for the i3 window manager and its popular fork i3-gaps. Press J to jump to the feed. Press question mark to learn the rest of the keyboard shortcuts
i3: i3 User’s Guide
[Search domain i3wm.org/docs/4.0/userguide.html] https://i3wm.org/docs/4.0/userguide.html
To move the focus between the two terminals, you can use the direction keys which you may know from the editor vi.However, in i3, your homerow is used for these keys (in vi, the keys are shifted to the left by one for compatibility with most keyboard layouts).Therefore, mod+J is left, mod+K is down, mod+L is up and mod+; is right. So, to switch between the terminals, use mod+K or mod+L.
layout toggle split tabbed doesn’t work. : i3wm
[Search domain www.reddit.com/r/i3wm/comments/7n1pw0/layout_toggle_split_tabbed_doesnt_work/] https://www.reddit.com/r/i3wm/comments/7n1pw0/layout_toggle_split_tabbed_doesnt_work/
Hello all. I’m very new to Arch and i3wm so I don’t know if I’ve tried everything. I have an Arch + i3wm setup with a laptop and two external monitors. The way I use my laptop is similar to a desktop, I close the lid and use a dual monitor setup with an external keyboard and mouse.
Getting started with the i3 tiling window manager - Fedora …
[Search domain fedoramagazine.org/getting-started-i3-window-manager/] https://fedoramagazine.org/getting-started-i3-window-manager/
Some are full desktop environments like Cinnamon and KDE Plasma, to minimal window managers like OpenBox, Fluxbox, and i3wm (often shortened to just i3). Overview of i3. In this post, we will cover the i3 tiling window manager, a relatively new option for your desktop. … Create your own shortcuts.
i3wm cheat sheet -| bsdnerds.org
[Search domain bsdnerds.org/i3wm-cheat-sheet/] https://bsdnerds.org/i3wm-cheat-sheet/
Tiling window manager for GNU/Linux and BSD i3 shortcuts
Super key (“The Windows Key”) not working in i3wm in 14.04 …
[Search domain askubuntu.com/questions/557029/super-key-the-windows-key-not-working-in-i3wm-in-14-04-1-lts] https://askubuntu.com/questions/557029/super-key-the-windows-key-not-working-in-i3wm-in-14-04-1-lts
If xev isn’t displaying anything when you press the key, make sure your keyboard isn’t in a “gaming mode”. I ran into this with a Logitech G710+. The button to toggle the mode looks like a little joystick and apparently one thing it does is disable the “Windows key”.
Using i3 with multiple monitors - Fedora Magazine
[Search domain fedoramagazine.org/using-i3-with-multiple-monitors/] https://fedoramagazine.org/using-i3-with-multiple-monitors/
To create a custom shortcut, you’ll need to open the configuration file in a text editor of your choice (this article uses vim): $ vim ~/.config/i3/config. … The original article 3 years ago made me switch to i3wm. I have discovered how to use multiple screen just a few days ago. I wish this article were published a week earlier :slightly_smiling_face:
How to toggle keyboard layout in i3wm? - Applications …
[Search domain forum.manjaro.org/t/how-to-toggle-keyboard-layout-in-i3wm/34939] https://forum.manjaro.org/t/how-to-toggle-keyboard-layout-in-i3wm/34939
I am using Manjaro 17.0.6 XFCE with i3wm. I have two keyboard layouts in xfce4-keyboard-settings and I was able to toggle between them in XFCE but, in i3wm the shortcut key does not work. Any ideas?
Feeble Nerd: Xubuntu with i3 Tiling Windows Walkthrough
[Search domain feeblenerd.blogspot.com/2015/11/pretty-i3-with-xfce.html] https://feeblenerd.blogspot.com/2015/11/pretty-i3-with-xfce.html
Disabling the shortcuts here is about letting i3 take over in this regard, utilizing the i3 config file. Although my general philosophy is to avoid getting technical wherever possible (ie: avoid using a config file when a GUI is available), managing keyboard shortcuts through the i3 config file is inevitable if you want to use i3 at all.
How to customise your Linux desktop: Kali Linux and i3 …
[Search domain www.zdnet.com/article/how-to-customise-your-linux-desktop-kali-linux-and-i3-window-manager/] https://www.zdnet.com/article/how-to-customise-your-linux-desktop-kali-linux-and-i3-window-manager/
Kali Linux Terminal Window. So all we need to do here is press Mod-Enter, and a terminal window opens.Oh, good grief! Even that is as ugly as sin. I don’t want the window manager to add a title …
i3 wm - Layout switching with a variant in i3wm - Ask Ubuntu
[Search domain askubuntu.com/questions/1071328/layout-switching-with-a-variant-in-i3wm] https://askubuntu.com/questions/1071328/layout-switching-with-a-variant-in-i3wm
exec --no-startup-id “setxkbmap -layout us, bd -variant probhat” exec --no-startup-id “setxkbmap -option ‘grp:rwin_toggle’” But it doesn’t work. I restarted in order for the new settings to take effect. I found the variant name using this: localectl list-x11-keymap-variants bd I would like to use the right win key as the layout switcher shortcut.
i3 wm - Copy & Paste between terminal(s) and application …
[Search domain askubuntu.com/questions/353914/copy-paste-between-terminals-and-application-windows-in-i3] https://askubuntu.com/questions/353914/copy-paste-between-terminals-and-application-windows-in-i3
For i3wm, try using a clipboard manager, like clipit. sudo apt-get update sudo apt-get install clipit Add exec --no-startup-id clipit to ~/.i3/config to start it automatically.
i3wm Config File - Bottle Nix
[Search domain bottlenix.wikidot.com/i3wm-config-file] bottlenix.wikidot.com/i3wm-config-file
i3wm Config File Here is my current i3wm … orientation bindsym Mod1+v split v # enter fullscreen mode for the focused container bindsym Mod1+f fullscreen toggle # change container layout (stacked, tabbed, toggle split) bindsym Mod1+s layout stacking bindsym Mod1+w layout tabbed bindsym Mod1+e layout toggle split # toggle tiling / floating …

2 Likes

Ah, yeah, that solves the toggle part! Though I sadly don’t know how to swtich between audio-devices either. :frowning: I googling and found some stuff about switching sink, but I didn’t really get that to work. I will google some more! Thanks for helping me solve the first issue! :slight_smile:

1 Like

Found the answer I believe! https://askubuntu.com/questions/14077/how-can-i-change-the-default-audio-device-from-command-line
Just need to change the config as well for “hot-reloading”.

Thanks for the help!

1 Like