From 39ca5ff64c88d21ec4423ffa1f591f398814d698 Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Mon, 3 Oct 2022 17:17:14 +0800 Subject: Change paths --- X11/openbox/rc.xml | 1057 +++++++++++++++++++++++++++++++++ X11/rofi/pass.edit | 22 + X11/rofi/pass.get | 54 ++ X11/rofi/pass.rm | 21 + X11/rofi/rofi-pass | 7 + X11/themes/Arc-Dark/openbox-3/themerc | 186 ++++++ 6 files changed, 1347 insertions(+) create mode 100644 X11/openbox/rc.xml create mode 100755 X11/rofi/pass.edit create mode 100755 X11/rofi/pass.get create mode 100755 X11/rofi/pass.rm create mode 100755 X11/rofi/rofi-pass create mode 100644 X11/themes/Arc-Dark/openbox-3/themerc (limited to 'X11') diff --git a/X11/openbox/rc.xml b/X11/openbox/rc.xml new file mode 100644 index 0000000..c8b284a --- /dev/null +++ b/X11/openbox/rc.xml @@ -0,0 +1,1057 @@ + + + + + + + 20 + 10 + + + yes + no + yes + no + 200 + no + + + Smart +
yes
+ Mouse + Mouse +
+ + Arc-Dark + DLIMC + yes + yes + + Sans + 18 + Bold + Normal + + + Hack Nerd Font + 18 + Normal + Normal + + + Hack Nerd Font + 18 + Bold + Normal + + + Hack Nerd Font + 18 + Normal + Normal + + + Hack Nerd Font + 18 + Bold + Normal + + + Hack Nerd Font + 18 + Normal + Normal + + + + 4 + 0 + + 1 + 2 + 3 + 4 + + 0 + + + yes + Always + Center + + 10 + 10 + + + + 0 + 0 + 0 + 0 + + + Bottom + 0 + 0 + no + Above + Vertical + no + 300 + 300 + Middle + + + + + + alacritty + -o "window.dimensions.lines=32" + -o "window.dimensions.columns=90" + -e vim ~/.config/openbox/rc.xml + + + + + + + 1 + + + + + 2 + + + + + 3 + + + + + 4 + + + + + + 1 + + + + + 2 + + + + + 3 + + + + + 4 + + + + + + no + yes + + no + + + + + + + + + yes + + no + + + + + + + + + yes + + no + + + + + + + + + + + + 50% + + + + + + + + 49% + + + + + + + + + + 60% + 60% + + + + + + + + + + 20% + 15 + 97% + 65% + + + + + + 60% + 60% + + + + + + + + + + + 0 + -0 + 50% + 50% + + + + + + 0 + -0 + 100% + 50% + + + + + + -0 + -0 + 50% + 50% + + + + + + 0 + 0 + 50% + 100% + + + + + + + + + -0 + 0 + 50% + 100% + + + + + + 0 + 0 + 50% + 50% + + + + + + 0 + 0 + 100% + 50% + + + + + + -0 + 0 + 50% + 50% + + + + + + 0 + -20 + + + + + 0 + 20 + + + + + -20 + 0 + + + + + 20 + 0 + + + + + + 20 + + + + + -20 + + + + + 20 + + + + + -20 + + + + + + + + + + + + + volume --inc + + + + + volume --dec + + + + + volume --toggle + + + + + mpc stop + + + + + mpc toggle + + + + + mpc prev + + + + + mpc next + + + + + + brightness --inc + + + + + brightness --dec + + + + + + takeshot --now + + + + + takeshot --in5 + + + + + takeshot --win + + + + + takeshot --area + + + + + + + alacritty + + + + + furminal + + + + + thunar ~/Downloads + + + + + firefox + + + + + + ~/.config/openbox/rofi/bin/launcher + + + + + networkmanager_dmenu + + + + + alacritty --title MPD -e ncmpcpp + + + + + alacritty --title Mutt + -o "window.dimensions.lines=32" + -o "window.dimensions.columns=110" + -e mutt + + + + + + alacritty --title Mutt + -o "window.dimensions.lines=32" + -o "window.dimensions.columns=110" + -e mutt -F ~/helper/mutt/muttrc.gmail + + + + + + ~/.config/openbox/rofi/bin/powermenu + + + + + + + + + + + polybar-msg cmd toggle + + + + + ~/.config/openbox/rofi/bin/screenshot + + + + + alacritty -e nmtui + + + + + blueman-manager + + + + + ~/.config/openbox/rofi/bin/runner + + + + + color-gpick + + + + + alacritty --hold -o "window.padding.x=100" -o "window.padding.y=70" -o "window.dimensions.columns=64" -o "window.dimensions.lines=9" -e cal -3 + + + + + ~/helper/X11/rofi/rofi-pass + + + + + + + alacritty -e vim + + + + + alacritty -e nvim + + + + + alacritty --title Ranger -e ranger + + + + + alacritty --title htop -o "window.startup_mode=Maximized" -e htop + + + + + alacritty -e bashtop + + + + + + betterlockscreen --lock + + + + + + + + + + + + + + + xkill + + + + + + + + + + + + + + + + + + + + + + root-menu + + + + + app-menu + + + + + client-menu + + + + + + 4 + 400 + 600 + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + yes + + + vertical + + center + current + + + + + + + + + + + + + + no + + + + + + + + + + + yes + + + + + + + + + + + client-menu + + + + + + + + + + + + + + client-menu + + + + + + + + + + + + top + + + + + + + + + + + left + + + + + + + + + + + right + + + + + + + + + + + bottom + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + client-menu + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + horizontal + + + + + + + + + + + + + + + previous + + + + + next + + + + + + + client-list-combined-menu + + + + + client-list-combined-menu + + + + + root-menu + + + + + + + menu-icons.xml + 400 + no + 100 + 200 + no + yes + + + + + no + yes + yes + + center + center + + + + + center + center + + + 50% + + + + no + + + + center + center + + + + +
+ diff --git a/X11/rofi/pass.edit b/X11/rofi/pass.edit new file mode 100755 index 0000000..fb6ade9 --- /dev/null +++ b/X11/rofi/pass.edit @@ -0,0 +1,22 @@ +#! /bin/sh + +ROFI_ARGS=( '-font' 'Hack 22' ) +ENTRIES="$(find ~/.password-store -name '*gpg' -printf %P\\n | sed 's/.gpg$//')" + +# Give rofi available passwords and exit +if [ $# -eq 0 ]; then + # Specify rofi prompt as 'Edit' + echo -e "\0prompt\x1fEdit" + + echo "$ENTRIES" + exit 0 +fi + +# If password doesn't exist, just quit +<<<"$ENTRIES" grep -q $1 || exit 0 + +# Use alacritty to edit password +coproc ( + alacritty -e pass edit $1 && pass $1 --clip + rofi "${ROFI_ARGS[@]}" -e "Copied: $1" +) diff --git a/X11/rofi/pass.get b/X11/rofi/pass.get new file mode 100755 index 0000000..df70652 --- /dev/null +++ b/X11/rofi/pass.get @@ -0,0 +1,54 @@ +#! /bin/sh + +ROFI_ARGS=( '-font' 'Hack 22' ) +OPTIONS_NEW=( 'NO' 'YES' 'YES, and edit it' ) + +# Generate a new password +if [ -n "${ROFI_DATA}" ]; then + [ "$1" == "${OPTIONS_NEW[1]}" ] && \ + coproc ( + export POST=false + pass generate ${ROFI_DATA} --clip + rofi "${ROFI_ARGS[@]}" -e "Generate and Copied: ${ROFI_DATA}" + ) + + [ "$1" == "${OPTIONS_NEW[2]}" ] && \ + coproc ( + export POST=false + pass generate ${ROFI_DATA} --clip + alacritty -e pass edit ${ROFI_DATA}; \ + ) + + exit 0 +fi + +# Give rofi available passwords and exit +if [ $# -eq 0 ]; then + # Specify rofi prompt as 'Get' + echo -e "\0prompt\x1fGet" + + find ~/.password-store -name '*gpg' -printf %P\\n | \ + sed 's/.gpg$//' + + exit 0 +fi + +# Test password exists or not +RESULT="$(pass $1)" +if [ -n "$RESULT" ]; then + # Copy the given password into clipboard + echo "$RESULT" | head -1 | xsel -ib + + # And show extra message + EXTRA="$(echo; echo; echo "$RESULT" | sed '1d; 1{/^$/d}')" + coproc ( rofi "${ROFI_ARGS[@]}" -e "Copied: $1$EXTRA" ) +# Password doesn't exist yet +# Go to next rofi execution +else + echo -e "\0prompt\x1f$1 doesn't exist, generate it?" + echo -e "\0data\x1f$1" + + for i in "${OPTIONS_NEW[@]}"; do + echo $i + done +fi diff --git a/X11/rofi/pass.rm b/X11/rofi/pass.rm new file mode 100755 index 0000000..44bdc33 --- /dev/null +++ b/X11/rofi/pass.rm @@ -0,0 +1,21 @@ +#! /bin/sh + +ROFI_ARGS=( '-font' 'Hack 22' ) +ENTRIES="$(find ~/.password-store -name '*gpg' -printf %P\\n | sed 's/.gpg$//')" + +# Give rofi available passwords and exit +if [ $# -eq 0 ]; then + # Specify rofi prompt as 'Remove' + echo -e "\0prompt\x1fRemove" + + echo "$ENTRIES" + exit 0 +fi + +# If password doesn't exist, just quit +<<<"$ENTRIES" grep -q $1 && \ + coproc ( + pass rm $1 &>/dev/null && \ + rofi "${ROFI_ARGS[@]}" -e "Removed: $1" || \ + rofi "${ROFI_ARGS[@]}" -e "Fail to remove $1" + ) diff --git a/X11/rofi/rofi-pass b/X11/rofi/rofi-pass new file mode 100755 index 0000000..1730b93 --- /dev/null +++ b/X11/rofi/rofi-pass @@ -0,0 +1,7 @@ +#! /bin/bash + +cd $(dirname $0) + +rofi -show get\ + -modes get:./pass.get,edit:./pass.edit,rm:./pass.rm \ + -font 'Hack 22' diff --git a/X11/themes/Arc-Dark/openbox-3/themerc b/X11/themes/Arc-Dark/openbox-3/themerc new file mode 100644 index 0000000..3db5fe5 --- /dev/null +++ b/X11/themes/Arc-Dark/openbox-3/themerc @@ -0,0 +1,186 @@ +## Openbox Theme ################################################## +## Created by : Aditya Shakya <@adi1090x> For Archcraft # +## ############# ################################################## + +#-- Window geometry ----------------------------------------------- +padding.width: 8 +padding.height: 8 +border.width:3 +window.client.padding.width: 0 +window.client.padding.height: 0 +window.handle.width: 0 + +#-- Menu geometry ------------------------------------------------- +menu.border.width: 8 +menu.overlap.x: -13 +menu.overlap.y: 8 +menu.separator.width: 1 +menu.separator.padding.width: 0 +menu.separator.padding.height: 2 + +#-- Border colors ------------------------------------------------- +window.active.border.color: #FF79C6 +window.inactive.border.color: #2F343F +window.active.client.color: #2F343F +window.inactive.client.color: #2F343F +window.active.title.separator.color: #2F343F +window.inactive.title.separator.color: #2F343F +menu.border.color: #2F343F + +#-- Text shadows -------------------------------------------------- +## Example -> shadow=y:shadowtint=70:shadowoffset=1 +window.active.label.text.font: shadow=n +window.inactive.label.text.font: shadow=n +menu.items.font: shadow=n +menu.title.text.font: shadow=n +osd.label.text.font: shadow=n + +#-- Justification ------------------------------------------------- +window.label.text.justify: Center +menu.title.text.justify: Center + +#-- Active window ------------------------------------------------- +window.active.title.bg: Flat Solid +window.active.title.bg.color: #2F343F +window.active.label.bg: Parentrelative +window.active.label.text.color: #B5BCC9 + +window.active.handle.bg: Flat Solid +window.active.handle.bg.color: #383C4A + +window.active.grip.bg: Flat Solid +window.active.grip.bg.color: #383C4A + +window.active.button.unpressed.bg: Flat Solid +window.active.button.unpressed.bg.color: #2F343F +window.active.button.unpressed.image.color: #7F8898 + +window.active.button.pressed.bg: Flat Solid +window.active.button.pressed.bg.color: #2F343F +window.active.button.pressed.image.color: #5294E2 + +window.active.button.disabled.bg: Flat Solid +window.active.button.disabled.bg.color: #2F343F +window.active.button.disabled.image.color: #444A58 + +window.active.button.hover.bg: Flat Solid +window.active.button.hover.bg.color: #2F343F +window.active.button.hover.image.color: #B5BCC9 + +window.active.button.toggled.unpressed.bg: Flat Solid +window.active.button.toggled.unpressed.bg.color: #2F343F +window.active.button.toggled.unpressed.image.color: #7F8898 + +window.active.button.toggled.pressed.bg: Flat Solid +window.active.button.toggled.pressed.bg.color: #2F343F +window.active.button.toggled.pressed.image.color: #5294E2 + +window.active.button.toggled.hover.bg: Flat Solid +window.active.button.toggled.hover.bg.color: #2F343F +window.active.button.toggled.hover.image.color: #B5BCC9 + +#-- Inactive windows ----------------------------------------------- +window.inactive.title.bg: Flat Solid +window.inactive.title.bg.color: #2F343F +window.inactive.label.bg: Parentrelative +window.inactive.label.text.color: #7F8898 + +window.inactive.handle.bg: Flat Solid +window.inactive.handle.bg.color: #383C4A + +window.inactive.grip.bg: Flat Solid +window.inactive.grip.bg.color: #383C4A + +window.inactive.button.unpressed.bg: Flat Solid +window.inactive.button.unpressed.bg.color: #2F343F +window.inactive.button.unpressed.image.color: #7F8898 + +window.inactive.button.pressed.bg: Flat Solid +window.inactive.button.pressed.bg.color: #2F343F +window.inactive.button.pressed.image.color: #5294E2 + +window.inactive.button.disabled.bg: Flat Solid +window.inactive.button.disabled.bg.color: #2F343F +window.inactive.button.disabled.image.color: #444A58 + +window.inactive.button.hover.bg: Flat Solid +window.inactive.button.hover.bg.color: #2F343F +window.inactive.button.hover.image.color: #B5BCC9 + +window.inactive.button.toggled.unpressed.bg: Flat Solid +window.inactive.button.toggled.unpressed.bg.color: #2F343F +window.inactive.button.toggled.unpressed.image.color: #7F8898 + +window.inactive.button.toggled.pressed.bg: Flat Solid +window.inactive.button.toggled.pressed.bg.color: #2F343F +window.inactive.button.toggled.pressed.image.color: #5294E2 + +window.inactive.button.toggled.hover.bg: Flat Solid +window.inactive.button.toggled.hover.bg.color: #2F343F +window.inactive.button.toggled.hover.image.color: #B5BCC9 + +#-- Close Button ------------------------------------------------- +window.active.button.close.unpressed.image.color: #CC575D +window.active.button.close.pressed.image.color: #BE3841 +window.active.button.close.hover.image.color: #D7787D +window.inactive.button.close.unpressed.image.color: #CC575D +window.inactive.button.close.pressed.image.color: #BE3841 +window.inactive.button.close.hover.image.color: #D7787D + +#-- Menu --------------------------------------------------------- +menu.title.bg: Flat Solid +menu.title.bg.color: #383C4A +menu.title.text.color: #5294E2 + +menu.separator.color: #2F343F + +menu.items.bg: Flat Solid +menu.items.bg.color: #2F343F +menu.items.text.color: #B5BCC9 +menu.items.disabled.text.color: #7F8898 + +menu.items.active.bg: Flat Solid +menu.items.active.bg.color: #5294E2 +menu.items.active.text.color: #FFFFFF +menu.items.active.disabled.text.color: #2F343F + +#-- OSD Settings ------------------------------------------------- +osd.border.width: 4 +osd.border.color: #383C4A + +osd.bg: Flat Solid +osd.bg.color: #2F343F +osd.label.text.color: #B5BCC9 + +osd.active.label.bg: Flat Solid +osd.active.label.bg.color: #2F343F +osd.active.label.text.color: #5294E2 +osd.inactive.label.bg: Flat Solid +osd.inactive.label.bg.color: #2F343F +osd.inactive.label.text.color: #B5BCC9 + +osd.hilight.bg: Flat Solid +osd.hilight.bg.color: #5294E2 +osd.unhilight.bg: Flat Solid +osd.unhilight.bg.color: #2F343F + +osd.button.unpressed.bg: Flat Solid Border +osd.button.unpressed.bg.color: #444A58 +osd.button.unpressed.*.border.color: #444A58 +osd.button.unpressed.text.color: #B5BCC9 + +osd.button.hover.bg: Flat Solid Border +osd.button.hover.bg.color: #444A58 +osd.button.hover.*.border.color: #5294E2 +osd.button.hover.text.color: #5294E2 + +osd.button.pressed.bg: Flat Solid Border +osd.button.pressed.bg.color: #444A58 +osd.button.pressed.*.border.color: #CC575D +osd.button.pressed.text.color: #CC575D +osd.button.pressed.box.color: #444A58 + +osd.button.focused.bg: Flat Solid +osd.button.focused.bg.color: #444A58 +osd.button.focused.text.color: #B5BCC9 +osd.button.focused.box.color: #444A58 -- cgit v1.2.3-70-g09d2