update dotfile
This commit is contained in:
parent
b6da41ad5b
commit
31560f486a
43 changed files with 343 additions and 3648 deletions
4
dotfile/.config/xfce4/labwc/autostart
Normal file
4
dotfile/.config/xfce4/labwc/autostart
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
swww-daemon >/dev/null 2>&1 &
|
||||
xdg-open 'obsidian://open?vault=widget&file=main.md' 2>&1 &
|
||||
copyq --start-server hide 2>&1 &
|
||||
otd-daemon 2>&1 &
|
||||
|
|
@ -1,22 +1,90 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<openbox_menu>
|
||||
<menu id="root-menu" label="root-menu">
|
||||
<menu id="client-list-combined-menu" />
|
||||
<item label="Launcher" ><action name="Execute" command="rofi -show drun" /></item>
|
||||
<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 id="note" label="Note">
|
||||
<item label="Main">
|
||||
<action name="Execute">
|
||||
<command>xdg-open 'obsidian://open?vault=main'</command>
|
||||
</action>
|
||||
</item>
|
||||
<item label="Widget">
|
||||
<action name="Execute">
|
||||
<command>xdg-open 'obsidian://open?vault=widget&file=home.md'</command>
|
||||
</action>
|
||||
</item>
|
||||
</menu>
|
||||
<menu id="file manager" label="File" >
|
||||
<item label="Dolphin"><action name="Execute" command="dolphin" /></item>
|
||||
<item label="Thunar"><action name="Execute" command="thunar" /></item>
|
||||
<item label="Yazi"><action name="Execute" command="konsole yazi" /></item>
|
||||
</menu>
|
||||
<menu id="browser" label="Browser" >
|
||||
<item label="Brave"><action name="Execute" command="brave" /></item>
|
||||
<item label="Librewolf"><action name="Execute" command="librewolf" /></item>
|
||||
</menu>
|
||||
<menu id="terminal" label="Terminal" >
|
||||
<item label="Konsole"><action name="Execute" command="konsole" /></item>
|
||||
<item label="Ghostty"><action name="Execute" command="ghostty" /></item>
|
||||
</menu>
|
||||
<menu id="tool" label="Tool" >
|
||||
<item label="Clipboard"><action name="Execute" command="copyq show" /></item>
|
||||
<item label="Screenshot"><action name="Execute" command="a" /></item>
|
||||
</menu>
|
||||
<menu id="code-editor" label="Code" >
|
||||
<item label="AntiGravity"><action name="Execute" command="antigravity" /></item>
|
||||
<separator />
|
||||
<item label="VSCodium"><action name="Execute" command="codium" /></item>
|
||||
<item label="Zed"><action name="Execute" command="zeditor" /></item>
|
||||
<item label="NeoVim"><action name="Execute" command="nvim" /></item>
|
||||
<item label="Vim"><action name="Execute" command="vim" /></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>
|
||||
<menu id="config" label="Config">
|
||||
<item label="session"><action name="Execute" command="xfce4-session-settings" /></item>
|
||||
<item label="display"><action name="Execute" command="xfce4-display-settings" /></item>
|
||||
<item label="color"><action name="Execute" command="xfce4-color-settings" /></item>
|
||||
<item label="panel"><action name="Execute" command="xfce4-panel -p" /></item>
|
||||
<item label="appearance"><action name="Execute" command="xfce4-appearance-settings" /></item>
|
||||
<item label="notification"><action name="Execute" command="xfce4-notifyd-config" /></item>
|
||||
<item label="settings-editor"><action name="Execute" command="xfce4-settings-editor" /></item>
|
||||
<item label="waypaper"><action name="Execute" command="waypaper" /></item>
|
||||
<item label="labwc config-file">
|
||||
<action name="Execute">
|
||||
<command>xdg-open '~/.config/xfce4/labwc/'</command>
|
||||
</action>
|
||||
</item>
|
||||
<item label="labwc --reconfigure"><action name="Reconfigure" /></item>
|
||||
</menu>
|
||||
<menu id="exit" label="Exit">
|
||||
<item label="x11 Switch"><action name="Execute" command="xfce4-session-logout" /></item>
|
||||
<item label="Logout"><action name="Execute" command="xfce4-session-logout" /></item>
|
||||
</menu>
|
||||
<separator />
|
||||
<item label="Launcher" ><action name="Execute" command="rofi -show drun" /></item>
|
||||
</menu>
|
||||
|
||||
<menu id="client-menu">
|
||||
<item label="Minimize">
|
||||
<action name="Iconify" />
|
||||
</item>
|
||||
<item label="Maximize">
|
||||
<action name="ToggleMaximize" />
|
||||
</item>
|
||||
<item label="Fullscreen">
|
||||
<action name="ToggleFullscreen" />
|
||||
</item>
|
||||
<item label="Decorations">
|
||||
<action name="ToggleDecorations" />
|
||||
</item>
|
||||
<item label="Always on Top">
|
||||
<action name="ToggleAlwaysOnTop" />
|
||||
</item>
|
||||
<menu id="client-send-to-menu"/>
|
||||
<item label="Close">
|
||||
<action name="Close" />
|
||||
</item>
|
||||
</menu>
|
||||
|
||||
</openbox_menu>
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
<labwc_config>
|
||||
|
||||
<theme>
|
||||
<name>Lean</name>
|
||||
<name>openbox-lean</name>
|
||||
<titlebar>
|
||||
<layout>menu,desk:iconify,max,close</layout>
|
||||
</titlebar>
|
||||
|
|
@ -113,15 +113,25 @@
|
|||
<keybind key="W-4">
|
||||
<action name="GoToDesktop" to="4" />
|
||||
</keybind>
|
||||
<keybind key="W-F11">
|
||||
<action name="ToggleFullscreen" />
|
||||
</keybind>
|
||||
|
||||
<keybind key="A-Q">
|
||||
<action name="Execute">
|
||||
<command>xdg-open 'obsidian://advanced-uri?vault=widget&commandname=QuickAdd:%20quick-note-today'</command>
|
||||
</action>
|
||||
</keybind>
|
||||
|
||||
<!-- screenshot -->
|
||||
<keybind key="Print">
|
||||
<action name="Execute">
|
||||
<command>~/.config/xfce4/labwc/screenshot-full.sh</command>
|
||||
<command>~/.config/screenshot-script/wayland-screenshot-full.sh</command>
|
||||
</action>
|
||||
</keybind>
|
||||
<keybind key="W-Print">
|
||||
<action name="Execute">
|
||||
<command>~/.config/xfce4/labwc/screenshot-part.sh</command>
|
||||
<command>~/.config/screenshot-script/wayland-screenshot-part.sh</command>
|
||||
</action>
|
||||
</keybind>
|
||||
</keyboard>
|
||||
|
|
@ -136,7 +146,7 @@
|
|||
<action name="Focus" />
|
||||
<action name="Raise" />
|
||||
</mousebind>
|
||||
<mousebind button="A-Left" action="Drag">
|
||||
<mousebind button="W-Right" action="Drag">
|
||||
<action name="Move" />
|
||||
</mousebind>
|
||||
<mousebind button="A-Right" action="Press">
|
||||
|
|
@ -268,6 +278,24 @@
|
|||
</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>
|
||||
<mousebind button="W-Middle" action="Press">
|
||||
<action name="ShowMenu" menu="client-menu" />
|
||||
</mousebind>
|
||||
</context>
|
||||
|
||||
<context name="Root">
|
||||
<mousebind button="Left" action="Press">
|
||||
<action name="ShowMenu" menu="root-menu" />
|
||||
|
|
@ -276,7 +304,7 @@
|
|||
<action name="ShowMenu" menu="root-menu" />
|
||||
</mousebind>
|
||||
<mousebind button="Middle" action="Press">
|
||||
<action name="ShowMenu" menu="root-menu" />
|
||||
<action name="ShowMenu" menu="client-list-combined-menu" />
|
||||
</mousebind>
|
||||
<mousebind direction="W-Up" action="Scroll">
|
||||
<action name="GoToDesktop" to="left" wrap="yes" />
|
||||
|
|
@ -285,6 +313,8 @@
|
|||
<action name="GoToDesktop" to="right" wrap="yes" />
|
||||
</mousebind>
|
||||
</context>
|
||||
|
||||
|
||||
</mouse>
|
||||
|
||||
<snapping>
|
||||
|
|
|
|||
|
|
@ -1,16 +0,0 @@
|
|||
#!/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
|
||||
|
|
@ -1,22 +0,0 @@
|
|||
#!/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