Use wofi as menu and add mako config.

Also went back to Breeze_Snow cursor pack.

Kept the custom launcher as an option, but wofi is prettier
and it shows icons and uses .desktop files.
This commit is contained in:
Érico Rolim 2020-01-04 18:30:00 -03:00
parent e9ebfc8cb1
commit d2f873b9c0
5 changed files with 48 additions and 2 deletions

View File

@ -30,6 +30,8 @@ This setup, which can be found on `wm` and `script`, requires the following depe
* `swayidle`
* `Xwayland`: X server inside Wayland, for backwards compatibility.
* `waybar`: customizable status bar.
* `wofi`: a pretty good menu system, for wayland (replaces the self built launcher).
* `mako`: a notification daemon
* `jq`: CLI JSON parser, necessary for keyboard layout implementation.
* `redshift`: magic tool for avoiding eye burning. Needs to be the version patched for Sway/Wayland use.
* Default applications:

22
script/.local/bin/wofitheme Executable file
View File

@ -0,0 +1,22 @@
#!/usr/bin/env bash
# ericonr's script for launching applications with the appropriate env
if [ $XDG_SESSION_TYPE = wayland ]
then
# Qt
export QT_QPA_PLATFORM=wayland-egl
export QT_WAYLAND_FORCE_DPI=physical
export QT_QPA_PLATFORMTHEME="qt5ct"
# Firefox
export MOZ_ENABLE_WAYLAND=1
# Java
export _JAVA_AWT_WM_NONREPARENTING=1
# SDL - not working for most games
#export SDL_VIDEODRIVER=wayland
else
export GTK_USE_PORTAL=1
fi
env GTK_THEME=OSX-Arc-Shadow wofi -i -t alacritty $@

13
wm/.config/mako/config Normal file
View File

@ -0,0 +1,13 @@
# ericonr's mako config
anchor=top-right
default-timeout=5000
border-radius=8
height=500
width=400
font=Liberation Sans 10
text-color=#ffffff
background-color=#c250c2

View File

@ -53,7 +53,7 @@ input $touchpad {
natural_scroll disabled
}
# Cursor theme
seat * xcursor_theme posy-white
seat * xcursor_theme Breeze_Snow
# Media keys
bindsym --locked XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
bindsym --locked XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
@ -87,8 +87,10 @@ bindsym $mod+Shift+f exec dolphin
# Kill focused window
bindsym $mod+Shift+q kill
# Start launcher
bindsym $mod+d exec $menu
bindsym $mod+Shift+d exec $menu
for_window [title="launcher"] focus, floating enable, border none
# Start wofi
bindsym $mod+d exec wofitheme
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
@ -259,3 +261,4 @@ for_window [app_id="krunner"] floating enable
for_window [app_id="konsole"] floating enable
for_window [app_id="pavucontrol"] focus, floating enable
for_window [app_id="org.mozilla.plasma-browser-integration-host"] floating enable

6
wm/.config/wofi/config Normal file
View File

@ -0,0 +1,6 @@
mode=drun,run
prompt=Hello!
normal_window=false
allow_images=true