diff --git a/common/mimeapps.list b/common/mimeapps.list new file mode 100644 index 0000000..dc1015b --- /dev/null +++ b/common/mimeapps.list @@ -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; diff --git a/common/rc.xml b/common/rc.xml index b8ef223..128f441 100644 --- a/common/rc.xml +++ b/common/rc.xml @@ -365,7 +365,7 @@ - mabox-terminal + quake-term @@ -385,7 +385,7 @@ - terminator --icon=/usr/share/icons/pyradio.png --geometry=564x440-20-20 -x pyradio -lt + quake-radio @@ -652,139 +652,58 @@ --> - - - - snapwin topleft - - - - - - snapwin top - - - - - - snapwin topright - - - - - - snapwin left - - - - - - snapwin center - - - - - - snapwin right - - - - - - snapwin bottomleft - - - - - - snapwin bottom - - - - - - snapwin bottomright - - - - - - 0 - -0 - 50% - 50% - - - - - - 0 - -0 - 100% - 50% - - - - - - -0 - -0 - 50% - 50% - - - - - - 0 - 0 - 50% - 100% - - - - - - center - center - 50% - 50% - - - - - - -0 - 0 - 50% - 100% - - - - 0 - 0 - 50% - 50% + + superclick topleft - - 0 - 0 - 100% - 50% + + superclick top - - -0 - 0 - 50% - 50% + + superclick topright + + + + + + superclick left + + + + + + superclick center + + + + + + superclick right + + + + + + superclick bottomleft + + + + + + superclick bottom + + + + + + superclick bottomright @@ -974,9 +893,9 @@ - + - snapwin + superclick @@ -1154,7 +1073,7 @@ - + deskgrid diff --git a/common/wrappers/lxappearance b/common/wrappers/lxappearance deleted file mode 100755 index fd02b3f..0000000 --- a/common/wrappers/lxappearance +++ /dev/null @@ -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 - - diff --git a/common/wrappers/nitrogen b/common/wrappers/nitrogen deleted file mode 100755 index b6761e5..0000000 --- a/common/wrappers/nitrogen +++ /dev/null @@ -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 diff --git a/common/wrappers/xrandr b/common/wrappers/xrandr deleted file mode 100755 index 11fd785..0000000 --- a/common/wrappers/xrandr +++ /dev/null @@ -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