Update 2023-11-08 11:02 OpenBSD/amd64-x13
This commit is contained in:
		
							parent
							
								
									a06d18fb17
								
							
						
					
					
						commit
						f8886aaf01
					
				
							
								
								
									
										15
									
								
								.bin/_config
									
									
									
									
									
								
							
							
						
						
									
										15
									
								
								.bin/_config
									
									
									
									
									
								
							@ -4,10 +4,10 @@
 | 
				
			|||||||
#
 | 
					#
 | 
				
			||||||
# FONTS
 | 
					# FONTS
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
DFONT="FuraCodeNerdFont-13"
 | 
					DFONT="JetBrainsMono-11"
 | 
				
			||||||
SFONT="FuraCodeNerdFont-12"
 | 
					SFONT="JetBrainsMono-11"
 | 
				
			||||||
BFONT="FuraCodeNerdFont-18"
 | 
					BFONT="IosevkaTermNerdFont-18"
 | 
				
			||||||
HFONT="FuraCodeNerdFont-24"
 | 
					HFONT="IosevkaTermNerdFont-24"
 | 
				
			||||||
#SFONT="-uw-ttyp0-medium-r-normal--16-150-75-75-c-80-iso10646-1"
 | 
					#SFONT="-uw-ttyp0-medium-r-normal--16-150-75-75-c-80-iso10646-1"
 | 
				
			||||||
#BFONT="-misc-spleen-medium-r-normal--24-240-72-72-c-120-iso10646-1"
 | 
					#BFONT="-misc-spleen-medium-r-normal--24-240-72-72-c-120-iso10646-1"
 | 
				
			||||||
#HFONT="-misc-spleen-medium-r-normal--32-320-72-72-c-160-iso10646-1"
 | 
					#HFONT="-misc-spleen-medium-r-normal--32-320-72-72-c-160-iso10646-1"
 | 
				
			||||||
@ -28,10 +28,13 @@ HTERM="st -f ${HFONT}"
 | 
				
			|||||||
#
 | 
					#
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# NOTION ORANGE
 | 
					# NOTION ORANGE
 | 
				
			||||||
# DMENUOPTS="-fn '$DFONT'  -nb #121212 -nf #707070 -sf #FFA600 -sb #121212 -l 10 -i -f"
 | 
					DMENUOPTS="-fn '$DFONT'  -nb #181818 -nf #707070 -sf #FFA600 -sb #222222 -l 20 -i -f"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# BSPWM
 | 
				
			||||||
 | 
					# DMENUOPTS="-fn '$DFONT'  -nb #222222 -nf #707070 -sf #CCCCCC -sb #222222 -i -f"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# SPECTRWM GREY
 | 
					# SPECTRWM GREY
 | 
				
			||||||
DMENUOPTS="-fn $DFONT -nb #181818 -nf #999999 -sf #CCCCCC -sb #181818 -i -f"
 | 
					# DMENUOPTS="-fn $DFONT -nb #181818 -nf #999999 -sf #CCCCCC -sb #181818 -i -f"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
DMENU_CMD="dmenu $DMENUOPTS"
 | 
					DMENU_CMD="dmenu $DMENUOPTS"
 | 
				
			||||||
DMENURUN_CMD="dmenu_run $DMENUOPTS"
 | 
					DMENURUN_CMD="dmenu_run $DMENUOPTS"
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										24
									
								
								.bin/blog
									
									
									
									
									
								
							
							
						
						
									
										24
									
								
								.bin/blog
									
									
									
									
									
								
							@ -1,5 +1,8 @@
 | 
				
			|||||||
#!/bin/sh
 | 
					#!/bin/sh
 | 
				
			||||||
. $HOME/.bin/_config
 | 
					
 | 
				
			||||||
 | 
					USER=sdk
 | 
				
			||||||
 | 
					DOMAIN=home.codevoid.de
 | 
				
			||||||
 | 
					RPATH=~/make-web/src
 | 
				
			||||||
 | 
					
 | 
				
			||||||
