2019년 10월 26일 토요일

gnome + lightdm + screen lock

For those folks who aren't able to use GDM3 due to various reasons (say, this bug) and switched to LigthDM there is a command we can use to lock the screen(possibly it could work with other DM too, I haven't checked though) :
dm-tool lock
To make it more convenient go to settings -> Keyboard -> Scroll to the bottom -> Click "+" button -> Create new custom shortcut using the command above like this.
enter image description here
To use Super+L combination you probably have to reassign existing system Lock screen shortcut to some other combination.


https://unix.stackexchange.com/questions/86221/how-can-i-lock-my-screen-in-gnome-3-without-gdm

2019년 10월 19일 토요일

fcitx + zsh + swaywm

in .zshrc

export GTK_IM_MODULE="fcitx"
export QT_IM_MODULE="fcitx"
export QT4_IM_MODULE="fcitx"
export XMODIFIERS="@im=fcitx"

in .config/sway/config

exec fcitx -r

https://github.com/helionmelion/sway-fcitx-workaround
https://teqnograf.blogspot.com/2019/03/manjaro-fcitx.html

2019년 10월 3일 목요일

ibus + zsh

sway 에서 가끔 죽음(-> 귀찮음)
https://www.reddit.com/r/swaywm/comments/djkj5m/ibus_on_swaywm/

.zshrc

export GTK_IM_MODULE="ibus"
export QT_IM_MODULE="ibus"
export QT4_IM_MODULE="ibus"
export XMODIFIERS="@im=ibus"
ibus-daemon &

swaywm

* install
   swaylock swayidle swaybg sway wdisplays-git
   otf-font-awesome sgtk-menu kanshi alacritty termite i3status-rust-bin wofi

* config
  cp /etc/sway/config  ~/.config/sway/
  cp /etc/wdg/waybar/* ~/.config/waybar

* sway_config
  https://wiki.archlinux.org/index.php/Sway
  https://wiki.archlinux.org/index.php/Firefox#Wayland
  https://wiki.archlinux.org/index.php/Wayland#GUI_libraries

  # input tap
input "1267:51:Elan_TrackPoint" {
    events disabled
}

input "1267:51:Elan_Touchpad" {
    tap enabled
    natural_scroll enabled
}

   set $xterm alacritty   output eDP-1 scale 1.3

#Tip
* disable monitor
    sway output eDP-1 disable 
* automatic monitor detection
    kanshi 
* manually change scale
   sway output eDP-1 enable scale 2 
 
#CONS
* ghex, gimp does not work correctly(search dialog) 
* ibus does not start properly(sometimes)
 https://www.reddit.com/r/swaywm/comments/djkj5m/ibus_on_swaywm/
* laptop does not sleep when lid is closed(maybe not?)
* swaywm/workspaces crashes after suspend/resume 
 * restart sway using keyboard super+shift+c 
* kime does not work properly? 

via permission error linux chrome

 https://bbs.archlinux.org/viewtopic.php?id=285709