Initial commit
This commit is contained in:
commit
cfcc57a8bd
353 changed files with 18756 additions and 0 deletions
26
dotfile/.config/xfce4/labwc/environment
Normal file
26
dotfile/.config/xfce4/labwc/environment
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
# Example environment file for Xfce
|
||||
# See also example config files shipped with labwc
|
||||
|
||||
##
|
||||
## Use the XKB_DEFAULT_LAYOUT variable to set the keyboard layout. For example
|
||||
## to start with Swedish keyboard layout set it to 'se'. If you are unsure what
|
||||
## your country code is, refer to the layout section of:
|
||||
## /usr/share/X11/xkb/rules/evdev.lst
|
||||
##
|
||||
## Multiple keyboard layouts can be set by comma-separating the country codes.
|
||||
## If a variant layout is needed, the syntax is layout(variant)
|
||||
## If multiple layouts are used, specify the toggle-keybind using
|
||||
## XKB_DEFAULT_OPTIONS as show below.
|
||||
##
|
||||
## For further details, see xkeyboard-config(7)
|
||||
##
|
||||
|
||||
XKB_DEFAULT_LAYOUT=/nix/store/6iy6cgmxr0yvdamffp9h85ja71lw9ra7(xkb-console-keymap)
|
||||
XKB_DEFAULT_MODEL=pc104
|
||||
|
||||
##
|
||||
## Set cursor theme and size. Find system icons themes with:
|
||||
## `find /usr/share/icons/ -type d -name "cursors"`
|
||||
##
|
||||
|
||||
XCURSOR_THEME=Adwaita
|
||||
22
dotfile/.config/xfce4/labwc/menu.xml
Normal file
22
dotfile/.config/xfce4/labwc/menu.xml
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<openbox_menu>
|
||||
<menu id="root-menu" label="root-menu">
|
||||
<menu id="client-list-combined-menu" />
|
||||
<separator />
|
||||
<item label="Launcher"><action name="Execute" command="rofi -show drun" /></item>
|
||||
<separator />
|
||||
<menu id="Browser" label="Browser">
|
||||
<item label="Brave (Chromium)"><action name="Execute" command="brave" /></item>
|
||||
<item label="Librewolf (Firefox)"><action name="Execute" command="librewolf" /></item>
|
||||
</menu>
|
||||
<item label="Terminal"><action name="Execute" command="konsole" /></item>
|
||||
<item label="Text Editor"><action name="Execute" command="codium" /></item>
|
||||
<item label="File Manager"><action name="Execute" command="dolphin" /></item>
|
||||
<separator />
|
||||
<separator />
|
||||
<menu id="Exit" label="Exit">
|
||||
<item label="Reconfigure"><action name="Reconfigure" /></item>
|
||||
<item label="Logout"><action name="Execute" command="xfce4-session-logout" /></item>
|
||||
</menu>
|
||||
</menu>
|
||||
</openbox_menu>
|
||||
294
dotfile/.config/xfce4/labwc/rc.xml
Normal file
294
dotfile/.config/xfce4/labwc/rc.xml
Normal file
|
|
@ -0,0 +1,294 @@
|
|||
<?xml version="1.0"?>
|
||||
<labwc_config>
|
||||
|
||||
<theme>
|
||||
<name>Lean</name>
|
||||
<titlebar>
|
||||
<layout>menu,desk:iconify,max,close</layout>
|
||||
</titlebar>
|
||||
<dropShadows>yes</dropShadows>
|
||||
<keepBorder>yes</keepBorder>
|
||||
<animateIconify>yes</animateIconify>
|
||||
<cornerRadius>4</cornerRadius>
|
||||
<font place="ActiveWindow">
|
||||
<name>JetBrainsMono Nerd Font</name>
|
||||
<size>8</size>
|
||||
<weight>Bold</weight>
|
||||
<slant>Normal</slant>
|
||||
</font>
|
||||
<font place="InactiveWindow">
|
||||
<name>JetBrainsMono Nerd Font</name>
|
||||
<size>8</size>
|
||||
<weight>Normal</weight>
|
||||
<slant>Normal</slant>
|
||||
</font>
|
||||
<font place="MenuHeader">
|
||||
<name>JetBrainsMono Nerd Font</name>
|
||||
<size>9</size>
|
||||
<weight>Normal</weight>
|
||||
<slant>Normal</slant>
|
||||
</font>
|
||||
<font place="MenuItem">
|
||||
<name>JetBrainsMono Nerd Font</name>
|
||||
<size>9</size>
|
||||
<weight>Normal</weight>
|
||||
<slant>Normal</slant>
|
||||
</font>
|
||||
<font place="ActiveOnScreenDisplay">
|
||||
<name>JetBrainsMono Nerd Font</name>
|
||||
<size>9</size>
|
||||
<weight>Normal</weight>
|
||||
<slant>Normal</slant>
|
||||
</font>
|
||||
<font place="InactiveOnScreenDisplay">
|
||||
<name>JetBrainsMono Nerd Font</name>
|
||||
<size>9</size>
|
||||
<weight>Normal</weight>
|
||||
<slant>Normal</slant>
|
||||
</font>
|
||||
</theme>
|
||||
|
||||
<margin>
|
||||
<top>16</top>
|
||||
<bottom>16</bottom>
|
||||
<left>16</left>
|
||||
<right>16</right>
|
||||
</margin>
|
||||
|
||||
<placement>
|
||||
<policy>automatic</policy>
|
||||
</placement>
|
||||
|
||||
<desktops number="4" />
|
||||
|
||||
<keyboard>
|
||||
|
||||
<default/>
|
||||
<!-- Use a different terminal emulator -->
|
||||
<keybind key="W-Return">
|
||||
<action name="Execute" command="konsole"/>
|
||||
</keybind>
|
||||
<!--
|
||||
Remove a previously defined keybind
|
||||
A shorter alternative is <keybind key="W-F4" />
|
||||
-->
|
||||
<keybind key="W-F4">
|
||||
<action name="None"/>
|
||||
</keybind>
|
||||
|
||||
<numlock>on</numlock>
|
||||
|
||||
<!-- launcher -->
|
||||
<keybind key="W-Space">
|
||||
<action name="Execute" command="rofi -show drun"/>
|
||||
</keybind>
|
||||
<!-- xfce key bindings -->
|
||||
<keybind key="XF86_AudioLowerVolume">
|
||||
<action name="Execute" command="amixer -D pulse sset Master 5%-" />
|
||||
</keybind>
|
||||
<keybind key="XF86_AudioRaiseVolume">
|
||||
<action name="Execute" command="amixer -D pulse sset Master 5%+" />
|
||||
</keybind>
|
||||
<keybind key="XF86_AudioMute">
|
||||
<action name="Execute" command="amixer -D pulse sset Master toggle" />
|
||||
</keybind>
|
||||
<keybind key="W-q">
|
||||
<action name="Close" />6
|
||||
</keybind>
|
||||
<keybind key="A-Tab">
|
||||
<action name="NextWindow" />
|
||||
</keybind>
|
||||
<keybind key="W-Tab">
|
||||
<action name="ToggleMaximize" />
|
||||
</keybind>
|
||||
<keybind key="W-1">
|
||||
<action name="GoToDesktop" to="1" />
|
||||
</keybind>
|
||||
<keybind key="W-2">
|
||||
<action name="GoToDesktop" to="2" />
|
||||
</keybind>
|
||||
<keybind key="W-3">
|
||||
<action name="GoToDesktop" to="3" />
|
||||
</keybind>
|
||||
<keybind key="W-4">
|
||||
<action name="GoToDesktop" to="4" />
|
||||
</keybind>
|
||||
<!-- screenshot -->
|
||||
<keybind key="Print">
|
||||
<action name="Execute">
|
||||
<command>~/.config/xfce4/labwc/screenshot-full.sh</command>
|
||||
</action>
|
||||
</keybind>
|
||||
<keybind key="W-Print">
|
||||
<action name="Execute">
|
||||
<command>~/.config/xfce4/labwc/screenshot-part.sh</command>
|
||||
</action>
|
||||
</keybind>
|
||||
</keyboard>
|
||||
|
||||
<mouse>
|
||||
<!-- time is in ms -->
|
||||
<doubleClickTime>500</doubleClickTime>
|
||||
<scrollFactor>1.0</scrollFactor>
|
||||
|
||||
<context name="Frame">
|
||||
<mousebind button="A-Left" action="Press">
|
||||
<action name="Focus" />
|
||||
<action name="Raise" />
|
||||
</mousebind>
|
||||
<mousebind button="A-Left" action="Drag">
|
||||
<action name="Move" />
|
||||
</mousebind>
|
||||
<mousebind button="A-Right" action="Press">
|
||||
<action name="Focus" />
|
||||
<action name="Raise" />
|
||||
</mousebind>
|
||||
<mousebind button="A-Right" action="Drag">
|
||||
<action name="Resize" />
|
||||
</mousebind>
|
||||
</context>
|
||||
|
||||
<context name="Top">
|
||||
<mousebind button="Left" action="Drag">
|
||||
<action name="Resize" />
|
||||
</mousebind>
|
||||
</context>
|
||||
<context name="Left">
|
||||
<mousebind button="Left" action="Drag">
|
||||
<action name="Resize" />
|
||||
</mousebind>
|
||||
</context>
|
||||
<context name="Right">
|
||||
<mousebind button="Left" action="Drag">
|
||||
<action name="Resize" />
|
||||
</mousebind>
|
||||
</context>
|
||||
<context name="Bottom">
|
||||
<mousebind button="Left" action="Drag">
|
||||
<action name="Resize" />
|
||||
</mousebind>
|
||||
</context>
|
||||
<context name="TRCorner">
|
||||
<mousebind button="Left" action="Drag">
|
||||
<action name="Resize" />
|
||||
</mousebind>
|
||||
</context>
|
||||
<context name="BRCorner">
|
||||
<mousebind button="Left" action="Drag">
|
||||
<action name="Resize" />
|
||||
</mousebind>
|
||||
</context>
|
||||
<context name="TLCorner">
|
||||
<mousebind button="Left" action="Drag">
|
||||
<action name="Resize" />
|
||||
</mousebind>
|
||||
</context>
|
||||
<context name="BLCorner">
|
||||
<mousebind button="Left" action="Drag">
|
||||
<action name="Resize" />
|
||||
</mousebind>
|
||||
</context>
|
||||
|
||||
<context name="TitleBar">
|
||||
<mousebind button="Left" action="Press">
|
||||
<action name="Focus" />
|
||||
<action name="Raise" />
|
||||
</mousebind>
|
||||
<mousebind button="Right" action="Click">
|
||||
<action name="Focus" />
|
||||
<action name="Raise" />
|
||||
</mousebind>
|
||||
<mousebind direction="Up" action="Scroll">
|
||||
<action name="Unshade" />
|
||||
<action name="Focus" />
|
||||
</mousebind>
|
||||
<mousebind direction="Down" action="Scroll">
|
||||
<action name="Unfocus" />
|
||||
<action name="Shade" />
|
||||
</mousebind>
|
||||
</context>
|
||||
|
||||
<context name="Title">
|
||||
<mousebind button="Left" action="Drag">
|
||||
<action name="Move" />
|
||||
</mousebind>
|
||||
<mousebind button="Left" action="DoubleClick">
|
||||
<action name="ToggleMaximize" />
|
||||
</mousebind>
|
||||
<mousebind button="Right" action="Click">
|
||||
<action name="ShowMenu" menu="client-menu" />
|
||||
</mousebind>
|
||||
</context>
|
||||
|
||||
<context name="Maximize">
|
||||
<mousebind button="Left" action="Click">
|
||||
<action name="ToggleMaximize" />
|
||||
</mousebind>
|
||||
<mousebind button="Right" action="Click">
|
||||
<action name="ToggleMaximize" direction="horizontal" />
|
||||
</mousebind>
|
||||
<mousebind button="Middle" action="Click">
|
||||
<action name="ToggleMaximize" direction="vertical" />
|
||||
</mousebind>
|
||||
</context>
|
||||
|
||||
<context name="WindowMenu">
|
||||
<mousebind button="Left" action="Click">
|
||||
<action name="ShowMenu" menu="client-menu" />
|
||||
</mousebind>
|
||||
<mousebind button="Right" action="Click">
|
||||
<action name="ShowMenu" menu="client-menu" />
|
||||
</mousebind>
|
||||
</context>
|
||||
|
||||
<context name="Iconify">
|
||||
<mousebind button="Left" action="Click">
|
||||
<action name="Iconify" />
|
||||
</mousebind>
|
||||
</context>
|
||||
|
||||
<context name="Close">
|
||||
<mousebind button="Left" action="Click">
|
||||
<action name="Close" />
|
||||
</mousebind>
|
||||
</context>
|
||||
|
||||
<context name="Client">
|
||||
<mousebind button="Left" action="Press">
|
||||
<action name="Focus" />
|
||||
<action name="Raise" />
|
||||
</mousebind>
|
||||
<mousebind button="Middle" action="Press">
|
||||
<action name="Focus" />
|
||||
<action name="Raise" />
|
||||
</mousebind>
|
||||
<mousebind button="Right" action="Press">
|
||||
<action name="Focus" />
|
||||
<action name="Raise" />
|
||||
</mousebind>
|
||||
</context>
|
||||
|
||||
<context name="Root">
|
||||
<mousebind button="Left" action="Press">
|
||||
<action name="ShowMenu" menu="root-menu" />
|
||||
</mousebind>
|
||||
<mousebind button="Right" action="Press">
|
||||
<action name="ShowMenu" menu="root-menu" />
|
||||
</mousebind>
|
||||
<mousebind button="Middle" action="Press">
|
||||
<action name="ShowMenu" menu="root-menu" />
|
||||
</mousebind>
|
||||
<mousebind direction="W-Up" action="Scroll">
|
||||
<action name="GoToDesktop" to="left" wrap="yes" />
|
||||
</mousebind>
|
||||
<mousebind direction="W-Down" action="Scroll">
|
||||
<action name="GoToDesktop" to="right" wrap="yes" />
|
||||
</mousebind>
|
||||
</context>
|
||||
</mouse>
|
||||
|
||||
<snapping>
|
||||
<range>10</range>
|
||||
</snapping>
|
||||
|
||||
</labwc_config>
|
||||
16
dotfile/.config/xfce4/labwc/screenshot-full.sh
Executable file
16
dotfile/.config/xfce4/labwc/screenshot-full.sh
Executable file
|
|
@ -0,0 +1,16 @@
|
|||
#!/bin/sh
|
||||
|
||||
mkdir -p ~/resource/screenshot
|
||||
TIMESTAMP=$(date '+%Y-%m-%d_%H-%M-%S')
|
||||
FILENAME="$HOME/resource/screenshot/screenshot_${TIMESTAMP}.png"
|
||||
|
||||
grim "$FILENAME"
|
||||
|
||||
if [ -f "$FILENAME" ]; then
|
||||
wl-copy < "$FILENAME"
|
||||
notify-send "Screenshot" \
|
||||
"Saved & copied:\n$(basename "$FILENAME")\nGoshujin-sama!" \
|
||||
-i "$FILENAME"
|
||||
else
|
||||
notify-send "Screenshot" "Not saved!" -u critical
|
||||
fi
|
||||
22
dotfile/.config/xfce4/labwc/screenshot-part.sh
Executable file
22
dotfile/.config/xfce4/labwc/screenshot-part.sh
Executable file
|
|
@ -0,0 +1,22 @@
|
|||
#!/bin/sh
|
||||
|
||||
mkdir -p ~/resource/screenshot
|
||||
TIMESTAMP=$(date '+%Y-%m-%d_%H-%M-%S')
|
||||
FILENAME="$HOME/resource/screenshot/screenshot_${TIMESTAMP}.png"
|
||||
|
||||
grim -g "$(slurp -o -r -c '#ff0000ff')" -t ppm - | \
|
||||
satty --filename - \
|
||||
--fullscreen \
|
||||
--initial-tool crop \
|
||||
--output-filename "$FILENAME" \
|
||||
--disable-notifications \
|
||||
--early-exit
|
||||
|
||||
if [ -f "$FILENAME" ]; then
|
||||
wl-copy < "$FILENAME"
|
||||
notify-send "Screenshot" \
|
||||
"Saved & copied:\n$(basename "$FILENAME")\nGoshujin-sama!" \
|
||||
-i "$FILENAME"
|
||||
else
|
||||
notify-send "Screenshot" "Not saved!" -u critical
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue