!HHwUGhuacLZjXGCBsu:matrix.org

Sway

492 Members
i3-compatible Wayland compositor https://swaywm.org/83 Servers

Load older messages


SenderMessageTime
31 Jan 2023
@aryak:projectsegfau.ltArya [projectsegfau.lt]is it possible to disable middle key clipboard in sway?12:09:31
@aryak:projectsegfau.ltArya [projectsegfau.lt] * is it possible to disable middle click clipboard in sway?12:09:48
@dortveg:matrix.orgdortvegIn your config, did you try: input <input> middle_emulation disabled14:31:42
@caua:matrix.orgCauΓ£2023-01-31-141658.png
Download 2023-01-31-141658.png
17:17:20
@dortveg:matrix.orgdortvegDoes anyone know if its possible to have your waybar dynamically change position based on whether or not an external display is plugged in?? My current setup is a laptop hooked up to a monitor thats stacked on top. My waybar is typically set at the top of my external monitor only. Problem is whenever its not plugged in, I have no bar at all on my laptop and have to manually change the config and reload the bar.18:57:25
@tomodachi:matrix.orgtomodachihmm not sure but i display my waybar on all monitors21:48:14
@tomodachi:matrix.orgtomodachiperhaps that's an option for you?21:48:20
@dortveg:matrix.orgdortvegEh, thats exactly what I'm trying to avoid actually πŸ˜‚. Any solutions that came up on google however was pretty much that or choosing one display at a time. 23:09:49
@penaiple:matrix.thisisjoes.sitepenaiple how can i change my keyboard layout using commands or custom keybinds? 23:17:39
@penaiple:matrix.thisisjoes.sitepenaiple im using grp:alt_space_toggle because mod+space is taken, but i'd like a custom keybind (like mod+shift+t) 23:18:55
1 Feb 2023
@novorol:matrix.orgnovorolhow to set up hotplugging of multiple displays?01:06:48
@novorol:matrix.orgnovorol
In reply to @penaiple:matrix.thisisjoes.site
how can i change my keyboard layout using commands or custom keybinds?
you can map it to sed on your sway config file + swaymsg reload
01:08:52
@penaiple:matrix.thisisjoes.sitepenaiple
In reply to @novorol:matrix.org
how to set up hotplugging of multiple displays?
kanshi
15:01:27
@penaiple:matrix.thisisjoes.sitepenaiple
In reply to @novorol:matrix.org
you can map it to sed on your sway config file + swaymsg reload
what do you mean?
15:01:39
@aryak:projectsegfau.ltArya [projectsegfau.lt]bind it to swaymsg15:07:36
@aryak:projectsegfau.ltArya [projectsegfau.lt]and then the keybinding command15:07:41
@penaiple:matrix.thisisjoes.sitepenaiple yeah but what command do i use to switch layouts 18:48:08
2 Feb 2023
@parsa:tchncs.deπ™ΏπšŠπš›πšœπšŠ 𝚁. changed their profile picture.07:24:45
@novorol:matrix.orgnovorol
In reply to@penaiple:matrix.thisisjoes.site
In reply to @novorol:matrix.org
you can map it to sed on your sway config file + swaymsg reload
what do you mean?
write a oneliner script where sed replaces the name of the layout of your config file, where the layout names are stored in an array (so you basically just iterate over the array elements). I believe you can use swaynag to then prompt for confirmation and reload your config or just do it without confirmation you can also add notify-send to display the new layout's name
20:30:14
@novorol:matrix.orgnovorollike so:20:45:07
@novorol:matrix.orgnovorol
20:45:09
@novorol:matrix.orgnovorolRedacted or Malformed Event20:45:13
@novorol:matrix.orgnovorol* #!/bin/bashlayouts=("en-US" "de-DE" "colemak")config="$HOME/.config/sway/config"#cycle through layouts, start the index with the current layout in config filefor i in layouts; do if grep -q "$i" "$config"; then break fi #replace layout in config file with next layout in arraysed -i "s/${layouts[$i]}/${layouts[$((i+1))]}/g" "$config"notify-send "Switching to layout: $i" doneswaymsg reload20:45:38
@novorol:matrix.orgnovorol* #!/bin/bashlayouts=("en-US" "de-DE" "colemak")config="$HOME/.config/sway/config"#cycle through layouts, start the index with the current layout in config filefor i in layouts; do if grep -q "$i" "$config"; then break fi #replace layout in config file with next layout in arraysed -i "s/${layouts[$i]}/${layouts[$((i+1))]}/g" "$config"notify-send "Switching to layout: $i" doneswaymsg reload20:45:49
@novorol:matrix.orgnovorol* #!/bin/bashlayouts=("en-US" "de-DE" "colemak")config="$HOME/.config/sway/config"#cycle through layouts, start the index with the current layout in config filefor i in layouts; do if grep -q "$i" "$config"; then break fi #replace layout in config file with next layout in arraysed -i "s/${layouts[$i]}/${layouts[$((i+1))]}/g" "$config"notify-send "Switching to layout: $i" doneswaymsg reload20:46:06
@novorol:matrix.orgnovorol
20:46:25
@novorol:matrix.orgnovorol
#!/bin/bash

layouts=("en-US" "de-DE" "colemak")
config="$HOME/.config/sway/config"
#cycle through layouts, start the index with the current layout in config file
for i in layouts; do
    if grep -q "$i" "$config"; then
      break
   fi
#replace layout in config file with next layout in array
   sed -i "s/${layouts[$i]}/${layouts[$((i+1))]}/g" "$config"
   notify-send "Switching to layout: $i"

done

swaymsg reload
20:50:45
@novorol:matrix.orgnovorolif it doesn't work try moving the last 2 lines out of the loop or storing the current layout as a new variable inside the if statement20:52:13
@novorol:matrix.orgnovorol you can also use grep -qw if your layouts may be substrings (like 2 chars long) 20:57:07
@novorol:matrix.orgnovoroland of course back up your config first20:58:06

There are no newer messages yet.


Back to Room List