*ALWAYS UNDER CONSTRUCTION*

Awesome WM 사용하기

created:
updated:

여태 i3wm을 사용하다가 최근 awesome WM[↗] 을 사용하기 시작 했다.

awesome은 극도로 간단한 WM으로 유명한 dwm의 fork인 WM으로, Lua 통해 커스터마이징을 지원한다.

Desktop Environment

awesome을 사용하려고 하면서 알게된 사실은, 내가 여태 DE(Desktop Environment) 없이 PC를 사용하고 있었다는 것이다.
하여 이번 기회에 LXQT를 DE로 설정하고, WM를 awesome으로 설정하였다.

기본으로 panel, desktop, notification daemon 등 불필요한 것이 많길래, policy kit 제외 전부 비활성화 했다.

Startup

기존에 사용하던 i3wm의 설정에서 시작프로그램 목록만 가져왔다.
session settings에서 autostart를 사용할 수 도 있었는데, i3wm config에서 가져오는거라 귀찮아서 그냥 rc.lua에 넣어주었다.

awful.spawn.with_shell([[echo awesome > /tmp/wm]])
awful.spawn.with_shell([[echo x11 > /tmp/protocol]])
awful.spawn.with_shell([[rm /tmp/xobpipe]])
awful.spawn.with_shell([[mkfifo /tmp/xobpipe]])
awful.spawn.with_shell([[tail -f /tmp/xobpipe | xob]])
awful.spawn.with_shell([[kime]])
awful.spawn.with_shell([[xset s off]])
awful.spawn.with_shell([[xset -dpms]])
awful.spawn.with_shell([[xset s noblank]])
awful.spawn.once([[picom]])
awful.spawn.with_shell(
    [[pgrep -x redshift >/dev/null || redshift -l 35.9078:127.7669]]
)

Bar

i3wm을 쓸때는 bar를 eww로 직접 만들어서 사용했는데, awesome에서는 기본으로 awful이라는 bar를 지원하길래, 그걸 변경해서 사용했다.

Bar를 만들때 철학은 nerd font icon을 사용하지 않는 것이었다.

난 redshift와 dpms를 사용하는데, 각 프로그램의 토글 버튼이 전부 있는 꼴이 보기 싫었다.
그래서 고양이 모양으로 디자인했다.

redshift onredshift off
dpms on/^-,-^\/^_,_^\
dpms off/^0,0^\/^o,o^\
local function update_dpms_redshift_widget()
    if dpms_enabled and redshift_enabled then
        dpms_redshift_widget.markup = "/^-,-^\\"
    elseif dpms_enabled and (not redshift_enabled) then
        dpms_redshift_widget.markup = "/^_,_^\\"
    elseif (not dpms_enabled) and redshift_enabled then
        dpms_redshift_widget.markup = "/^0,0^\\"
    elseif (not dpms_enabled) and (not redshift_enabled) then
        dpms_redshift_widget.markup = "/^o,o^\\"
    end
end

Discord

awesome 쓰기 시작하면서 의외의 장점을 찾았는데, Discord 화면 공유 목록에 모든 윈도우가 뜬다는 것이다.
이게 왜 장점이냐면, 여태 내가 사용한 wm들(i3 외에도 다양한 wayland wm)은 전부 현재 workspace의 윈도우만 화면공유 목록 창에 떴는데, awesome에서는 모든 창이 목록에 뜬다.

Webmentions[0]

    Q. Why isn't my webmention not appearing?

    A. I deploy this site not so often and this site is static site. So don't expect your webmention to appear instantly. Thanks for the webmention and sorry for the inconvenience.
    last deployed: see footer