update
parent
2725167bf4
commit
59e4dbc7cf
|
@ -0,0 +1,55 @@
|
||||||
|
[Default Applications]
|
||||||
|
x-scheme-handler/http=firefox.desktop
|
||||||
|
x-scheme-handler/https=firefox.desktop
|
||||||
|
x-scheme-handler/ftp=firefox.desktop
|
||||||
|
x-scheme-handler/chrome=firefox.desktop
|
||||||
|
text/html=firefox.desktop
|
||||||
|
application/x-extension-htm=firefox.desktop
|
||||||
|
application/x-extension-html=firefox.desktop
|
||||||
|
application/x-extension-shtml=firefox.desktop
|
||||||
|
application/xhtml+xml=firefox.desktop
|
||||||
|
application/x-extension-xhtml=firefox.desktop
|
||||||
|
application/x-extension-xht=firefox.desktop
|
||||||
|
application/pdf=qpdfview.desktop
|
||||||
|
text/plain=geany.desktop
|
||||||
|
image/jpeg=viewnior.desktop
|
||||||
|
image/bmp=viewnior.desktop
|
||||||
|
image/gif=viewnior.desktop
|
||||||
|
application/x-shellscript=geany.desktop
|
||||||
|
image/svg+xml=viewnior.desktop
|
||||||
|
application/x-trash=geany.desktop
|
||||||
|
text/x-python=geany.desktop
|
||||||
|
audio/mpeg=audacious.desktop
|
||||||
|
audio/x-wav=vlc.desktop
|
||||||
|
image/png=viewnior.desktop
|
||||||
|
application/x-alpm-package=pamac-manager.desktop
|
||||||
|
application/xml=geany.desktop
|
||||||
|
video/x-ms-wmv=vlc.desktop
|
||||||
|
video/mp4=vlc.desktop
|
||||||
|
video/x-flv=vlc.desktop
|
||||||
|
video/ogg=vlc.desktop
|
||||||
|
video/x-ogm+ogg=vlc.desktop
|
||||||
|
video/x-theora+ogg=vlc.desktop
|
||||||
|
application/x-cd-image=open-fuse-iso.desktop
|
||||||
|
application/x-raw-disk-image=open-fuse-iso.desktop
|
||||||
|
text/x-matlab=geany.desktop
|
||||||
|
application/x-java=geany.desktop
|
||||||
|
text/x-csrc=geany.desktop
|
||||||
|
image/avif=viewnior.desktop
|
||||||
|
|
||||||
|
[Added Associations]
|
||||||
|
application/pdf=qpdfview.desktop;
|
||||||
|
application/octet-stream=geany.desktop;
|
||||||
|
application/x-gettext-translation=geany.desktop;
|
||||||
|
application/x-wine-extension-ini=geany.desktop;
|
||||||
|
image/gif=viewnior.desktop;gimp.desktop;
|
||||||
|
x-scheme-handler/http=exo-web-browser.desktop
|
||||||
|
x-scheme-handler/https=exo-web-browser.desktop
|
||||||
|
inode/directory=exo-file-manager.desktop
|
||||||
|
x-scheme-handler/trash=exo-file-manager.desktop
|
||||||
|
text/x-matlab=geany.desktop;
|
||||||
|
text/plain=geany.desktop;
|
||||||
|
audio/mpeg=audacious.desktop;
|
||||||
|
application/x-java=geany.desktop;
|
||||||
|
text/x-csrc=geany.desktop;
|
||||||
|
image/webp=viewnior.desktop;
|
175
common/rc.xml
175
common/rc.xml
|
@ -365,7 +365,7 @@
|
||||||
</keybind>
|
</keybind>
|
||||||
<keybind key="C-grave F12">
|
<keybind key="C-grave F12">
|
||||||
<action name="Execute">
|
<action name="Execute">
|
||||||
<command>mabox-terminal</command>
|
<command>quake-term</command>
|
||||||
</action>
|
</action>
|
||||||
</keybind>
|
</keybind>
|
||||||
<keybind key="W-grave">
|
<keybind key="W-grave">
|
||||||
|
@ -385,7 +385,7 @@
|
||||||
</keybind>
|
</keybind>
|
||||||
<keybind key="W-r">
|
<keybind key="W-r">
|
||||||
<action name="Execute">
|
<action name="Execute">
|
||||||
<command>terminator --icon=/usr/share/icons/pyradio.png --geometry=564x440-20-20 -x pyradio -lt</command>
|
<command>quake-radio</command>
|
||||||
</action>
|
</action>
|
||||||
</keybind>
|
</keybind>
|
||||||
<keybind key="W-v">
|
<keybind key="W-v">
|
||||||
|
@ -652,139 +652,58 @@
|
||||||
</action>
|
</action>
|
||||||
</keybind> -->
|
</keybind> -->
|
||||||
<!-- WINDOW KEYBINDINGS -->
|
<!-- WINDOW KEYBINDINGS -->
|
||||||
<keybind key="C-S-KP_7">
|
|
||||||
<action name="Unmaximize"/>
|
|
||||||
<action name="Execute">
|
|
||||||
<command>snapwin topleft</command>
|
|
||||||
</action>
|
|
||||||
</keybind>
|
|
||||||
<keybind key="C-S-KP_8">
|
|
||||||
<action name="Unmaximize"/>
|
|
||||||
<action name="Execute">
|
|
||||||
<command>snapwin top</command>
|
|
||||||
</action>
|
|
||||||
</keybind>
|
|
||||||
<keybind key="C-S-KP_9">
|
|
||||||
<action name="Unmaximize"/>
|
|
||||||
<action name="Execute">
|
|
||||||
<command>snapwin topright</command>
|
|
||||||
</action>
|
|
||||||
</keybind>
|
|
||||||
<keybind key="C-S-KP_4">
|
|
||||||
<action name="Unmaximize"/>
|
|
||||||
<action name="Execute">
|
|
||||||
<command>snapwin left</command>
|
|
||||||
</action>
|
|
||||||
</keybind>
|
|
||||||
<keybind key="C-S-KP_5">
|
|
||||||
<action name="Unmaximize"/>
|
|
||||||
<action name="Execute">
|
|
||||||
<command>snapwin center</command>
|
|
||||||
</action>
|
|
||||||
</keybind>
|
|
||||||
<keybind key="C-S-KP_6">
|
|
||||||
<action name="Unmaximize"/>
|
|
||||||
<action name="Execute">
|
|
||||||
<command>snapwin right</command>
|
|
||||||
</action>
|
|
||||||
</keybind>
|
|
||||||
<keybind key="C-S-KP_1">
|
|
||||||
<action name="Unmaximize"/>
|
|
||||||
<action name="Execute">
|
|
||||||
<command>snapwin bottomleft</command>
|
|
||||||
</action>
|
|
||||||
</keybind>
|
|
||||||
<keybind key="C-S-KP_2">
|
|
||||||
<action name="Unmaximize"/>
|
|
||||||
<action name="Execute">
|
|
||||||
<command>snapwin bottom</command>
|
|
||||||
</action>
|
|
||||||
</keybind>
|
|
||||||
<keybind key="C-S-KP_3">
|
|
||||||
<action name="Unmaximize"/>
|
|
||||||
<action name="Execute">
|
|
||||||
<command>snapwin bottomright</command>
|
|
||||||
</action>
|
|
||||||
</keybind>
|
|
||||||
<keybind key="W-KP_1">
|
|
||||||
<action name="Unmaximize"/>
|
|
||||||
<action name="MoveResizeTo">
|
|
||||||
<x>0</x>
|
|
||||||
<y>-0</y>
|
|
||||||
<width>50%</width>
|
|
||||||
<height>50%</height>
|
|
||||||
</action>
|
|
||||||
</keybind>
|
|
||||||
<keybind key="W-KP_2">
|
|
||||||
<action name="Unmaximize"/>
|
|
||||||
<action name="MoveResizeTo">
|
|
||||||
<x>0</x>
|
|
||||||
<y>-0</y>
|
|
||||||
<width>100%</width>
|
|
||||||
<height>50%</height>
|
|
||||||
</action>
|
|
||||||
</keybind>
|
|
||||||
<keybind key="W-KP_3">
|
|
||||||
<action name="Unmaximize"/>
|
|
||||||
<action name="MoveResizeTo">
|
|
||||||
<x>-0</x>
|
|
||||||
<y>-0</y>
|
|
||||||
<width>50%</width>
|
|
||||||
<height>50%</height>
|
|
||||||
</action>
|
|
||||||
</keybind>
|
|
||||||
<keybind key="W-KP_4">
|
|
||||||
<action name="Unmaximize"/>
|
|
||||||
<action name="MoveResizeTo">
|
|
||||||
<x>0</x>
|
|
||||||
<y>0</y>
|
|
||||||
<width>50%</width>
|
|
||||||
<height>100%</height>
|
|
||||||
</action>
|
|
||||||
</keybind>
|
|
||||||
<keybind key="W-KP_5">
|
|
||||||
<action name="Unmaximize"/>
|
|
||||||
<action name="MoveResizeTo">
|
|
||||||
<x>center</x>
|
|
||||||
<y>center</y>
|
|
||||||
<width>50%</width>
|
|
||||||
<height>50%</height>
|
|
||||||
</action>
|
|
||||||
</keybind>
|
|
||||||
<keybind key="W-KP_6">
|
|
||||||
<action name="Unmaximize"/>
|
|
||||||
<action name="MoveResizeTo">
|
|
||||||
<x>-0</x>
|
|
||||||
<y>0</y>
|
|
||||||
<width>50%</width>
|
|
||||||
<height>100%</height>
|
|
||||||
</action>
|
|
||||||
</keybind>
|
|
||||||
<keybind key="W-KP_7">
|
<keybind key="W-KP_7">
|
||||||
<action name="Unmaximize"/>
|
<action name="Unmaximize"/>
|
||||||
<action name="MoveResizeTo">
|
<action name="Execute">
|
||||||
<x>0</x>
|
<command>superclick topleft</command>
|
||||||
<y>0</y>
|
|
||||||
<width>50%</width>
|
|
||||||
<height>50%</height>
|
|
||||||
</action>
|
</action>
|
||||||
</keybind>
|
</keybind>
|
||||||
<keybind key="W-KP_8">
|
<keybind key="W-KP_8">
|
||||||
<action name="Unmaximize"/>
|
<action name="Unmaximize"/>
|
||||||
<action name="MoveResizeTo">
|
<action name="Execute">
|
||||||
<x>0</x>
|
<command>superclick top</command>
|
||||||
<y>0</y>
|
|
||||||
<width>100%</width>
|
|
||||||
<height>50%</height>
|
|
||||||
</action>
|
</action>
|
||||||
</keybind>
|
</keybind>
|
||||||
<keybind key="W-KP_9">
|
<keybind key="W-KP_9">
|
||||||
<action name="Unmaximize"/>
|
<action name="Unmaximize"/>
|
||||||
<action name="MoveResizeTo">
|
<action name="Execute">
|
||||||
<x>-0</x>
|
<command>superclick topright</command>
|
||||||
<y>0</y>
|
</action>
|
||||||
<width>50%</width>
|
</keybind>
|
||||||
<height>50%</height>
|
<keybind key="W-KP_4">
|
||||||
|
<action name="Unmaximize"/>
|
||||||
|
<action name="Execute">
|
||||||
|
<command>superclick left</command>
|
||||||
|
</action>
|
||||||
|
</keybind>
|
||||||
|
<keybind key="W-KP_5">
|
||||||
|
<action name="Unmaximize"/>
|
||||||
|
<action name="Execute">
|
||||||
|
<command>superclick center</command>
|
||||||
|
</action>
|
||||||
|
</keybind>
|
||||||
|
<keybind key="W-KP_6">
|
||||||
|
<action name="Unmaximize"/>
|
||||||
|
<action name="Execute">
|
||||||
|
<command>superclick right</command>
|
||||||
|
</action>
|
||||||
|
</keybind>
|
||||||
|
<keybind key="W-KP_1">
|
||||||
|
<action name="Unmaximize"/>
|
||||||
|
<action name="Execute">
|
||||||
|
<command>superclick bottomleft</command>
|
||||||
|
</action>
|
||||||
|
</keybind>
|
||||||
|
<keybind key="W-KP_2">
|
||||||
|
<action name="Unmaximize"/>
|
||||||
|
<action name="Execute">
|
||||||
|
<command>superclick bottom</command>
|
||||||
|
</action>
|
||||||
|
</keybind>
|
||||||
|
<keybind key="W-KP_3">
|
||||||
|
<action name="Unmaximize"/>
|
||||||
|
<action name="Execute">
|
||||||
|
<command>superclick bottomright</command>
|
||||||
</action>
|
</action>
|
||||||
</keybind>
|
</keybind>
|
||||||
<keybind key="A-Escape">
|
<keybind key="A-Escape">
|
||||||
|
@ -974,9 +893,9 @@
|
||||||
<!-- Set this to TRUE to move the mouse pointer across the desktop when
|
<!-- Set this to TRUE to move the mouse pointer across the desktop when
|
||||||
switching due to hitting the edge of the screen -->
|
switching due to hitting the edge of the screen -->
|
||||||
<context name="Frame">
|
<context name="Frame">
|
||||||
<mousebind action="Press" button="C-S-Left">
|
<mousebind action="Press" button="W-Left">
|
||||||
<action name="Execute">
|
<action name="Execute">
|
||||||
<command>snapwin</command>
|
<command>superclick</command>
|
||||||
</action>
|
</action>
|
||||||
</mousebind>
|
</mousebind>
|
||||||
<mousebind action="Press" button="A-Left">
|
<mousebind action="Press" button="A-Left">
|
||||||
|
@ -1154,7 +1073,7 @@
|
||||||
</mousebind>
|
</mousebind>
|
||||||
</context>
|
</context>
|
||||||
<context name="Client">
|
<context name="Client">
|
||||||
<mousebind action="Press" button="W-Left">
|
<mousebind action="Press" button="C-S-Left">
|
||||||
<action name="Unmaximize"/>
|
<action name="Unmaximize"/>
|
||||||
<action name="Execute">
|
<action name="Execute">
|
||||||
<command>deskgrid</command>
|
<command>deskgrid</command>
|
||||||
|
|
|
@ -1,38 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
GTK2_RC="$HOME/.gtkrc-2.0"
|
|
||||||
GTK3_RC="$HOME/.config/gtk-3.0/settings.ini"
|
|
||||||
ICON_DEF="$HOME/.icons/default/index.theme"
|
|
||||||
XRES="$HOME/.Xresources"
|
|
||||||
|
|
||||||
/usr/bin/lxappearance
|
|
||||||
|
|
||||||
sleep .5
|
|
||||||
#READ Cursor theme name from GTK2_RC
|
|
||||||
read CURTHEME <<< "$(grep gtk-cursor-theme-name ${GTK2_RC} | cut -d'"' -f2)"
|
|
||||||
# WRITE to GTK3
|
|
||||||
if grep "^gtk-cursor-theme-name=${CURTHEME}" ${GTK3_RC};then
|
|
||||||
#found nic nie robimy
|
|
||||||
:
|
|
||||||
else
|
|
||||||
sd "^gtk-cursor-theme-name.*$" "gtk-cursor-theme-name=${CURTHEME}" ${GTK3_RC}
|
|
||||||
fi
|
|
||||||
|
|
||||||
# WRITE to ICON_DEF
|
|
||||||
if grep "^Inherits=${CURTHEME}" ${ICON_DEF};then
|
|
||||||
:
|
|
||||||
else
|
|
||||||
sd "^Inherits=.*$" "Inherits=${CURTHEME}" ${ICON_DEF}
|
|
||||||
fi
|
|
||||||
# WRITE to .Xresources
|
|
||||||
if grep "^Xcursor.theme: ${CURTHEME}" ${XRES};then
|
|
||||||
:
|
|
||||||
else
|
|
||||||
if grep Xcursor.theme ${XRES};then
|
|
||||||
sd "^Xcursor.theme:.*$" "Xcursor.theme: ${CURTHEME}" ${XRES}
|
|
||||||
else
|
|
||||||
echo "Xcursor.theme: ${CURTHEME}" >> ${XRES}
|
|
||||||
fi
|
|
||||||
xrdb "$HOME/.Xresources"
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
|
@ -1,52 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
#
|
|
||||||
# Wrapper for nitrogen, so LightDM wallpaper is synced.
|
|
||||||
#
|
|
||||||
# Copyright (C) 2021 Rafael Cavalcanti - rafaelc.org
|
|
||||||
# Licensed under GPLv3
|
|
||||||
|
|
||||||
set -euo pipefail
|
|
||||||
|
|
||||||
/usr/bin/nitrogen "$@"
|
|
||||||
if [[ "${1:-}" == "--restore" ]]; then
|
|
||||||
exit $?
|
|
||||||
fi
|
|
||||||
|
|
||||||
readonly bg_path="$(awk -F '=' '/file/{print $2}' "$HOME/.config/nitrogen/bg-saved.cfg")"
|
|
||||||
|
|
||||||
dbus-send \
|
|
||||||
--print-reply \
|
|
||||||
--system \
|
|
||||||
--dest=org.freedesktop.Accounts \
|
|
||||||
/org/freedesktop/Accounts/User$(id -u) \
|
|
||||||
org.freedesktop.DBus.Properties.Set \
|
|
||||||
string:org.freedesktop.DisplayManager.AccountsService \
|
|
||||||
string:BackgroundFile \
|
|
||||||
variant:string:"$bg_path"
|
|
||||||
|
|
||||||
# Mabox Colorizer
|
|
||||||
# Generate wallpaper color palette
|
|
||||||
WALLPALDIR="$HOME/.config/colormenu/palettes/wallp"
|
|
||||||
mkdir -p "$WALLPALDIR"
|
|
||||||
read WALLPATH<<< $(grep file "$HOME/.config/nitrogen/bg-saved.cfg" | cut -d'=' -f2)
|
|
||||||
WALLPAPER=${WALLPATH##*/}
|
|
||||||
if [ ! -f "$WALLPALDIR/$WALLPAPER.clr" ]; then
|
|
||||||
convert ${WALLPATH} -resize 25% -colors 16 -unique-colors txt:- |grep -v '^#'| awk '{print substr($3,1,7)}' |pastel sort-by brightness |pastel format hex > "$WALLPALDIR/$WALLPAPER.clr"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# GENERATE THUMBNAIL
|
|
||||||
THUMBDIR="$HOME/.config/mabox/wallthumbs"
|
|
||||||
mkdir -p ${THUMBDIR}
|
|
||||||
THUMB="${THUMBDIR}/${WALLPAPER}.png"
|
|
||||||
if [[ ! -f "$THUMB" ]]; then
|
|
||||||
convert ${WALLPATH} -resize 270x150^ -gravity center -extent 270x150 ${THUMB}
|
|
||||||
fi
|
|
||||||
|
|
||||||
# auto generate themes
|
|
||||||
if command -v w2theme &> /dev/null
|
|
||||||
then
|
|
||||||
source ~/.config/colorizer/colorizer.conf
|
|
||||||
if [[ "$wall2themes" == "yes" ]];then
|
|
||||||
w2theme colorize
|
|
||||||
fi
|
|
||||||
fi
|
|
|
@ -1,16 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
#
|
|
||||||
# Wrapper for xrandr, so wallpaper and Conky are reloaded on resolution change.
|
|
||||||
#
|
|
||||||
# Copyright (C) 2022 Daniel Napora - maboxlinux.org
|
|
||||||
# Licensed under GPLv3
|
|
||||||
|
|
||||||
set -euo pipefail
|
|
||||||
|
|
||||||
/usr/bin/xrandr "$@"
|
|
||||||
if [[ "$@" == *"--output"* ]];then
|
|
||||||
nitrogen --restore
|
|
||||||
if pgrep conky;then
|
|
||||||
killall -SIGUSR1 conky 2> /dev/null
|
|
||||||
fi
|
|
||||||
fi
|
|
Loading…
Reference in New Issue