usage() {
 | 
					usage() {
 | 
				
			||||||
    printf 'Usage: %s <option> <file.ext>\n' "$TYPE";
 | 
					    printf 'Usage: %s <option> <file.ext>\n' "$TYPE";
 | 
				
			||||||
@ -19,10 +22,17 @@ chkfile() {
 | 
				
			|||||||
new() {
 | 
					new() {
 | 
				
			||||||
    chkfile
 | 
					    chkfile
 | 
				
			||||||
    printf "New Entry:\n"
 | 
					    printf "New Entry:\n"
 | 
				
			||||||
    printf "$1\n$dash\n\nChangelog:\n* $date: Created\n" > "/tmp/tmp-$date-$1" && \
 | 
					    printf "$1\n" | tr '_' ' ' > "/tmp/tmp-$date-$1" && \
 | 
				
			||||||
    vim "/tmp/tmp-$date-$1" \
 | 
					    vim "/tmp/tmp-$date-$1" \
 | 
				
			||||||
    && scp "/tmp/tmp-$date-$1" \
 | 
					    && scp "/tmp/tmp-$date-$1" \
 | 
				
			||||||
        $USER@$DOMAIN:"$RPATH/posts/$date-$1"
 | 
					        $USER@$DOMAIN:"$RPATH/posts/$date-$1"
 | 
				
			||||||
 | 
					    makeblog
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					delete() {
 | 
				
			||||||
 | 
					    chkfile
 | 
				
			||||||
 | 
					    printf "Delete Entry: $1\n"
 | 
				
			||||||
 | 
					    ssh $USER@$DOMAIN "rm -vf $RPATH/posts/$1"
 | 
				
			||||||
 | 
					    makeblog
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
list() {
 | 
					list() {
 | 
				
			||||||
@ -35,15 +45,19 @@ list() {
 | 
				
			|||||||
edit() {
 | 
					edit() {
 | 
				
			||||||
    chkfile
 | 
					    chkfile
 | 
				
			||||||
    printf "Edit Entry:\n"
 | 
					    printf "Edit Entry:\n"
 | 
				
			||||||
    [ -z $1 ] && printf "Usage: editblog <file.gph>\n" && return
 | 
					    [ -z $1 ] && printf "Usage: editblog <file.ext>\n" && return
 | 
				
			||||||
    printf "Opening $1\n"
 | 
					    printf "Opening $1\n"
 | 
				
			||||||
    local date=$(date +"%Y-%m-%d")
 | 
					    local date=$(date +"%Y-%m-%d")
 | 
				
			||||||
    scp -q $USER@$DOMAIN:"$RPATH/posts/$1" "/tmp/tmp-$1" && \
 | 
					    scp -q $USER@$DOMAIN:"$RPATH/posts/$1" "/tmp/tmp-$1" && \
 | 
				
			||||||
    printf "* $date: \n" >> "/tmp/tmp-$1" && \
 | 
					 | 
				
			||||||
    vim "/tmp/tmp-$1" && \
 | 
					    vim "/tmp/tmp-$1" && \
 | 
				
			||||||
    scp -q "/tmp/tmp-$1" $USER@$DOMAIN:"$RPATH/posts/$1" && \
 | 
					    scp -q "/tmp/tmp-$1" $USER@$DOMAIN:"$RPATH/posts/$1" && \
 | 
				
			||||||
    rm "/tmp/tmp-$1" && \
 | 
					    rm "/tmp/tmp-$1" && \
 | 
				
			||||||
    printf "Saved $1\n"
 | 
					    printf "Saved $1\n"
 | 
				
			||||||
 | 
					    makeblog
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					makeblog() {
 | 
				
			||||||
 | 
					    ssh $USER@$DOMAIN "cd ~/make-web && make install"
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
date=$(date +"%Y-%m-%d")
 | 
					date=$(date +"%Y-%m-%d")
 | 
				
			||||||
@ -74,6 +88,8 @@ case $1 in
 | 
				
			|||||||
        ;;
 | 
					        ;;
 | 
				
			||||||
    ls) list;
 | 
					    ls) list;
 | 
				
			||||||
        ;;
 | 
					        ;;
 | 
				
			||||||
 | 
					    rm) delete $2;
 | 
				
			||||||
 | 
					        ;;
 | 
				
			||||||
    *)  usage;
 | 
					    *)  usage;
 | 
				
			||||||
        exit 2;
 | 
					        exit 2;
 | 
				
			||||||
        ;;
 | 
					        ;;
 | 
				
			||||||
 | 
				
			|||||||
@ -1,3 +1,3 @@
 | 
				
			|||||||
#!/bin/sh
 | 
					#!/bin/sh
 | 
				
			||||||
. $HOME/.bin/_config
 | 
					. $HOME/.bin/_config
 | 
				
			||||||
$DMENURUN_CMD -p Exec
 | 
					$DMENURUN_CMD -p "$"
 | 
				
			||||||
 | 
				
			|||||||
@ -21,7 +21,7 @@ touch "${HISTFILE}"
 | 
				
			|||||||
read_input() {
 | 
					read_input() {
 | 
				
			||||||
    local S=$( { echo "paste_from_clipboard"; tail -r ${HISTFILE}; } \
 | 
					    local S=$( { echo "paste_from_clipboard"; tail -r ${HISTFILE}; } \
 | 
				
			||||||
                 | awk '!seen[$0]++' \
 | 
					                 | awk '!seen[$0]++' \
 | 
				
			||||||
                 |  ${DMENU_CMD} -p "Bookmarks")
 | 
					                 |  ${DMENU_CMD} -p "bookmark>")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    case "${S}" in
 | 
					    case "${S}" in
 | 
				
			||||||
        paste_from_clipboard) S=$(xclip -o | head -n 1); ;;
 | 
					        paste_from_clipboard) S=$(xclip -o | head -n 1); ;;
 | 
				
			||||||
 | 
				
			|||||||
@ -1,5 +1,5 @@
 | 
				
			|||||||
#!/bin/sh
 | 
					#!/bin/sh
 | 
				
			||||||
. $HOME/.dbus_address
 | 
					. /home/sdk/.dbus_address
 | 
				
			||||||
MSG="It's $(/bin/date +"%H:%M"). Drink some water!"
 | 
					MSG="It's $(/bin/date +"%H:%M"). Drink some water!"
 | 
				
			||||||
notify-send "$MSG"
 | 
					/usr/local/bin/notify-send "$MSG"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -1,20 +1,20 @@
 | 
				
			|||||||
#!/bin/sh
 | 
					#!/bin/sh
 | 
				
			||||||
notify-send -i display "Display profile" "$AUTORANDR_CURRENT_PROFILE"
 | 
					notify-send -i display "Display profile" "$AUTORANDR_CURRENT_PROFILE"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if [ "$AUTORANDR_CURRENT_PROFILE" == "workstation" ];
 | 
					# if [ "$AUTORANDR_CURRENT_PROFILE" == "workstation" ];
 | 
				
			||||||
then
 | 
					# then
 | 
				
			||||||
xinput set-prop /dev/wsmouse "Device Accel Constant Deceleration" 0.8
 | 
					# xinput set-prop /dev/wsmouse "Device Accel Constant Deceleration" 0.8
 | 
				
			||||||
xinput set-prop /dev/wsmouse "Device Accel Adaptive Deceleration" 1.4
 | 
					# xinput set-prop /dev/wsmouse "Device Accel Adaptive Deceleration" 1.4
 | 
				
			||||||
fi
 | 
					# fi
 | 
				
			||||||
 | 
					# 
 | 
				
			||||||
if [ "$AUTORANDR_CURRENT_PROFILE" == "workstation2" ];
 | 
					# if [ "$AUTORANDR_CURRENT_PROFILE" == "workstation2" ];
 | 
				
			||||||
then
 | 
					# then
 | 
				
			||||||
xinput set-prop /dev/wsmouse "Device Accel Constant Deceleration" 0.8
 | 
					# xinput set-prop /dev/wsmouse "Device Accel Constant Deceleration" 0.8
 | 
				
			||||||
xinput set-prop /dev/wsmouse "Device Accel Adaptive Deceleration" 1.4
 | 
					# xinput set-prop /dev/wsmouse "Device Accel Adaptive Deceleration" 1.4
 | 
				
			||||||
fi
 | 
					# fi
 | 
				
			||||||
 | 
					# 
 | 
				
			||||||
if [ "$AUTORANDR_CURRENT_PROFILE" == "workstation-usbc" ];
 | 
					# if [ "$AUTORANDR_CURRENT_PROFILE" == "workstation-usbc" ];
 | 
				
			||||||
then
 | 
					# then
 | 
				
			||||||
xinput set-prop /dev/wsmouse "Device Accel Constant Deceleration" 0.8
 | 
					# xinput set-prop /dev/wsmouse "Device Accel Constant Deceleration" 0.8
 | 
				
			||||||
xinput set-prop /dev/wsmouse "Device Accel Adaptive Deceleration" 1.4
 | 
					# xinput set-prop /dev/wsmouse "Device Accel Adaptive Deceleration" 1.4
 | 
				
			||||||
fi
 | 
					# fi
 | 
				
			||||||
 | 
				
			|||||||
@ -6,22 +6,28 @@ pgrep -q polybar || polybar &
 | 
				
			|||||||
# start hotkey daemon
 | 
					# start hotkey daemon
 | 
				
			||||||
pgrep -q sxhkd || sxhkd -c $HOME/.config/bspwm/sxhkdrc &
 | 
					pgrep -q sxhkd || sxhkd -c $HOME/.config/bspwm/sxhkdrc &
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# we're fancy now.
 | 
				
			||||||
 | 
					pgrep -q picom || picom &
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# configure bspwm
 | 
					# configure bspwm
 | 
				
			||||||
bspc monitor -d 1 2 3 4 5 6 7 8 9 10
 | 
					bspc monitor -d 1 2 3 4 5 6 7 8 9 10
 | 
				
			||||||
 | 
					
 | 
				
			||||||
bspc config border_width            1
 | 
					bspc config border_width            2
 | 
				
			||||||
bspc config window_gap              12
 | 
					bspc config window_gap              12
 | 
				
			||||||
 | 
					
 | 
				
			||||||
remove_disabled_monitors            true
 | 
					remove_disabled_monitors            true
 | 
				
			||||||
remove_unplugged_monitors           true
 | 
					remove_unplugged_monitors           true
 | 
				
			||||||
 | 
					
 | 
				
			||||||
bspc config split_ratio             0.52
 | 
					bspc config split_ratio             0.50
 | 
				
			||||||
bspc config focus_follows_pointer   true
 | 
					bspc config focus_follows_pointer   true
 | 
				
			||||||
 | 
					
 | 
				
			||||||
bspc config borderless_monocle      false
 | 
					bspc config borderless_monocle      false
 | 
				
			||||||
bspc config gapless_monocle         true
 | 
					bspc config gapless_monocle         true
 | 
				
			||||||
 | 
					
 | 
				
			||||||
bspc config focused_border_color    "#FF6A00"
 | 
					bspc config focused_border_color    "#FF6A00"
 | 
				
			||||||
 | 
					bspc config active_border_color     "#444444"
 | 
				
			||||||
 | 
					bspc config normal_border_color     "#222222"
 | 
				
			||||||
 | 
					bspc config ignore_ewmh_fullscreen true
 | 
				
			||||||
 | 
					
 | 
				
			||||||
bspc config presel_feedback_color   "#FF6A00"
 | 
					bspc config presel_feedback_color   "#FF6A00"
 | 
				
			||||||
bspc config presel_feedback         false
 | 
					bspc config presel_feedback         false
 | 
				
			||||||
 | 
				
			|||||||
@ -12,8 +12,8 @@ alt + shift + Return
 | 
				
			|||||||
alt + control + Return
 | 
					alt + control + Return
 | 
				
			||||||
    hterm
 | 
					    hterm
 | 
				
			||||||
 | 
					
 | 
				
			||||||
alt + b
 | 
					alt + minus
 | 
				
			||||||
    $HOME/.config/bspwm/pidgin.sh
 | 
					    sp
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# program launcher
 | 
					# program launcher
 | 
				
			||||||
alt + d
 | 
					alt + d
 | 
				
			||||||
 | 
				
			|||||||
@ -11,7 +11,7 @@
 | 
				
			|||||||
    # Position the notification in the top right corner
 | 
					    # Position the notification in the top right corner
 | 
				
			||||||
    origin = top-right
 | 
					    origin = top-right
 | 
				
			||||||
    # Offset from the origin
 | 
					    # Offset from the origin
 | 
				
			||||||
    offset = 12x25
 | 
					    offset = 15x28
 | 
				
			||||||
    # Scale factor. It is auto-detected if value is 0.
 | 
					    # Scale factor. It is auto-detected if value is 0.
 | 
				
			||||||
    scale = 0
 | 
					    scale = 0
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -13,28 +13,29 @@
 | 
				
			|||||||
border_width          = 1
 | 
					border_width          = 1
 | 
				
			||||||
color_focus           = rgb:ff/6A/00
 | 
					color_focus           = rgb:ff/6A/00
 | 
				
			||||||
color_focus_maximized = rgb:ff/6A/00
 | 
					color_focus_maximized = rgb:ff/6A/00
 | 
				
			||||||
 | 
					color_focus_maximized_free = rgb:ff/6A/00
 | 
				
			||||||
color_focus_free      = rgb:77/77/77
 | 
					color_focus_free      = rgb:77/77/77
 | 
				
			||||||
color_unfocus         = rgb:47/47/47
 | 
					color_unfocus         = rgb:47/47/47
 | 
				
			||||||
color_unfocus_free    = rgb:47/47/47
 | 
					color_unfocus_free    = rgb:47/47/47
 | 
				
			||||||
tile_gap              = -1
 | 
					tile_gap              = 0
 | 
				
			||||||
region_padding        = 0
 | 
					region_padding        = 0
 | 
				
			||||||
disable_border        = 0
 | 
					disable_border        = 0
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# +--------------------------------------------------
 | 
					# +--------------------------------------------------
 | 
				
			||||||
# | BAR SETTINGS
 | 
					# | BAR SETTINGS
 | 
				
			||||||
# +--------------------------------------------------
 | 
					# +--------------------------------------------------
 | 
				
			||||||
bar_enabled             = 1
 | 
					bar_enabled             = 0
 | 
				
			||||||
bar_border_width        = 4
 | 
					bar_border_width        = 4
 | 
				
			||||||
bar_border              = rgb:18/18/18
 | 
					bar_border              = rgb:18/18/18
 | 
				
			||||||
bar_border_unfocus      = rgb:18/18/18
 | 
					bar_border_unfocus      = rgb:18/18/18
 | 
				
			||||||
bar_border_free         = rgb:18/18/18
 | 
					bar_border_free         = rgb:18/18/18
 | 
				
			||||||
bar_color               = rgb:18/18/18
 | 
					bar_color               = rgb:18/18/18
 | 
				
			||||||
bar_color_free          = red
 | 
					bar_color_free          = rgb:18/18/18
 | 
				
			||||||
bar_color_selected      = rgb:18/24/28
 | 
					bar_color_selected      = rgb:18/24/28
 | 
				
			||||||
bar_font_color          = rgb:99/99/99,rgb:ff/6A/00,red
 | 
					bar_font_color          = rgb:99/99/99,rgb:ff/6A/00,red
 | 
				
			||||||
bar_font_color_selected = rgb:ff/ff/ff
 | 
					bar_font_color_selected = rgb:ff/ff/ff
 | 
				
			||||||
bar_font_color_free     = rgb:99/99/99
 | 
					bar_font_color_free     = rgb:99/99/99
 | 
				
			||||||
bar_font                = FuraCodeNerdFont-12
 | 
					bar_font                = FuraCodeNerdFont-11
 | 
				
			||||||
bar_action              = cbar
 | 
					bar_action              = cbar
 | 
				
			||||||
bar_action_expand       = 0
 | 
					bar_action_expand       = 0
 | 
				
			||||||
bar_at_bottom           = 0
 | 
					bar_at_bottom           = 0
 | 
				
			||||||
@ -82,16 +83,16 @@ stack_mark_floating        = '~'
 | 
				
			|||||||
verbose_layout             = 0
 | 
					verbose_layout             = 0
 | 
				
			||||||
urgent_enabled             = 1
 | 
					urgent_enabled             = 1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
name = ws[1]:1
 | 
					# name = ws[1]:1
 | 
				
			||||||
name = ws[2]:2
 | 
					# name = ws[2]:2
 | 
				
			||||||
name = ws[3]:3
 | 
					# name = ws[3]:3
 | 
				
			||||||
name = ws[4]:4
 | 
					# name = ws[4]:4
 | 
				
			||||||
name = ws[5]:5
 | 
					# name = ws[5]:5
 | 
				
			||||||
name = ws[6]:6
 | 
					# name = ws[6]:6
 | 
				
			||||||
name = ws[7]:7
 | 
					# name = ws[7]:7
 | 
				
			||||||
name = ws[8]:8
 | 
					# name = ws[8]:8
 | 
				
			||||||
name = ws[9]:9
 | 
					# name = ws[9]:9
 | 
				
			||||||
name = ws[10]:10
 | 
					# name = ws[10]:10
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# +--------------------------------------------------
 | 
					# +--------------------------------------------------
 | 
				
			||||||
# | FOCUS BEHAVIOR
 | 
					# | FOCUS BEHAVIOR
 | 
				
			||||||
 | 
				
			|||||||
@ -69,6 +69,7 @@ dopath("mod_sp")
 | 
				
			|||||||
-- dopath("mod_dock")
 | 
					-- dopath("mod_dock")
 | 
				
			||||||
dopath("mod_statusbar")
 | 
					dopath("mod_statusbar")
 | 
				
			||||||
dopath("mod_float-sb")
 | 
					dopath("mod_float-sb")
 | 
				
			||||||
 | 
					dopath("mod_switch_or_create_ws")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
dopath("mod_xrandr")
 | 
					dopath("mod_xrandr")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -21,12 +21,12 @@ mod_statusbar.create {
 | 
				
			|||||||
    --  %workspace_name_pager
 | 
					    --  %workspace_name_pager
 | 
				
			||||||
    --  %workspace_num_name_pager
 | 
					    --  %workspace_num_name_pager
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    template="%workspace_pager %filler %systray % %shellbar %date",
 | 
					    template="%workspace_pager %filler %systray % %shellbar | %date",
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
-- Launch ion-statusd. This must be done after creating any statusbars
 | 
					-- Launch ion-statusd. This must be done after creating any statusbars
 | 
				
			||||||
-- for necessary statusd modules to be parsed from the templates.
 | 
					-- for necessary statusd modules to be parsed from the templates.
 | 
				
			||||||
-- mod_statusbar.launch_statusd {
 | 
					-- mod_statusbar.launch_statusd {
 | 
				
			||||||
--     shellbar,
 | 
					--     shellbar,
 | 
				
			||||||
--     date={ date_format='%a %Y-%m-%d %H:%M', },
 | 
					--     date={ date_format='| %a %Y-%m-%d %H:%M', },
 | 
				
			||||||
-- }
 | 
					-- }
 | 
				
			||||||
 | 
				
			|||||||
@ -39,7 +39,7 @@ de.defstyle("tab", {
 | 
				
			|||||||
    de.substyle("active-unselected", {
 | 
					    de.substyle("active-unselected", {
 | 
				
			||||||
        shadow_colour = "#121212",
 | 
					        shadow_colour = "#121212",
 | 
				
			||||||
        highlight_colour = "#121212",
 | 
					        highlight_colour = "#121212",
 | 
				
			||||||
        background_colour = "#121212",
 | 
					        background_colour = "#181818",
 | 
				
			||||||
        foreground_colour = "#6f6f6f",
 | 
					        foreground_colour = "#6f6f6f",
 | 
				
			||||||
    }),
 | 
					    }),
 | 
				
			||||||
    de.substyle("inactive-selected", {
 | 
					    de.substyle("inactive-selected", {
 | 
				
			||||||
@ -50,8 +50,8 @@ de.defstyle("tab", {
 | 
				
			|||||||
    }),
 | 
					    }),
 | 
				
			||||||
    -- de.substyle("inactive-unselected", {
 | 
					    -- de.substyle("inactive-unselected", {
 | 
				
			||||||
        shadow_colour = "#080808",
 | 
					        shadow_colour = "#080808",
 | 
				
			||||||
        highlight_colour = "#080808",
 | 
					        highlight_colour = "#121212",
 | 
				
			||||||
        background_colour = "#080808",
 | 
					        background_colour = "#121212",
 | 
				
			||||||
        foreground_colour = "#4c4c4c",
 | 
					        foreground_colour = "#4c4c4c",
 | 
				
			||||||
    -- }),
 | 
					    -- }),
 | 
				
			||||||
    text_align = "center",
 | 
					    text_align = "center",
 | 
				
			||||||
@ -94,6 +94,7 @@ de.defstyle("stdisp", {
 | 
				
			|||||||
    highlight_pixels = 0,
 | 
					    highlight_pixels = 0,
 | 
				
			||||||
    text_align = "left",
 | 
					    text_align = "left",
 | 
				
			||||||
    font = "xft:FuraCodeNerdFont:size=9",
 | 
					    font = "xft:FuraCodeNerdFont:size=9",
 | 
				
			||||||
 | 
					    background_colour = "#222222",
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    de.substyle("important", {
 | 
					    de.substyle("important", {
 | 
				
			||||||
        foreground_colour = "green",
 | 
					        foreground_colour = "green",
 | 
				
			||||||
 | 
				
			|||||||
@ -1,16 +0,0 @@
 | 
				
			|||||||
-- Authors: Unknown
 | 
					 | 
				
			||||||
-- License: Unknown
 | 
					 | 
				
			||||||
-- Last Changed: Unknown
 | 
					 | 
				
			||||||
--
 | 
					 | 
				
			||||||
-- first toggle fullscren, then create new
 | 
					 | 
				
			||||||
--
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
local function sdk_navigate_ws()
 | 
					 | 
				
			||||||
end
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
local function sdk_spawn_command()
 | 
					 | 
				
			||||||
end
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
ioncore.defbindings("WScreen", {
 | 
					 | 
				
			||||||
    kpress(META.."B", toggle_floatsb)
 | 
					 | 
				
			||||||
})
 | 
					 | 
				
			||||||
							
								
								
									
										106
									
								
								.xsession-sample
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										106
									
								
								.xsession-sample
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,106 @@
 | 
				
			|||||||
 | 
					#!/bin/ksh
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# set shell
 | 
				
			||||||
 | 
					export ENV=$HOME/.kshrc
 | 
				
			||||||
 | 
					. $ENV
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# allow ctrl+alt+backspace to kill X
 | 
				
			||||||
 | 
					setxkbmap -option "terminate:ctrl_alt_bksp"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# capslock shall be escape
 | 
				
			||||||
 | 
					setxkbmap -option caps:escape
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# turn this annoying bell off
 | 
				
			||||||
 | 
					xset -b
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# set keyboard layout
 | 
				
			||||||
 | 
					setxkbmap "de"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# accelerate keyboard
 | 
				
			||||||
 | 
					xset r rate 300 50
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# accelerate mouse
 | 
				
			||||||
 | 
					xinput set-prop /dev/wsmouse "Device Accel Constant Deceleration" 0.4
 | 
				
			||||||
 | 
					xinput set-prop /dev/wsmouse "Device Accel Adaptive Deceleration" 1.2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# scroll with middle button
 | 
				
			||||||
 | 
					xinput set-prop /dev/wsmouse "WS Pointer Wheel Emulation" 1
 | 
				
			||||||
 | 
					xinput set-prop /dev/wsmouse "WS Pointer Wheel Emulation Button" 2
 | 
				
			||||||
 | 
					xinput set-prop /dev/wsmouse "WS Pointer Wheel Emulation Axes" 6 7 4 5
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# xkeyboard preferences
 | 
				
			||||||
 | 
					export XKB_DEFAULT_LAYOUT=de
 | 
				
			||||||
 | 
					export XKB_DEFAULT_VARIANT=,nodeadkeys
 | 
				
			||||||
 | 
					export XKB_DEFAULT_OPTIONS=grp:alt_shift_toggle
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# set w3mimg patch for ranger
 | 
				
			||||||
 | 
					export W3MIMGDISPLAY_PATH="/usr/local/libexec/w3m/w3mimgdisplay"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# force webkit to one process mode
 | 
				
			||||||
 | 
					export WEBKIT_USE_SINGLE_WEB_PROCESS=1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# fixes
 | 
				
			||||||
 | 
					#export LIBGL_DRI3_DISABLE=1 # fix video on luakit
 | 
				
			||||||
 | 
					#export XLIB_SKIP_ARGB_VISUALS=1
 | 
				
			||||||
 | 
					#export SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS=0 # fix fullscreen loop
 | 
				
			||||||
 | 
					#export FNA3D_OPENGL_FORCE_ES3=1 # fnaifi fix for iris gpu
 | 
				
			||||||
 | 
					#export _JAVA_AWT_WM_NONREPARENTING=1
 | 
				
			||||||
 | 
					#export GSK_RENDERER=cairo # render gtk4 in cario instead of opengl
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# accelerate firefox
 | 
				
			||||||
 | 
					export MOZ_ACCELERATED=1
 | 
				
			||||||
 | 
					export MOZ_WEBRENDER=1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# sndio devices
 | 
				
			||||||
 | 
					#export AUDIOPLAYDEVICE=snd/default
 | 
				
			||||||
 | 
					#export AUDIORECDEVICE=snd/rec
 | 
				
			||||||
 | 
					#export AUDIOMONDEVICE=snd/mon
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# gtk/qt scaling
 | 
				
			||||||
 | 
					export QT_AUTO_SCREEN_SCALE_FACTOR=0
 | 
				
			||||||
 | 
					export QT_SCALE_FACTOR=1
 | 
				
			||||||
 | 
					export GDK_DPI_SCALE=1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# qt theme
 | 
				
			||||||
 | 
					export QT_QPA_PLATFORMTHEME=qt5ct # or lxqt
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# add custom fonts
 | 
				
			||||||
 | 
					xset +fp $HOME/.fonts
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# keep cutbuffer and selections in sync
 | 
				
			||||||
 | 
					autocutsel -fork
 | 
				
			||||||
 | 
					autocutsel -selection PRIMARY -fork
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# set background
 | 
				
			||||||
 | 
					xsetroot -solid rgb:00/00/00
 | 
				
			||||||
 | 
					# huh, we're hipster now
 | 
				
			||||||
 | 
					#hsetroot -solid rgb:12/12/12
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# allow local users to access X
 | 
				
			||||||
 | 
					xhost +local:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# give user access to camara and hid devices
 | 
				
			||||||
 | 
					#doas chown sdk /dev/video* /dev/uhid* /dev/dri/card* /dev/cua*
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# all those tools... *sigh*
 | 
				
			||||||
 | 
					# twmnd &
 | 
				
			||||||
 | 
					dunst &
 | 
				
			||||||
 | 
					xbanish &
 | 
				
			||||||
 | 
					#stalonetray &
 | 
				
			||||||
 | 
					#xautolock -time 30 -locker xlock &
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					dbus-launch --sh-syntax --exit-with-x11 > ~/.dbus_address
 | 
				
			||||||
 | 
					. $HOME/.dbus_address
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					eval $(gnome-keyring-daemon --replace --components=secrets)
 | 
				
			||||||
 | 
					dbus-update-activation-environment --all
 | 
				
			||||||
 | 
					export GNOME_KEYRING_CONTROL GNOME_KEYRING_SOCKET GNOME_KEYRING_PID
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					srandrd /home/sdk/.bin/autorandr-c
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					mv $HOME/.xsession-wm $HOME/.xsession-wm.old
 | 
				
			||||||
 | 
					mv $HOME/.xsession-errors.log $HOME/.xsession-errors.old
 | 
				
			||||||
 | 
					#exec "/usr/local/bin/spectrwm" > $HOME/.xsession-wm 2>&1
 | 
				
			||||||
 | 
					#exec "/usr/local/bin/i3" > $HOME/.xsession-wm 2>&1
 | 
				
			||||||
 | 
					#exec "/usr/local/bin/bspwm" > $HOME/.xsession-wm 2>&1
 | 
				
			||||||
 | 
					exec "/usr/local/bin/notion" > $HOME/.xsession-wm 2>&1
 | 
				
			||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user