From 9da94c6eb625c0afc0483caa78b6d0d1c381a0e4 Mon Sep 17 00:00:00 2001 From: Kuoi Date: Mon, 22 Aug 2022 01:15:21 +0100 Subject: [PATCH] use wf-shell for wayland-logout and background --- README.md | 82 ++++++++++++++++++++++++ dot_config/nwg-launchers/nwgbar/bar.json | 2 +- dot_config/wayfire.ini | 16 ++--- dot_config/wf-shell.ini | 4 -- pkglist | 26 ++++++++ 5 files changed, 117 insertions(+), 13 deletions(-) create mode 100644 README.md create mode 100644 pkglist diff --git a/README.md b/README.md new file mode 100644 index 0000000..1daba52 --- /dev/null +++ b/README.md @@ -0,0 +1,82 @@ +# Configure README + +To use this dot file, you need to install these packages. For Arch Linux users you can use my repository. + +## Wayfire + +- wf-shell: wf-background [background], wayland-logout [logout] + +- waybar [bar] + +- mako [notification] + +- fcitx5 [input] + +- gnome-keyring [keyring] + +- wofi [launcher] + +- tilix [terminal] + +- swaylock [lock screen] + +- nwg-launchers: nwgbar [logout lock restart shutdown UI], nwggrid [applications menu] + +- grim [screenshot] + +- slurp [select a region, help screenshot] + +- wf-info [select a window, help screenshot and screencast] + +- wf-recorder [screencast] + +- wl-clipboard [clipboard] + +- pulsemixer [control voice] + +- wf-roundedcorners [windows decoration] + +## Waybar + +- ttf-nerd-fonts-symbols [font for waybar] + +- networkmanager [network management tui] + +- blueberry [bluetooth management GUI] + +- pavucontrol [volume control GUI] + +## Others + +- vim-wayland-clipboard [for vim clipboard] + +- config `/etc/enviroment` file + +``` +GTK_USE_PORTAL=0 +GTK_THEME=Graphite-Dark + +GTK_IM_MODULE=fcitx +QT_IM_MODULE=fcitx +XMODIFIERS=@im=fcitx +SDL_IM_MODULE=fcitx +INPUT_METHOD=fcitx + +QT_QPA_PLATFORM=wayland +``` + +## Use My Arch Linux Repository + +Add the following content to the /etc/pacman.conf + +``` +[guoyi] +Server = https://repo.malacology.net/$arch +``` + +install GPG keyring to use my repository +``` +# pacman-key --recv-keys B1F96021DB62254D +# pacman-key --finger B1F96021DB62254D +# pacman-key --lsign-key B1F96021DB62254D +``` diff --git a/dot_config/nwg-launchers/nwgbar/bar.json b/dot_config/nwg-launchers/nwgbar/bar.json index 4bcc48d..f69f28f 100644 --- a/dot_config/nwg-launchers/nwgbar/bar.json +++ b/dot_config/nwg-launchers/nwgbar/bar.json @@ -6,7 +6,7 @@ }, { "name": "Logout", - "exec": "loginctl terminate-user guoyi", + "exec": "wayland-logout", "icon": "/home/guoyi/.config/nwg-launchers/nwgbar/images/system-log-out.svg" }, { diff --git a/dot_config/wayfire.ini b/dot_config/wayfire.ini index 4300485..fc0e10c 100644 --- a/dot_config/wayfire.ini +++ b/dot_config/wayfire.ini @@ -94,11 +94,11 @@ autostart_wf_shell = false xdg = sleep 1 && (XDG_SESSION_TYPE=wayland XDG_CURRENT_DESKTOP=sway /usr/lib/xdg-desktop-portal --replace & /usr/lib/xdg-desktop-portal-wlr) ## desktop widgets -background = swaybg -i $HOME/.config/swaylock/bg.png +background = wf-background bar = waybar # dock = wf-dock # panel = wf-panel -# background = wf-background +# background = swaybg -i $HOME/.config/swaylock/bg.png ## Notifications notifications = mako @@ -150,9 +150,9 @@ command_logout = nwgbar # select window, copy to clipboard binding_screenshot = KEY_SYSRQ command_screenshot = grim -g "$(wf-info | grep Geometry | awk '{print $2, $3}')" - - | wl-copy --type image/png -# save to Pictures directory +# select window, save to Pictures directory binding_screenshot_interactive = KEY_SYSRQ -command_screenshot_interactive = slurp | grim -g - ~/Pictures/$(date '+%F_%T').png +command_screenshot_interactive = wf-info | grep Geometry | awk '{print $2, $3}' | grim -g - ~/Pictures/$(date '+%F_%T').png # copy to clipboard binding_screenshot_clipboard = KEY_SYSRQ command_screenshot_clipboard = slurp -b ff00ff20 -B ff00ff20 -c ff00ff80 -o | grim -g - - | wl-copy --type image/png @@ -160,10 +160,10 @@ command_screenshot_clipboard = slurp -b ff00ff20 -B ff00ff20 -c ff00ff80 -o | gr ## Screencast # binding_screencast = KEY_SYSRQ # command_screencast = wf-recorder -g "$(wf-info | grep Geometry | awk '{print $2, $3}')" -f $HOME/Videos/$(date '+%F_%T').mp4 -binding_screencast_novoice = KEY_SYSRQ -command_screencast_novoice = wf-recorder -a -f $HOME/Videos/$(date '+%F_%T').mp4 -# binding_screencast_voice = KEY_SYSRQ -# command_screencast_voice = wf-recorder -a -f $HOME/Videos/$(data '+%F_%T'). +binding_screencast_voice = KEY_SYSRQ +command_screencast_voice = wf-recorder -a -f $HOME/Videos/$(date '+%F_%T').mp4 +binding_screencast_novoice = KEY_SYSRQ +command_screencast_novoice = wf-recorder -f $HOME/Videos/$(data '+%F_%T'). binding_screencast_stop = KEY_SYSRQ command_screencast_stop = killall -INT wf-recorder # binding_kooha = KEY_R diff --git a/dot_config/wf-shell.ini b/dot_config/wf-shell.ini index 1171181..b49ab70 100644 --- a/dot_config/wf-shell.ini +++ b/dot_config/wf-shell.ini @@ -60,7 +60,3 @@ widgets_left = window-list widgets_center = clock widgets_right = launchers # battery network volume - -icon_mapping_wps-office2019-wpsmain = /usr/share/icons/hicolor/64x64/mimetypes/wps-office-wps.png -icon_mapping_com.github.blackhole89.notekit = /usr/share/icons/hicolor/128x128/apps/com.github.blackhole89.notekit.png -icon_mapping_NewsFlashGTK = /usr/share/icons/hicolor/symbolic/apps/com.gitlab.newsflash-symbolic.svg diff --git a/pkglist b/pkglist new file mode 100644 index 0000000..b1f4cbf --- /dev/null +++ b/pkglist @@ -0,0 +1,26 @@ +wayfire + +wf-shell +waybar +mako +fcitx5 +gnome-keyring +wofi +tilix +swaylock +nwg-launchers +grim +slurp +wf-info +wf-recorder +wl-clipboard +pulsemixer +wf-roundedcorners +Waybar + +ttf-nerd-fonts-symbols +networkmanager +blueberry +pavucontrol + +vim-wayland-clipboard