User Tools

Site Tools


software:sway

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
software:sway [2019/11/07 08:36]
chris [TODO]
software:sway [2020/01/22 09:47] (current)
chris [Hanging menu]
Line 56: Line 56:
 A workspace in Sway is what I called "​virtual screen"​ in Window Maker. Regarding workspaces, I mostly go with the default config from Sway. I just added one detail: %%$mod+Left%% changes to the previous workspace, and %%$mod+Right%% to the next workspace. By default, one can with %%$mod+1%% jump to the first workspace, with %%$mod+2%% to the second workspace, and so on. So I added this in ~/​.config/​sway/​config:​ A workspace in Sway is what I called "​virtual screen"​ in Window Maker. Regarding workspaces, I mostly go with the default config from Sway. I just added one detail: %%$mod+Left%% changes to the previous workspace, and %%$mod+Right%% to the next workspace. By default, one can with %%$mod+1%% jump to the first workspace, with %%$mod+2%% to the second workspace, and so on. So I added this in ~/​.config/​sway/​config:​
 <​code>​ <​code>​
-    bindsym ​$mod+Left workspace prev +    bindsym ​Ctrl+Left workspace prev 
-    bindsym ​$mod+Right workspace next+    bindsym ​Ctrl+Right workspace next 
 +    bindsym Hangul_Hanja+Left workspace prev 
 +    bindsym Hangul_Hanja+Right workspace next
 </​code>​ </​code>​
-After trying to activate ​this with %%$mod+Shift+c%%, ​noticed that these 2 combinations were already configuredI removed ​the previous 2 configs from the fileas I do not use these. +The last 2 lines are for the "right CTRL key" on this keyboard here which bought in KoreaWhen running '​xev'​ and then pressing ​the key, one sees the identifier for the keyin my case '​Hangul_Hanja'​.
 ===== Locking the screen ===== ===== Locking the screen =====
 I have a habit of locking the screen when leaving the workplace, by pressing F9. Easy to implement: I have a habit of locking the screen when leaving the workplace, by pressing F9. Easy to implement:
Line 107: Line 108:
 ===== Custom statusbar ===== ===== Custom statusbar =====
 <​code>​ <​code>​
-dnf install -y python3-psutil fontawesome-fonts+dnf install -y python3-psutil ​python3-netiface ​fontawesome-fonts
 cd /opt cd /opt
 git clone git://​github.com/​tobi-wan-kenobi/​bumblebee-status git clone git://​github.com/​tobi-wan-kenobi/​bumblebee-status
Line 115: Line 116:
 into into
 status_command /​opt/​bumblebee-status/​bumblebee-status \ status_command /​opt/​bumblebee-status/​bumblebee-status \
-  -m cpu memory battery time pasink pasource sensors2 ​+  -m cpu memory ​sensors2 network_traffic ​battery time \ 
-  -p sensors2.showtemp=false sensors2.showcpu=false time.format="​%H:​%M"​ \+  -p sensors2.showtemp=false sensors2.showcpu=false ​
 +     time.format="​%H:​%M" memory.format="​{used}" \
   -t powerline   -t powerline
 </​code>​ </​code>​
Line 167: Line 169:
 fcitx-configtool fcitx-configtool
 </​code>​ </​code>​
 +
 +===== Screenshots =====
 +[[https://​github.com/​emersion/​grim|grim]] is not yet packaged..
 +<​code>​
 +sudo dnf install -y meson cairo-devel.x86_64 libwayland-client.x86_64 \
 +  wayland-devel.x86_64 wayland-protocols-devel.noarch \
 +  libjpeg-turbo-devel.x86_64
 +git clone https://​github.com/​emersion/​grim
 +cd grim
 +meson build
 +ninja -C build
 +
 +# lets take a screenshot
 +build/grim myscreenshot.jpg
 +</​code>​
 +
 +===== X11 apps forwarding via SSH =====
 +Logging into remote systems using i.e. 'ssh -Y rhel8u2b',​ and having on the remote system for example xauth and xterm installed, I can run xterm remotely and get it forwarded. $DISPLAY in the session is set to "​localhost:​10.0"​.
 +
 +===== Hanging menu =====
 +I have experienced haning menus: so after pressing %%$mod + D%%, the menu for running applications stays and can not be removed. In that case, "​killall dmenu" removed the menu, and %%$mod + Shift + c%% can reload the normal top bar.
  
 ===== Additional software ===== ===== Additional software =====
software/sway.1573112160.txt · Last modified: 2019/11/07 08:36 by chris