use wf-shell for wayland-logout and background

This commit is contained in:
kuoi 2022-08-22 01:15:21 +01:00
parent e0b00ce244
commit 9da94c6eb6
5 changed files with 117 additions and 13 deletions

82
README.md Normal file
View File

@ -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
```

View File

@ -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"
},
{

View File

@ -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 = <shift> 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 = <super> <shift> 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 = <alt> 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 = <alt> KEY_SYSRQ
command_screencast_novoice = wf-recorder -a -f $HOME/Videos/$(date '+%F_%T').mp4
# binding_screencast_voice = <super> <alt> <shift> KEY_SYSRQ
# command_screencast_voice = wf-recorder -a -f $HOME/Videos/$(data '+%F_%T').
binding_screencast_voice = <super> <ctrl> KEY_SYSRQ
command_screencast_voice = wf-recorder -a -f $HOME/Videos/$(date '+%F_%T').mp4
binding_screencast_novoice = <ctrl> KEY_SYSRQ
command_screencast_novoice = wf-recorder -f $HOME/Videos/$(data '+%F_%T').
binding_screencast_stop = <ctrl> <alt> KEY_SYSRQ
command_screencast_stop = killall -INT wf-recorder
# binding_kooha = <super> KEY_R

View File

@ -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

26
pkglist Normal file
View File

@ -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