mirror of
https://github.com/wizbright/waybox.git
synced 2025-10-29 05:40:20 -04:00
Ability to minimize; Iconify action
This commit is contained in:
parent
6aa39a5ce0
commit
0769addabd
9 changed files with 100 additions and 40 deletions
|
|
@ -19,13 +19,18 @@ cairo-dock &
|
|||
# Start a panel
|
||||
(waybar || yambar) &
|
||||
|
||||
# Start a notification daemon
|
||||
mako &
|
||||
|
||||
# Load a random wallpaper
|
||||
oldifs=$IFS
|
||||
IFS=:
|
||||
for wpdir in ${XDG_DATA_DIRS:-${datadir:-/usr/share}}:${XDG_DATA_HOME:-~/.local/share};
|
||||
data_dirs=${XDG_DATA_DIRS:-${datadir:-/usr/share}}:${XDG_DATA_HOME:-~/.local/share}
|
||||
for data_dir in $data_dirs;
|
||||
do
|
||||
find $wpdir -path '*/backgrounds/*.jpg' -o -path '*/backgrounds/*.png' -o -path '*/backgrounds/*.svg' \
|
||||
-o -path '*/wallpapers/*.jpg' -o -path '*/wallpapers/*.png' -o -path '*/wallpapers/*.svg';
|
||||
wpdir="$data_dir/wallpapers"
|
||||
test -d "$wpdir" && \
|
||||
find $wpdir -name '*.jpg' -o -name '*.png' -o -name '*.svg'
|
||||
done | (shuf -n 1 || tail -n 1) | xargs swaybg -m fill -i &
|
||||
IFS=$oldifs
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
#
|
||||
# Environment variables here for Waybox
|
||||
# Set environment variables here for Waybox
|
||||
# Copy to $XDG_CONFIG_HOME/waybox/environment to customize
|
||||
#
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ cfdata = configuration_data()
|
|||
cfdata.set('libexecdir', get_option('prefix') / get_option('libexecdir'))
|
||||
cfdata.set('localedir', get_option('prefix') / get_option('localedir'))
|
||||
cfdata.set('sysconfdir', get_option('prefix') / get_option('sysconfdir'))
|
||||
cfdata.set('package', meson.project_name())
|
||||
cfdata.set('package', meson.project_name().to_lower())
|
||||
|
||||
configure_file(
|
||||
configuration: cfdata,
|
||||
|
|
|
|||
29
data/rc.xml
29
data/rc.xml
|
|
@ -10,11 +10,6 @@
|
|||
<rules>evdev</rules>
|
||||
<variant>dvorak</variant>
|
||||
</keyboardLayout> -->
|
||||
<keybind key="W-Return">
|
||||
<action name="Execute">
|
||||
<execute>terminal</execute>
|
||||
</action>
|
||||
</keybind>
|
||||
<!-- Keybindings for windows -->
|
||||
<keybind key="A-F4">
|
||||
<action name="Close"/>
|
||||
|
|
@ -22,10 +17,11 @@
|
|||
<keybind key="C-Escape">
|
||||
<action name="Exit"/>
|
||||
</keybind>
|
||||
<keybind key="Print">
|
||||
<action name="Execute">
|
||||
<execute>grim "$(xdg-user-dir PICTURES)/$(date +'%Y-%m-%d-%H%M%S_grim_fs.png')"</execute>
|
||||
</action>
|
||||
<keybind key="W-c">
|
||||
<action name="Reconfigure"/>
|
||||
</keybind>
|
||||
<keybind key="W-m">
|
||||
<action name="Iconify"/>
|
||||
</keybind>
|
||||
<keybind key="W-S-M">
|
||||
<action name="ToggleMaximize"/>
|
||||
|
|
@ -44,14 +40,21 @@
|
|||
</action>
|
||||
</keybind>
|
||||
<!-- Keybindings for running applications -->
|
||||
<keybind key="W-Return">
|
||||
<action name="Execute">
|
||||
<execute>$TERMINAL</execute>
|
||||
</action>
|
||||
</keybind>
|
||||
<keybind key="Print">
|
||||
<action name="Execute">
|
||||
<execute>grim "$(xdg-user-dir PICTURES)/$(date +'%Y-%m-%d-%H%M%S_grim_fs.png')"</execute>
|
||||
</action>
|
||||
</keybind>
|
||||
<keybind key="A-F2">
|
||||
<action name="Execute">
|
||||
<execute>obrun l</execute>
|
||||
</action>
|
||||
</keybind>
|
||||
<keybind key="W-c">
|
||||
<action name="Reconfigure"/>
|
||||
</keybind>
|
||||
<keybind key="W-e">
|
||||
<action name="Execute">
|
||||
<execute>konqueror || falkon</execute>
|
||||
|
|
@ -59,7 +62,7 @@
|
|||
</keybind>
|
||||
<keybind key="W-o">
|
||||
<action name="Execute">
|
||||
<execute>terminal -e mc</execute>
|
||||
<execute>$TERMINAL -e mc</execute>
|
||||
</action>
|
||||
</keybind>
|
||||
<keybind key="W-w">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue