├── DOT.Xdefaults ├── DOT.exrc ├── DOT.tint2rc ├── DOT.vimrc ├── DOT.zshrc ├── DOT.zshrc.DOAS.SUDO ├── README.md ├── __conky_battery.sh ├── __conky_battery_separate.sh ├── __conky_if_dns.sh ├── __conky_if_gw.sh ├── __conky_if_ip.sh ├── __conky_if_ping.sh ├── __openbox_cpufreq.sh ├── __openbox_current_wallpaper.sh ├── __openbox_delete_wallpaper.sh ├── __openbox_dmenu.sh ├── __openbox_edit_screenshot.sh ├── __openbox_edit_wallpaper_gimp.sh ├── __openbox_freebsd_sound.sh ├── __openbox_lock.sh ├── __openbox_lock_zzz.sh ├── __openbox_monitor_off_auto.sh ├── __openbox_recent.sh ├── __openbox_reload_wallpaper.sh ├── __openbox_restart_compton.sh ├── __openbox_restart_conky.sh ├── __openbox_restart_dzen2.sh ├── __openbox_restart_picom.sh ├── __openbox_restart_plank.sh ├── __openbox_restart_redshift.sh ├── __openbox_restart_squid.sh ├── __openbox_restart_tint2.sh ├── __openbox_restart_xbindkeys.sh ├── __openbox_show_screenshot.sh ├── __openbox_stats_ps_KILLALL.sh ├── __openbox_stats_top_cpu_KILL.sh ├── __openbox_stats_top_cpu_RENICE.sh ├── __openbox_stats_top_mem_KILL.sh ├── __openbox_stats_top_mem_RENICE.sh ├── __openbox_stop_compton.sh ├── __openbox_stop_conky.sh ├── __openbox_stop_dzen2.sh ├── __openbox_stop_plank.sh ├── __openbox_stop_squid.sh ├── __openbox_stop_tint2.sh ├── __openbox_stop_xbindkeys.sh ├── acpi-thinkpad-fan.sh ├── aero-snap.sh ├── audio-source-switch.sh ├── audio-split.sh ├── battery-capacity.sh ├── bp.sh ├── contacts-check.sh ├── contacts-convert-vcf-from-UTF.sh ├── contacts-convert-vcf-from.sh ├── contacts-convert-vcf-to-UTF.sh ├── contacts-convert-vcf-to.sh ├── dedup.sh ├── desktop-battery-warning.sh ├── desktop-kill-shit.sh ├── desktop-pause.sh ├── distfiles ├── apps.tar.gz ├── config │ ├── boot-loader.conf │ ├── etc-devfs.rules │ ├── etc-localtime │ ├── etc-rc.conf │ ├── etc-rc.local │ ├── etc-sysctl.conf │ ├── etc-ttys │ ├── user │ │ ├── DOT.Xdefaults │ │ ├── DOT.asoundrc │ │ ├── DOT.config-Thunar │ │ │ ├── renamerrc │ │ │ └── thunarrc │ │ ├── DOT.config-Trolltech.conf │ │ ├── DOT.config-Xdefaults │ │ │ ├── themes.tar.gz │ │ │ └── urxvt.tar.gz │ │ ├── DOT.config-caja │ │ │ ├── desktop-metadata │ │ │ └── scripts │ │ │ │ ├── ncdu.sh │ │ │ │ ├── terminal.sh │ │ │ │ ├── thunar-mass-rename.sh │ │ │ │ └── thunar.sh │ │ ├── DOT.config-deadbeef │ │ │ ├── config │ │ │ └── dspconfig │ │ ├── DOT.config-fontconfig │ │ │ └── fonts.conf │ │ ├── DOT.config-galculator │ │ │ └── galculator.conf │ │ ├── DOT.config-geany.tar.gz │ │ ├── DOT.config-htop │ │ │ └── htoprc │ │ ├── DOT.config-leafpad │ │ │ └── leafpadrc │ │ ├── DOT.config-lxtask.conf │ │ ├── DOT.config-mimeapps.list │ │ ├── DOT.config-mpv │ │ │ └── mpv.conf │ │ ├── DOT.config-openbox │ │ │ ├── autostart │ │ │ ├── environment │ │ │ ├── icons.tar.gz │ │ │ ├── menu.xml │ │ │ └── rc.xml │ │ ├── DOT.config-picom.conf │ │ ├── DOT.config-plank │ │ │ └── dock1.tar.gz │ │ ├── DOT.config-qt5ct │ │ │ └── qt5ct.conf │ │ ├── DOT.config-sakura │ │ │ ├── sakura.conf │ │ │ └── sakura.tango.conf │ │ ├── DOT.config-sayonara │ │ │ └── player.db │ │ ├── DOT.config-skippy-xd │ │ │ └── skippy-xd.rc │ │ ├── DOT.config-viewnior │ │ │ └── viewnior.conf │ │ ├── DOT.exrc │ │ ├── DOT.gtkrc-2.0 │ │ ├── DOT.hidden │ │ ├── DOT.hushlogin │ │ ├── DOT.inputrc │ │ ├── DOT.tint2rc │ │ ├── DOT.vimrc │ │ ├── DOT.xbindkeysrc │ │ ├── DOT.xinitrc │ │ └── DOT.xmodmaprc │ ├── usr-local-etc-X11-xdm-Xresources │ ├── usr-local-etc-X11-xdm-Xsetup_0 │ ├── usr-local-etc-X11-xorg.conf.d-card.conf │ ├── usr-local-etc-X11-xorg.conf.d-flags.conf │ ├── usr-local-etc-X11-xorg.conf.d-keyboard.conf │ ├── usr-local-etc-X11-xorg.conf.d-touchpad.conf │ ├── usr-local-etc-automount.conf │ ├── usr-local-etc-devd-audio_source.conf │ ├── usr-local-etc-doas.conf │ ├── usr-local-etc-gitup.conf │ └── usr-local-etc-sudoers ├── fonts.tar.gz ├── icons.tar.gz ├── nvim-config.tar.gz ├── nvim-lua-plugins.tar.gz ├── openbox-flat-theme.tar.gz ├── openbox.tar.gz ├── scripts-status-bar.tar.gz ├── scripts.tar.gz ├── verbsd │ ├── verbsd-GLOBAL.sh │ ├── verbsd-base-be.sh │ ├── verbsd-base-extract.sh │ ├── verbsd-base-fetch.sh │ ├── verbsd-compat-ubuntu.sh │ ├── verbsd-configs-fetch.sh │ ├── verbsd-configs-sys.sh │ ├── verbsd-configs-user.sh │ ├── verbsd-packages.sh │ ├── verbsd-settings.sh │ └── verbsd-user-create.sh ├── wallpapers-freebsd.tar.gz ├── wallpapers-oldschool-machines-other.tar.gz ├── wallpapers-oldschool-machines.tar.gz └── xterm.tar.gz ├── dosbox ├── DOSBOX.cfg ├── cfodder.cfg ├── cfodder2.cfg ├── homm2.cfg ├── hospital.cfg ├── lotus3.cfg ├── settlers.cfg ├── sgolf.cfg ├── swing.cfg ├── swos-SFX.cfg ├── swos-UPG.cfg └── swos.cfg ├── dzen2-fifo.sh ├── dzen2-update.sh ├── fc-cache.sh ├── files-big.sh ├── files-count.sh ├── firefox-clean.sh ├── fonts-swap-test.html ├── fonts.conf ├── fonts.conf.swap.example.txt ├── freebsd-free.pl ├── ftp.py ├── games-DOSBOX.sh ├── games-all-terrain-racing.sh ├── games-baldurs-gate-I-ee-fullscreen.sh ├── games-baldurs-gate-I-ee-window.sh ├── games-baldurs-gate-II-ee-fullscreen.sh ├── games-baldurs-gate-II-ee-window.sh ├── games-cannon-fodder-2.sh ├── games-cannon-fodder.sh ├── games-canyon-defence.sh ├── games-chuzzle.sh ├── games-colin-mcrae-rally-2.0-fullscreen.sh ├── games-colin-mcrae-rally-2.0-window.sh ├── games-diablo.sh ├── games-governor-of-poker.sh ├── games-heroes-of-might-and-magic-II.sh ├── games-heroes-of-might-and-magic-III-HotA-fullscreen.sh ├── games-heroes-of-might-and-magic-III-HotA-window.sh ├── games-heroes-of-might-and-magic-III-fullscreen.sh ├── games-heroes-of-might-and-magic-III-window.sh ├── games-icewind-dale-ee-fullscreen.sh ├── games-icewind-dale-ee-window.sh ├── games-lionheart-fullscreen.sh ├── games-lionheart-window.sh ├── games-lotus-3.sh ├── games-pinball-short-circuit.sh ├── games-pinball-space-cadet-NATIVE.sh ├── games-pinball-space-cadet.sh ├── games-pro-pinball-timeshock-fullscreen.sh ├── games-pro-pinball-timeshock-window.sh ├── games-robokill-1.sh ├── games-robokill-2.sh ├── games-sensible-golf.sh ├── games-sensible-world-of-soccer-SFX.sh ├── games-sensible-world-of-soccer-UPG.sh ├── games-sensible-world-of-soccer.sh ├── games-settlers.sh ├── games-swing.sh ├── games-theme-hospital.sh ├── generate-desktop-handler.sh ├── http.sh ├── jails.sh ├── linux-browser-installer.PATCH ├── loop.sh ├── lsblk.sh ├── mdconfig.sh ├── network-ping.sh ├── network.sh ├── nfs.sh ├── pdf-bookmark-manage.sh ├── pdf-concat.sh ├── pdf-decrypt.sh ├── pdf-extract.sh ├── pdf-rotate-left.sh ├── pdf-rotate-right.sh ├── pdf-split.sh ├── photo-flow.sh ├── photo-movie-audio-ac3-720p.sh ├── photo-movie-audio-ac3.sh ├── photo-movie-audio-copy-720p.sh ├── photo-movie-audio-copy.sh ├── photo-rename-images.sh ├── photo-rename-movies.sh ├── photo-requality.sh ├── pkg-recompile.sh ├── power-speed.sh ├── power-time.sh ├── random-wallpaper-always.sh ├── random-wallpaper.sh ├── random_wallpaper.sh ├── rc.xml.openbox.aero.config ├── rsync-delete-before.sh ├── rsync-delete-checksum.sh ├── rsync-delete-nocompress.sh ├── rsync-delete-permissions.sh ├── rsync-delete.sh ├── rsync.sh ├── see-pipe-open.sh ├── see.sh ├── sensors.sh ├── shot.sh ├── smarttemp.sh ├── smartwear.sh ├── storage-wipe-clean-end.sh ├── storage-wipe-clean.sh ├── sumatra.sh ├── tile.sh ├── unbound-blacklist-fetch-huge.sh ├── unbound-blacklist-fetch.sh ├── urxvt.sh ├── vmc.sh ├── vnc.sh ├── winscp.sh ├── wmtiler.sh ├── xdotool.sh ├── xlock.png ├── xlock.xpm ├── xnview.sh ├── xterm.sh └── zshrc /DOT.exrc: -------------------------------------------------------------------------------- 1 | set noautoindent 2 | set number 3 | set ruler 4 | set tabstop=8 5 | set nowrapscan 6 | set wrapmargin=0 7 | set leftright 8 | 9 | -------------------------------------------------------------------------------- /DOT.tint2rc: -------------------------------------------------------------------------------- 1 | # BACKGROUND/BORDER 2 | # ----------------- 3 | 4 | # GENERAL PANEL SETTINGS 5 | rounded = 0 6 | border_width = 0 7 | background_color = #222222 100 8 | border_color = #000000 0 9 | 10 | # AUTOHIDE 11 | # -------- 12 | autohide = 0 13 | strut_policy = minimum 14 | 15 | # TOOLTIP 16 | # ------- 17 | tooltip = 0 18 | 19 | # MOUSE 20 | # ----- 21 | mouse_middle = close 22 | mouse_right = maximize_restore 23 | 24 | # PANEL 25 | # ----- 26 | wm_menu = 1 27 | panel_items = LTS 28 | panel_monitor = 1 29 | panel_position = top center 30 | panel_size = 0 16 31 | panel_margin = 0 12 32 | panel_padding = 0 0 16 33 | panel_layer = bottom 34 | panel_background_id = 1 35 | font_shadow = 0 36 | 37 | # LAUNCHER 38 | # -------- 39 | launcher_padding = 0 0 1 40 | launcher_background_id = 1 41 | launcher_icon_size = 14 42 | launcher_item_app = /home/vermaden/.apps/caja.desktop 43 | launcher_item_app = /home/vermaden/.apps/thunar.desktop 44 | launcher_item_app = /home/vermaden/.apps/nfs.desktop 45 | launcher_item_app = /home/vermaden/.apps/terminal.desktop 46 | launcher_item_app = /home/vermaden/.apps/geany.desktop 47 | launcher_item_app = /home/vermaden/.apps/leafpad.desktop 48 | launcher_item_app = /home/vermaden/.apps/pidgin.desktop 49 | launcher_item_app = /home/vermaden/.apps/thunderbird.desktop 50 | launcher_item_app = /home/vermaden/.apps/firefox.desktop 51 | launcher_item_app = /home/vermaden/.apps/chromium.desktop 52 | launcher_item_app = /home/vermaden/.apps/gimp.desktop 53 | launcher_item_app = /home/vermaden/.apps/galculator.desktop 54 | launcher_item_app = /home/vermaden/.apps/deadbeef.desktop 55 | launcher_item_app = /home/vermaden/.apps/transmission.desktop 56 | launcher_item_app = /home/vermaden/.apps/cpu_L.desktop 57 | launcher_item_app = /home/vermaden/.apps/cpu_M.desktop 58 | launcher_item_app = /home/vermaden/.apps/cpu_H.desktop 59 | launcher_item_app = /home/vermaden/.apps/wallpaper.desktop 60 | 61 | # TASKBAR 62 | # ------- 63 | taskbar_mode = multi_desktop 64 | taskbar_padding = 0 0 1 65 | taskbar_background_id = 1 66 | taskbar_active_background_id = 1 67 | taskbar_distribute_size = 0 68 | taskbar_name = 1 69 | taskbar_name_font = Ubuntu Mono 8 70 | taskbar_name_font_color = #aaaaaa 100 71 | taskbar_name_active_font_color = #dd0000 100 72 | 73 | # TASKS 74 | # ----- 75 | task_icon = 1 76 | task_text = 0 77 | task_width = 14 78 | task_centered = 1 79 | task_padding = 0 0 1 80 | task_background_id = 0 81 | task_active_background_id = 0 82 | task_iconified_icon_asb = 40 0 0 83 | 84 | # SYSTRAY 85 | # ------- 86 | systray = 1 87 | systray_padding = 0 0 1 88 | systray_icon_size = 14 -------------------------------------------------------------------------------- /DOT.vimrc: -------------------------------------------------------------------------------- 1 | " -- < GENERAL >-- " 2 | set nomodeline 3 | set nocompatible 4 | set backspace=indent,eol,start 5 | set autoindent 6 | set expandtab 7 | set nobackup 8 | set number 9 | set nowrap 10 | set history=32 11 | set ignorecase 12 | set showcmd 13 | set incsearch 14 | set hlsearch 15 | set tabstop=8 16 | set shiftwidth=8 17 | set softtabstop=8 18 | set noexpandtab 19 | set ruler 20 | set mouse-=a 21 | 22 | " disable ~/.viminfo file 23 | let skip_defaults_vim=1 24 | set viminfo="" 25 | 26 | " set virtualedit=all 27 | " ALLOWS TO MOVE CURSOR PAST LAST CHARACTER 28 | 29 | " --< COMMANDS >-- " 30 | command WQ wq 31 | command Wq wq 32 | command W w 33 | command Q q 34 | 35 | " --< COLORS / SYNTAX >-- " 36 | syntax on 37 | " colorscheme solarized 38 | 39 | " --< TABS BINDINGS >-- " 40 | " map :tabnew 41 | " map :tabclose 42 | " map :tabp 43 | " map :tabn 44 | " map :tabfirst 45 | " map :tablast 46 | 47 | " --< TEMP >-- " 48 | " map q ^Y -- 'q' is scroll line up 49 | " map z ^E -- 'z' is scroll line down 50 | " map ; ^B -- ';' page up 51 | " map , ^F -- ',' page down 52 | -------------------------------------------------------------------------------- /DOT.zshrc.DOAS.SUDO: -------------------------------------------------------------------------------- 1 | SUDO_WHICH=0 2 | SUDO=0 3 | DOAS_WHICH=0 4 | DOAS=1 5 | ROOT=0 6 | 7 | # CHECK doas(8) WITH which(1) 8 | if which doas 1> /dev/null 2> /dev/null 9 | then 10 | DOAS_WHICH=1 11 | else 12 | DOAS_WHICH=0 13 | fi 14 | 15 | # CHECK sudo(8) WITH which(1) 16 | if which sudo 1> /dev/null 2> /dev/null 17 | then 18 | SUDO_WHICH=1 19 | else 20 | SUDO_WHICH=0 21 | fi 22 | 23 | # CHECK USER WITH whoami(1) 24 | if [ "$( whoami )" = "root" ] 25 | then 26 | ROOT=1 27 | fi 28 | 29 | # CHOOSE ONE FROM doas(8) AND sudo(8) 30 | if [ ${DOAS_WHICH} -eq 1 -o ${SUDO_WHICH} -eq 1 ] 31 | then 32 | if [ ${DOAS} -eq 0 -a ${SUDO} -eq 1 -a ${SUDO_WHICH} -eq 1 ] 33 | then 34 | CMD=sudo 35 | alias doas=sudo 36 | elif [ ${DOAS} -eq 1 -a ${SUDO} -eq 0 -a ${DOAS_WHICH} -eq 1 ] 37 | then 38 | CMD=doas 39 | alias sudo=doas 40 | elif [ ${DOAS} -eq 1 -a ${SUDO} -eq 1 -a ${DOAS_WHICH} -eq 1 ] 41 | then 42 | CMD=doas 43 | alias sudo=doas 44 | fi 45 | elif [ ${ROOT} -eq 1 ] 46 | then 47 | CMD='' 48 | else 49 | echo "NOPE: This script needs doas(1) or sudo(8) to work properly." 50 | echo "INFO: Install 'security/doas' or 'security/sudo' package." 51 | exit 1 52 | fi 53 | 54 | unset SUDO_WHICH 55 | unset DOAS_WHICH 56 | unset ROOT 57 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | The vermaden scripts. 2 | -------------------------------------------------------------------------------- /__conky_if_dns.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Copyright (c) 2018 Slawomir Wojciech Wojtczak (vermaden) 4 | # All rights reserved. 5 | # 6 | # THIS SOFTWARE USES FREEBSD LICENSE (ALSO KNOWN AS 2-CLAUSE BSD LICENSE) 7 | # https://www.freebsd.org/copyright/freebsd-license.html 8 | # 9 | # Redistribution and use in source and binary forms, with or without 10 | # modification, are permitted provided that following conditions are met: 11 | # 1. Redistributions of source code must retain the above copyright 12 | # notice, this list of conditions and the following disclaimer. 13 | # 2. Redistributions in binary form must reproduce the above copyright 14 | # notice, this list of conditions and the following disclaimer in the 15 | # documentation and/or other materials provided with the distribution. 16 | # 17 | # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS 'AS IS' AND ANY 18 | # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20 | # DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY 21 | # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 | # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 | # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 | # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 | # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # 28 | # ------------------------------ 29 | # conky(1) FIRST DNS INFORMATION 30 | # ------------------------------ 31 | # vermaden [AT] interia [DOT] pl 32 | # https://vermaden.wordpress.com 33 | 34 | # ONLY FIRST DNS FROM /etc/resolv.conf FILE 35 | NS=$( awk '/^nameserver/ {print $2; exit}' /etc/resolv.conf ) 36 | if [ "${NS}" != "" ] 37 | then 38 | echo -n ${NS} 39 | else 40 | echo -n - 41 | fi 42 | -------------------------------------------------------------------------------- /__conky_if_gw.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Copyright (c) 2018 Slawomir Wojciech Wojtczak (vermaden) 4 | # All rights reserved. 5 | # 6 | # THIS SOFTWARE USES FREEBSD LICENSE (ALSO KNOWN AS 2-CLAUSE BSD LICENSE) 7 | # https://www.freebsd.org/copyright/freebsd-license.html 8 | # 9 | # Redistribution and use in source and binary forms, with or without 10 | # modification, are permitted provided that following conditions are met: 11 | # 1. Redistributions of source code must retain the above copyright 12 | # notice, this list of conditions and the following disclaimer. 13 | # 2. Redistributions in binary form must reproduce the above copyright 14 | # notice, this list of conditions and the following disclaimer in the 15 | # documentation and/or other materials provided with the distribution. 16 | # 17 | # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS 'AS IS' AND ANY 18 | # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20 | # DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY 21 | # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 | # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 | # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 | # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 | # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # 28 | # ------------------------------ 29 | # conky(1) GATEWAY INFORMATION 30 | # ------------------------------ 31 | # vermaden [AT] interia [DOT] pl 32 | # https://vermaden.wordpress.com 33 | 34 | # GW=$( route -n -4 -v get default 2> /dev/null | awk 'END{print $2}' ) 35 | GW=$( route -n -4 -v get default 2> /dev/null | awk '/gateway:/ {printf("%s", $2)}' ) 36 | 37 | if [ "${GW}" = "0.0.0.0" -o "${GW}" = "" ] 38 | then 39 | GW=- 40 | fi 41 | 42 | echo -n "${GW}" 43 | -------------------------------------------------------------------------------- /__conky_if_ping.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Copyright (c) 2018 Slawomir Wojciech Wojtczak (vermaden) 4 | # All rights reserved. 5 | # 6 | # THIS SOFTWARE USES FREEBSD LICENSE (ALSO KNOWN AS 2-CLAUSE BSD LICENSE) 7 | # https://www.freebsd.org/copyright/freebsd-license.html 8 | # 9 | # Redistribution and use in source and binary forms, with or without 10 | # modification, are permitted provided that following conditions are met: 11 | # 1. Redistributions of source code must retain the above copyright 12 | # notice, this list of conditions and the following disclaimer. 13 | # 2. Redistributions in binary form must reproduce the above copyright 14 | # notice, this list of conditions and the following disclaimer in the 15 | # documentation and/or other materials provided with the distribution. 16 | # 17 | # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS 'AS IS' AND ANY 18 | # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20 | # DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY 21 | # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 | # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 | # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 | # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 | # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # 28 | # ------------------------------ 29 | # conky(1) IFACE/IP INFORMATION 30 | # ------------------------------ 31 | # vermaden [AT] interia [DOT] pl 32 | # https://vermaden.wordpress.com 33 | 34 | __usage() { 35 | echo "usage: ${0##*/} TYPE" 36 | echo 37 | echo "type: dzen2 | conky" 38 | echo 39 | exit 1 40 | } 41 | 42 | # SETTINGS 43 | # URL=$( __conky_if_dns.sh ) 44 | # URL=freebsd.org 45 | URL=96.47.72.84 46 | DELAY=1.25 47 | 48 | # TYPE 49 | case ${1} in 50 | (conky|dzen2) : ;; 51 | (*) __usage ;; 52 | esac 53 | 54 | # WAIT 2 SECONDS WITH -t OPTION 55 | if ping -c 1 -s 0 -t ${DELAY} -q ${URL} 1> /dev/null 2> /dev/null 56 | then 57 | echo -n OK 58 | else 59 | case ${1} in 60 | (conky) printf "%s" "\${color ${COLOR}}NOPE\${color}" ;; 61 | (dzen2) echo "^fg(RED)NOPE" ;; 62 | esac 63 | fi 64 | -------------------------------------------------------------------------------- /__openbox_current_wallpaper.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Copyright (c) 2018 Slawomir Wojciech Wojtczak (vermaden) 4 | # All rights reserved. 5 | # 6 | # THIS SOFTWARE USES FREEBSD LICENSE (ALSO KNOWN AS 2-CLAUSE BSD LICENSE) 7 | # https://www.freebsd.org/copyright/freebsd-license.html 8 | # 9 | # Redistribution and use in source and binary forms, with or without 10 | # modification, are permitted provided that following conditions are met: 11 | # 1. Redistributions of source code must retain the above copyright 12 | # notice, this list of conditions and the following disclaimer. 13 | # 2. Redistributions in binary form must reproduce the above copyright 14 | # notice, this list of conditions and the following disclaimer in the 15 | # documentation and/or other materials provided with the distribution. 16 | # 17 | # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS 'AS IS' AND ANY 18 | # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20 | # DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY 21 | # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 | # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 | # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 | # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 | # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # 28 | # ------------------------------ 29 | # openbox(1) WALLPAPER CURRENT 30 | # ------------------------------ 31 | # vermaden [AT] interia [DOT] pl 32 | # https://vermaden.wordpress.com 33 | 34 | FILE=$( awk -F\' '/feh/ {print $(NF-1)}' ~/.fehbg ) 35 | 36 | # echo "${FILE}" > /tmp/${0##*/}.out 37 | 38 | echo "" 39 | echo "" 40 | echo " " 41 | echo " " 42 | echo " viewnior '${FILE}'" 43 | echo " " 44 | echo " " 45 | echo "" 46 | -------------------------------------------------------------------------------- /__openbox_delete_wallpaper.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Copyright (c) 2018 Slawomir Wojciech Wojtczak (vermaden) 4 | # All rights reserved. 5 | # 6 | # THIS SOFTWARE USES FREEBSD LICENSE (ALSO KNOWN AS 2-CLAUSE BSD LICENSE) 7 | # https://www.freebsd.org/copyright/freebsd-license.html 8 | # 9 | # Redistribution and use in source and binary forms, with or without 10 | # modification, are permitted provided that following conditions are met: 11 | # 1. Redistributions of source code must retain the above copyright 12 | # notice, this list of conditions and the following disclaimer. 13 | # 2. Redistributions in binary form must reproduce the above copyright 14 | # notice, this list of conditions and the following disclaimer in the 15 | # documentation and/or other materials provided with the distribution. 16 | # 17 | # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS 'AS IS' AND ANY 18 | # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20 | # DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY 21 | # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 | # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 | # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 | # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 | # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # 28 | # ------------------------------ 29 | # openbox(1) WALLPAPER DELETE 30 | # ------------------------------ 31 | # vermaden [AT] interia [DOT] pl 32 | # https://vermaden.wordpress.com 33 | 34 | rm -f $( awk -F\' '/feh/ {print $(NF-1)}' ~/.fehbg ) 35 | 36 | random-wallpaper-always.sh ~/gfx/wallpapers 37 | -------------------------------------------------------------------------------- /__openbox_dmenu.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Copyright (c) 2018 Slawomir Wojciech Wojtczak (vermaden) 4 | # All rights reserved. 5 | # 6 | # THIS SOFTWARE USES FREEBSD LICENSE (ALSO KNOWN AS 2-CLAUSE BSD LICENSE) 7 | # https://www.freebsd.org/copyright/freebsd-license.html 8 | # 9 | # Redistribution and use in source and binary forms, with or without 10 | # modification, are permitted provided that following conditions are met: 11 | # 1. Redistributions of source code must retain the above copyright 12 | # notice, this list of conditions and the following disclaimer. 13 | # 2. Redistributions in binary form must reproduce the above copyright 14 | # notice, this list of conditions and the following disclaimer in the 15 | # documentation and/or other materials provided with the distribution. 16 | # 17 | # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS 'AS IS' AND ANY 18 | # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20 | # DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY 21 | # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 | # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 | # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 | # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 | # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # 28 | # ------------------------------ 29 | # openbox(1) WITH dmenu(1) 30 | # ------------------------------ 31 | # vermaden [AT] interia [DOT] pl 32 | # https://vermaden.wordpress.com 33 | 34 | CHOICE=$( dmenu_path | dmenu -nb '#222222' -nf '#aaaaaa' -sb '#eeeeee' -sf '#dd0000' -fn 'Ubuntu Mono-10' ${1+"${@}"} ) 35 | 36 | if [ -z "${CHOICE}" ] 37 | then 38 | exit 0 39 | fi 40 | 41 | CMD=$( which "${CHOICE}" ) 42 | TITLE=${CMD##*/} 43 | 44 | # XTERM OR NOT EXCEPTIONS 45 | if echo "${CMD}" | grep -q -i virtualbox; then "${CMD}" & exit 0; fi 46 | if echo "${CMD}" | grep -q -i audacious; then "${CMD}" & exit 0; fi 47 | if echo "${CMD}" | grep -q -i deadbeef; then "${CMD}" & exit 0; fi 48 | if echo "${CMD}" | grep -q -i vlc; then "${CMD}" & exit 0; fi 49 | 50 | # XTERM OR NOT 51 | if ldd "${CMD}" | grep -q libX11 52 | then 53 | "${CMD}" & 54 | else 55 | xterm -title "${TITLE}" -e "${CMD};read" & 56 | fi 57 | -------------------------------------------------------------------------------- /__openbox_edit_screenshot.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Copyright (c) 2018 Slawomir Wojciech Wojtczak (vermaden) 4 | # All rights reserved. 5 | # 6 | # THIS SOFTWARE USES FREEBSD LICENSE (ALSO KNOWN AS 2-CLAUSE BSD LICENSE) 7 | # https://www.freebsd.org/copyright/freebsd-license.html 8 | # 9 | # Redistribution and use in source and binary forms, with or without 10 | # modification, are permitted provided that following conditions are met: 11 | # 1. Redistributions of source code must retain the above copyright 12 | # notice, this list of conditions and the following disclaimer. 13 | # 2. Redistributions in binary form must reproduce the above copyright 14 | # notice, this list of conditions and the following disclaimer in the 15 | # documentation and/or other materials provided with the distribution. 16 | # 17 | # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS 'AS IS' AND ANY 18 | # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20 | # DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY 21 | # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 | # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 | # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 | # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 | # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # 28 | # ------------------------------ 29 | # openbox(1) SCREENSHOT EDIT 30 | # ------------------------------ 31 | # vermaden [AT] interia [DOT] pl 32 | # https://vermaden.wordpress.com 33 | 34 | gimp ~/gfx/screenshots/$( ls -tr ~/gfx/screenshots | tail -1 ) 35 | -------------------------------------------------------------------------------- /__openbox_edit_wallpaper_gimp.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Copyright (c) 2018 Slawomir Wojciech Wojtczak (vermaden) 4 | # All rights reserved. 5 | # 6 | # THIS SOFTWARE USES FREEBSD LICENSE (ALSO KNOWN AS 2-CLAUSE BSD LICENSE) 7 | # https://www.freebsd.org/copyright/freebsd-license.html 8 | # 9 | # Redistribution and use in source and binary forms, with or without 10 | # modification, are permitted provided that following conditions are met: 11 | # 1. Redistributions of source code must retain the above copyright 12 | # notice, this list of conditions and the following disclaimer. 13 | # 2. Redistributions in binary form must reproduce the above copyright 14 | # notice, this list of conditions and the following disclaimer in the 15 | # documentation and/or other materials provided with the distribution. 16 | # 17 | # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS 'AS IS' AND ANY 18 | # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20 | # DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY 21 | # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 | # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 | # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 | # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 | # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # 28 | # ------------------------------ 29 | # openbox(1) WALLPAPER EDIT 30 | # ------------------------------ 31 | # vermaden [AT] interia [DOT] pl 32 | # https://vermaden.wordpress.com 33 | 34 | gimp "$( awk -F\' '/feh/ {print $(NF-1)}' ~/.fehbg )" 35 | -------------------------------------------------------------------------------- /__openbox_monitor_off_auto.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Copyright (c) 2018 Slawomir Wojciech Wojtczak (vermaden) 4 | # All rights reserved. 5 | # 6 | # THIS SOFTWARE USES FREEBSD LICENSE (ALSO KNOWN AS 2-CLAUSE BSD LICENSE) 7 | # https://www.freebsd.org/copyright/freebsd-license.html 8 | # 9 | # Redistribution and use in source and binary forms, with or without 10 | # modification, are permitted provided that following conditions are met: 11 | # 1. Redistributions of source code must retain the above copyright 12 | # notice, this list of conditions and the following disclaimer. 13 | # 2. Redistributions in binary form must reproduce the above copyright 14 | # notice, this list of conditions and the following disclaimer in the 15 | # documentation and/or other materials provided with the distribution. 16 | # 17 | # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS 'AS IS' AND ANY 18 | # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20 | # DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY 21 | # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 | # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 | # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 | # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 | # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # 28 | # ------------------------------ 29 | # xrandr(1) OFF/ON MONITOR CYCLE 30 | # ------------------------------ 31 | # vermaden [AT] interia [DOT] pl 32 | # https://vermaden.wordpress.com 33 | 34 | sleep 0.5 35 | 36 | xrandr \ 37 | | awk '/connected/ {print $1}' \ 38 | | while read I 39 | do 40 | xrandr --output ${I} --off 41 | xrandr --output ${I} --auto 42 | done 43 | -------------------------------------------------------------------------------- /__openbox_reload_wallpaper.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Copyright (c) 2018 Slawomir Wojciech Wojtczak (vermaden) 4 | # All rights reserved. 5 | # 6 | # THIS SOFTWARE USES FREEBSD LICENSE (ALSO KNOWN AS 2-CLAUSE BSD LICENSE) 7 | # https://www.freebsd.org/copyright/freebsd-license.html 8 | # 9 | # Redistribution and use in source and binary forms, with or without 10 | # modification, are permitted provided that following conditions are met: 11 | # 1. Redistributions of source code must retain the above copyright 12 | # notice, this list of conditions and the following disclaimer. 13 | # 2. Redistributions in binary form must reproduce the above copyright 14 | # notice, this list of conditions and the following disclaimer in the 15 | # documentation and/or other materials provided with the distribution. 16 | # 17 | # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS 'AS IS' AND ANY 18 | # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20 | # DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY 21 | # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 | # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 | # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 | # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 | # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # 28 | # ------------------------------ 29 | # openbox(1) WALLPAPER RELOAD 30 | # ------------------------------ 31 | # vermaden [AT] interia [DOT] pl 32 | # https://vermaden.wordpress.com 33 | 34 | random-wallpaper-always.sh "$( awk -F\' '/feh/ {print $(NF-1)}' ~/.fehbg )" 35 | -------------------------------------------------------------------------------- /__openbox_restart_compton.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Copyright (c) 2018 Slawomir Wojciech Wojtczak (vermaden) 4 | # All rights reserved. 5 | # 6 | # THIS SOFTWARE USES FREEBSD LICENSE (ALSO KNOWN AS 2-CLAUSE BSD LICENSE) 7 | # https://www.freebsd.org/copyright/freebsd-license.html 8 | # 9 | # Redistribution and use in source and binary forms, with or without 10 | # modification, are permitted provided that following conditions are met: 11 | # 1. Redistributions of source code must retain the above copyright 12 | # notice, this list of conditions and the following disclaimer. 13 | # 2. Redistributions in binary form must reproduce the above copyright 14 | # notice, this list of conditions and the following disclaimer in the 15 | # documentation and/or other materials provided with the distribution. 16 | # 17 | # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS 'AS IS' AND ANY 18 | # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20 | # DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY 21 | # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 | # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 | # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 | # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 | # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # 28 | # ------------------------------ 29 | # openbox(1) RESTART COMPTON 30 | # ------------------------------ 31 | # vermaden [AT] interia [DOT] pl 32 | # https://vermaden.wordpress.com 33 | 34 | killall -9 compton picom 35 | 36 | # compton 37 | picom 38 | -------------------------------------------------------------------------------- /__openbox_restart_dzen2.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Copyright (c) 2018 Slawomir Wojciech Wojtczak (vermaden) 4 | # All rights reserved. 5 | # 6 | # THIS SOFTWARE USES FREEBSD LICENSE (ALSO KNOWN AS 2-CLAUSE BSD LICENSE) 7 | # https://www.freebsd.org/copyright/freebsd-license.html 8 | # 9 | # Redistribution and use in source and binary forms, with or without 10 | # modification, are permitted provided that following conditions are met: 11 | # 1. Redistributions of source code must retain the above copyright 12 | # notice, this list of conditions and the following disclaimer. 13 | # 2. Redistributions in binary form must reproduce the above copyright 14 | # notice, this list of conditions and the following disclaimer in the 15 | # documentation and/or other materials provided with the distribution. 16 | # 17 | # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS 'AS IS' AND ANY 18 | # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20 | # DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY 21 | # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 | # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 | # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 | # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 | # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # 28 | # ------------------------------ 29 | # openbox(1) RESTART DZEN2 30 | # ------------------------------ 31 | # vermaden [AT] interia [DOT] pl 32 | # https://vermaden.wordpress.com 33 | 34 | killall -9 dzen2 35 | 36 | sleep 0.3 37 | 38 | ~/scripts/dzen2-fifo.sh & 39 | -------------------------------------------------------------------------------- /__openbox_restart_picom.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Copyright (c) 2018 Slawomir Wojciech Wojtczak (vermaden) 4 | # All rights reserved. 5 | # 6 | # THIS SOFTWARE USES FREEBSD LICENSE (ALSO KNOWN AS 2-CLAUSE BSD LICENSE) 7 | # https://www.freebsd.org/copyright/freebsd-license.html 8 | # 9 | # Redistribution and use in source and binary forms, with or without 10 | # modification, are permitted provided that following conditions are met: 11 | # 1. Redistributions of source code must retain the above copyright 12 | # notice, this list of conditions and the following disclaimer. 13 | # 2. Redistributions in binary form must reproduce the above copyright 14 | # notice, this list of conditions and the following disclaimer in the 15 | # documentation and/or other materials provided with the distribution. 16 | # 17 | # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS 'AS IS' AND ANY 18 | # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20 | # DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY 21 | # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 | # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 | # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 | # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 | # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # 28 | # ------------------------------ 29 | # openbox(1) RESTART COMPTON 30 | # ------------------------------ 31 | # vermaden [AT] interia [DOT] pl 32 | # https://vermaden.wordpress.com 33 | 34 | killall -9 compton picom 35 | 36 | # compton 37 | picom 38 | -------------------------------------------------------------------------------- /__openbox_restart_plank.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Copyright (c) 2018 Slawomir Wojciech Wojtczak (vermaden) 4 | # All rights reserved. 5 | # 6 | # THIS SOFTWARE USES FREEBSD LICENSE (ALSO KNOWN AS 2-CLAUSE BSD LICENSE) 7 | # https://www.freebsd.org/copyright/freebsd-license.html 8 | # 9 | # Redistribution and use in source and binary forms, with or without 10 | # modification, are permitted provided that following conditions are met: 11 | # 1. Redistributions of source code must retain the above copyright 12 | # notice, this list of conditions and the following disclaimer. 13 | # 2. Redistributions in binary form must reproduce the above copyright 14 | # notice, this list of conditions and the following disclaimer in the 15 | # documentation and/or other materials provided with the distribution. 16 | # 17 | # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS 'AS IS' AND ANY 18 | # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20 | # DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY 21 | # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 | # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 | # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 | # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 | # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # 28 | # ------------------------------ 29 | # openbox(1) RESTART PLANK 30 | # ------------------------------ 31 | # vermaden [AT] interia [DOT] pl 32 | # https://vermaden.wordpress.com 33 | 34 | XRANDR=$( xrandr ) 35 | COUNT=$( echo "${XRANDR}" | grep -c " connected " ) 36 | DELAY=0.3 37 | 38 | killall plank 39 | sleep ${DELAY} 40 | killall -9 plank 41 | 42 | __builtin() { 43 | plank 1> /dev/null 2> /dev/null & 44 | } 45 | 46 | __right() { 47 | ( sleep $( echo "3 * ${DELAY}" | bc -l ) && killall -9 libgtop_server2 ) & 48 | } 49 | 50 | __builtin 51 | case ${COUNT} in 52 | (2) 53 | ENABLED=$( echo "${XRANDR}" | grep " connected " | grep -c -E "[0-9]+mm\ x\ [0-9]+mm" ) 54 | case ${ENABLED} in 55 | (2) 56 | __right 57 | ;; 58 | esac 59 | ;; 60 | esac 61 | 62 | # PLANK DISABLE TOOLTIPS 63 | gsettings set net.launchpad.plank.dock.settings:/net/launchpad/plank/docks/dock1/ tooltips-enabled false 64 | -------------------------------------------------------------------------------- /__openbox_restart_redshift.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Copyright (c) 2018 Slawomir Wojciech Wojtczak (vermaden) 4 | # All rights reserved. 5 | # 6 | # THIS SOFTWARE USES FREEBSD LICENSE (ALSO KNOWN AS 2-CLAUSE BSD LICENSE) 7 | # https://www.freebsd.org/copyright/freebsd-license.html 8 | # 9 | # Redistribution and use in source and binary forms, with or without 10 | # modification, are permitted provided that following conditions are met: 11 | # 1. Redistributions of source code must retain the above copyright 12 | # notice, this list of conditions and the following disclaimer. 13 | # 2. Redistributions in binary form must reproduce the above copyright 14 | # notice, this list of conditions and the following disclaimer in the 15 | # documentation and/or other materials provided with the distribution. 16 | # 17 | # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS 'AS IS' AND ANY 18 | # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20 | # DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY 21 | # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 | # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 | # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 | # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 | # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # 28 | # ------------------------------ 29 | # openbox(1) RESTART REDSHIFT 30 | # ------------------------------ 31 | # vermaden [AT] interia [DOT] pl 32 | # https://vermaden.wordpress.com 33 | 34 | XRANDR=$( xrandr ) 35 | COUNT=$( echo "${XRANDR}" | grep -c " connected " ) 36 | DELAY=0.1 37 | 38 | killall -9 redshift 39 | 40 | if ! pgrep redshift 1> /dev/null 2> /dev/null 41 | then 42 | redshift -l 51.80:19.60 -g 0.9 1> /dev/null 2> /dev/null & 43 | fi 44 | -------------------------------------------------------------------------------- /__openbox_restart_squid.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Copyright (c) 2018 Slawomir Wojciech Wojtczak (vermaden) 4 | # All rights reserved. 5 | # 6 | # THIS SOFTWARE USES FREEBSD LICENSE (ALSO KNOWN AS 2-CLAUSE BSD LICENSE) 7 | # https://www.freebsd.org/copyright/freebsd-license.html 8 | # 9 | # Redistribution and use in source and binary forms, with or without 10 | # modification, are permitted provided that following conditions are met: 11 | # 1. Redistributions of source code must retain the above copyright 12 | # notice, this list of conditions and the following disclaimer. 13 | # 2. Redistributions in binary form must reproduce the above copyright 14 | # notice, this list of conditions and the following disclaimer in the 15 | # documentation and/or other materials provided with the distribution. 16 | # 17 | # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS 'AS IS' AND ANY 18 | # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20 | # DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY 21 | # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 | # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 | # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 | # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 | # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # 28 | # ------------------------------ 29 | # openbox(1) RESTART SQUID(8) 30 | # ------------------------------ 31 | # vermaden [AT] interia [DOT] pl 32 | # https://vermaden.wordpress.com 33 | 34 | doas pkill -9 squid 35 | doas service squid onestart 36 | -------------------------------------------------------------------------------- /__openbox_restart_tint2.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Copyright (c) 2018 Slawomir Wojciech Wojtczak (vermaden) 4 | # All rights reserved. 5 | # 6 | # THIS SOFTWARE USES FREEBSD LICENSE (ALSO KNOWN AS 2-CLAUSE BSD LICENSE) 7 | # https://www.freebsd.org/copyright/freebsd-license.html 8 | # 9 | # Redistribution and use in source and binary forms, with or without 10 | # modification, are permitted provided that following conditions are met: 11 | # 1. Redistributions of source code must retain the above copyright 12 | # notice, this list of conditions and the following disclaimer. 13 | # 2. Redistributions in binary form must reproduce the above copyright 14 | # notice, this list of conditions and the following disclaimer in the 15 | # documentation and/or other materials provided with the distribution. 16 | # 17 | # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS 'AS IS' AND ANY 18 | # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20 | # DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY 21 | # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 | # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 | # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 | # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 | # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # 28 | # ------------------------------ 29 | # openbox(1) RESTART TINT2 30 | # ------------------------------ 31 | # vermaden [AT] interia [DOT] pl 32 | # https://vermaden.wordpress.com 33 | 34 | XRANDR=$( xrandr ) 35 | COUNT=$( echo "${XRANDR}" | grep -c " connected " ) 36 | DELAY=0.1 37 | 38 | killall -9 tint2 39 | 40 | __builtin() { 41 | # ( sleep ${DELAY} && tint2 -c ~/.tint2rc.STARTER 1> /dev/null 2> /dev/null ) & 42 | # ( sleep ${DELAY} && nice -n 20 tint2 -c ~/.tint2rc.ALL 1> /dev/null 2> /dev/null ) & 43 | ( sleep ${DELAY} && tint2 -c ~/.tint2rc 1> /dev/null 2> /dev/null ) & 44 | } 45 | 46 | __right() { 47 | ( sleep ${DELAY} && tint2 -c ~/.tint2rc.STARTER.RIGHT 1> /dev/null 2> /dev/null ) & 48 | ( sleep ${DELAY} && nice -n 20 tint2 -c ~/.tint2rc.RIGHT 1> /dev/null 2> /dev/null ) & 49 | } 50 | 51 | __builtin 52 | case ${COUNT} in 53 | (2) 54 | ENABLED=$( echo "${XRANDR}" | grep " connected " | grep -c -E "[0-9]+mm\ x\ [0-9]+mm" ) 55 | case ${ENABLED} in 56 | (2) 57 | # __right 58 | : 59 | ;; 60 | esac 61 | ;; 62 | esac 63 | -------------------------------------------------------------------------------- /__openbox_restart_xbindkeys.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Copyright (c) 2018 Slawomir Wojciech Wojtczak (vermaden) 4 | # All rights reserved. 5 | # 6 | # THIS SOFTWARE USES FREEBSD LICENSE (ALSO KNOWN AS 2-CLAUSE BSD LICENSE) 7 | # https://www.freebsd.org/copyright/freebsd-license.html 8 | # 9 | # Redistribution and use in source and binary forms, with or without 10 | # modification, are permitted provided that following conditions are met: 11 | # 1. Redistributions of source code must retain the above copyright 12 | # notice, this list of conditions and the following disclaimer. 13 | # 2. Redistributions in binary form must reproduce the above copyright 14 | # notice, this list of conditions and the following disclaimer in the 15 | # documentation and/or other materials provided with the distribution. 16 | # 17 | # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS 'AS IS' AND ANY 18 | # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20 | # DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY 21 | # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 | # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 | # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 | # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 | # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # 28 | # ------------------------------ 29 | # openbox(1) RESTART COMPTON 30 | # ------------------------------ 31 | # vermaden [AT] interia [DOT] pl 32 | # https://vermaden.wordpress.com 33 | 34 | killall -9 xbindkeys 35 | 36 | xbindkeys 1> /dev/null 2> /dev/null 37 | -------------------------------------------------------------------------------- /__openbox_show_screenshot.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Copyright (c) 2018 Slawomir Wojciech Wojtczak (vermaden) 4 | # All rights reserved. 5 | # 6 | # THIS SOFTWARE USES FREEBSD LICENSE (ALSO KNOWN AS 2-CLAUSE BSD LICENSE) 7 | # https://www.freebsd.org/copyright/freebsd-license.html 8 | # 9 | # Redistribution and use in source and binary forms, with or without 10 | # modification, are permitted provided that following conditions are met: 11 | # 1. Redistributions of source code must retain the above copyright 12 | # notice, this list of conditions and the following disclaimer. 13 | # 2. Redistributions in binary form must reproduce the above copyright 14 | # notice, this list of conditions and the following disclaimer in the 15 | # documentation and/or other materials provided with the distribution. 16 | # 17 | # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS 'AS IS' AND ANY 18 | # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20 | # DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY 21 | # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 | # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 | # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 | # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 | # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # 28 | # ------------------------------ 29 | # openbox(1) SCREENSHOT SHOW 30 | # ------------------------------ 31 | # vermaden [AT] interia [DOT] pl 32 | # https://vermaden.wordpress.com 33 | 34 | viewnior ~/gfx/screenshots/$( ls -tr ~/gfx/screenshots | tail -1 ) 35 | -------------------------------------------------------------------------------- /__openbox_stop_compton.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Copyright (c) 2018 Slawomir Wojciech Wojtczak (vermaden) 4 | # All rights reserved. 5 | # 6 | # THIS SOFTWARE USES FREEBSD LICENSE (ALSO KNOWN AS 2-CLAUSE BSD LICENSE) 7 | # https://www.freebsd.org/copyright/freebsd-license.html 8 | # 9 | # Redistribution and use in source and binary forms, with or without 10 | # modification, are permitted provided that following conditions are met: 11 | # 1. Redistributions of source code must retain the above copyright 12 | # notice, this list of conditions and the following disclaimer. 13 | # 2. Redistributions in binary form must reproduce the above copyright 14 | # notice, this list of conditions and the following disclaimer in the 15 | # documentation and/or other materials provided with the distribution. 16 | # 17 | # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS 'AS IS' AND ANY 18 | # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20 | # DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY 21 | # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 | # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 | # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 | # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 | # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # 28 | # ------------------------------ 29 | # openbox(1) STOP COMPTON 30 | # ------------------------------ 31 | # vermaden [AT] interia [DOT] pl 32 | # https://vermaden.wordpress.com 33 | 34 | killall -9 compton picom 35 | -------------------------------------------------------------------------------- /__openbox_stop_conky.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Copyright (c) 2018 Slawomir Wojciech Wojtczak (vermaden) 4 | # All rights reserved. 5 | # 6 | # THIS SOFTWARE USES FREEBSD LICENSE (ALSO KNOWN AS 2-CLAUSE BSD LICENSE) 7 | # https://www.freebsd.org/copyright/freebsd-license.html 8 | # 9 | # Redistribution and use in source and binary forms, with or without 10 | # modification, are permitted provided that following conditions are met: 11 | # 1. Redistributions of source code must retain the above copyright 12 | # notice, this list of conditions and the following disclaimer. 13 | # 2. Redistributions in binary form must reproduce the above copyright 14 | # notice, this list of conditions and the following disclaimer in the 15 | # documentation and/or other materials provided with the distribution. 16 | # 17 | # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS 'AS IS' AND ANY 18 | # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20 | # DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY 21 | # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 | # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 | # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 | # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 | # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # 28 | # ------------------------------ 29 | # openbox(1) STOP CONKY 30 | # ------------------------------ 31 | # vermaden [AT] interia [DOT] pl 32 | # https://vermaden.wordpress.com 33 | 34 | killall -9 conky 35 | -------------------------------------------------------------------------------- /__openbox_stop_dzen2.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Copyright (c) 2018 Slawomir Wojciech Wojtczak (vermaden) 4 | # All rights reserved. 5 | # 6 | # THIS SOFTWARE USES FREEBSD LICENSE (ALSO KNOWN AS 2-CLAUSE BSD LICENSE) 7 | # https://www.freebsd.org/copyright/freebsd-license.html 8 | # 9 | # Redistribution and use in source and binary forms, with or without 10 | # modification, are permitted provided that following conditions are met: 11 | # 1. Redistributions of source code must retain the above copyright 12 | # notice, this list of conditions and the following disclaimer. 13 | # 2. Redistributions in binary form must reproduce the above copyright 14 | # notice, this list of conditions and the following disclaimer in the 15 | # documentation and/or other materials provided with the distribution. 16 | # 17 | # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS 'AS IS' AND ANY 18 | # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20 | # DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY 21 | # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 | # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 | # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 | # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 | # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # 28 | # ------------------------------ 29 | # openbox(1) STOP DZEN2 30 | # ------------------------------ 31 | # vermaden [AT] interia [DOT] pl 32 | # https://vermaden.wordpress.com 33 | 34 | killall -9 dzen2 35 | -------------------------------------------------------------------------------- /__openbox_stop_plank.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Copyright (c) 2018 Slawomir Wojciech Wojtczak (vermaden) 4 | # All rights reserved. 5 | # 6 | # THIS SOFTWARE USES FREEBSD LICENSE (ALSO KNOWN AS 2-CLAUSE BSD LICENSE) 7 | # https://www.freebsd.org/copyright/freebsd-license.html 8 | # 9 | # Redistribution and use in source and binary forms, with or without 10 | # modification, are permitted provided that following conditions are met: 11 | # 1. Redistributions of source code must retain the above copyright 12 | # notice, this list of conditions and the following disclaimer. 13 | # 2. Redistributions in binary form must reproduce the above copyright 14 | # notice, this list of conditions and the following disclaimer in the 15 | # documentation and/or other materials provided with the distribution. 16 | # 17 | # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS 'AS IS' AND ANY 18 | # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20 | # DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY 21 | # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 | # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 | # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 | # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 | # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # 28 | # ------------------------------ 29 | # openbox(1) STOP PLANK 30 | # ------------------------------ 31 | # vermaden [AT] interia [DOT] pl 32 | # https://vermaden.wordpress.com 33 | 34 | DELAY=1 35 | 36 | killall plank 37 | sleep ${DELAY} 38 | killall -9 plank 39 | -------------------------------------------------------------------------------- /__openbox_stop_squid.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Copyright (c) 2018 Slawomir Wojciech Wojtczak (vermaden) 4 | # All rights reserved. 5 | # 6 | # THIS SOFTWARE USES FREEBSD LICENSE (ALSO KNOWN AS 2-CLAUSE BSD LICENSE) 7 | # https://www.freebsd.org/copyright/freebsd-license.html 8 | # 9 | # Redistribution and use in source and binary forms, with or without 10 | # modification, are permitted provided that following conditions are met: 11 | # 1. Redistributions of source code must retain the above copyright 12 | # notice, this list of conditions and the following disclaimer. 13 | # 2. Redistributions in binary form must reproduce the above copyright 14 | # notice, this list of conditions and the following disclaimer in the 15 | # documentation and/or other materials provided with the distribution. 16 | # 17 | # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS 'AS IS' AND ANY 18 | # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20 | # DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY 21 | # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 | # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 | # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 | # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 | # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # 28 | # ------------------------------ 29 | # openbox(1) RESTART SQUID(8) 30 | # ------------------------------ 31 | # vermaden [AT] interia [DOT] pl 32 | # https://vermaden.wordpress.com 33 | 34 | doas pkill -9 squid 35 | doas service squid onestart 36 | -------------------------------------------------------------------------------- /__openbox_stop_tint2.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Copyright (c) 2018 Slawomir Wojciech Wojtczak (vermaden) 4 | # All rights reserved. 5 | # 6 | # THIS SOFTWARE USES FREEBSD LICENSE (ALSO KNOWN AS 2-CLAUSE BSD LICENSE) 7 | # https://www.freebsd.org/copyright/freebsd-license.html 8 | # 9 | # Redistribution and use in source and binary forms, with or without 10 | # modification, are permitted provided that following conditions are met: 11 | # 1. Redistributions of source code must retain the above copyright 12 | # notice, this list of conditions and the following disclaimer. 13 | # 2. Redistributions in binary form must reproduce the above copyright 14 | # notice, this list of conditions and the following disclaimer in the 15 | # documentation and/or other materials provided with the distribution. 16 | # 17 | # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS 'AS IS' AND ANY 18 | # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20 | # DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY 21 | # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 | # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 | # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 | # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 | # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # 28 | # ------------------------------ 29 | # openbox(1) STOP TINT2 30 | # ------------------------------ 31 | # vermaden [AT] interia [DOT] pl 32 | # https://vermaden.wordpress.com 33 | 34 | killall -9 tint2 35 | -------------------------------------------------------------------------------- /__openbox_stop_xbindkeys.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Copyright (c) 2018 Slawomir Wojciech Wojtczak (vermaden) 4 | # All rights reserved. 5 | # 6 | # THIS SOFTWARE USES FREEBSD LICENSE (ALSO KNOWN AS 2-CLAUSE BSD LICENSE) 7 | # https://www.freebsd.org/copyright/freebsd-license.html 8 | # 9 | # Redistribution and use in source and binary forms, with or without 10 | # modification, are permitted provided that following conditions are met: 11 | # 1. Redistributions of source code must retain the above copyright 12 | # notice, this list of conditions and the following disclaimer. 13 | # 2. Redistributions in binary form must reproduce the above copyright 14 | # notice, this list of conditions and the following disclaimer in the 15 | # documentation and/or other materials provided with the distribution. 16 | # 17 | # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS 'AS IS' AND ANY 18 | # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20 | # DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY 21 | # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 | # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 | # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 | # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 | # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # 28 | # ------------------------------ 29 | # openbox(1) STOP COMPTON 30 | # ------------------------------ 31 | # vermaden [AT] interia [DOT] pl 32 | # https://vermaden.wordpress.com 33 | 34 | killall -9 xbindkeys 35 | -------------------------------------------------------------------------------- /acpi-thinkpad-fan.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # PUT SOMETHING LIKE THAT INTO crontab -e COMMAND 4 | # ACPI/IBM/FAN 5 | # * * * * * ~/scripts/acpi-thinkpad-fan.sh 6 | 7 | if ! kldstat | grep -q acpi_ibm.ko 8 | then 9 | doas kldload acpi_ibm 1> /dev/null 2> /dev/null 10 | fi 11 | 12 | doas sysctl dev.acpi_ibm.0.fan=0 1> /dev/null 2> /dev/null 13 | 14 | TEMP=$( sysctl -n hw.acpi.thermal.tz0.temperature | awk -F'.' '{print $1}' ) 15 | [ ${TEMP} -lt 50 ] && doas sysctl dev.acpi_ibm.0.fan_level=0 1> /dev/null 2> /dev/null && exit 0 16 | [ ${TEMP} -lt 55 ] && doas sysctl dev.acpi_ibm.0.fan_level=1 1> /dev/null 2> /dev/null && exit 0 17 | [ ${TEMP} -lt 60 ] && doas sysctl dev.acpi_ibm.0.fan_level=2 1> /dev/null 2> /dev/null && exit 0 18 | [ ${TEMP} -lt 70 ] && doas sysctl dev.acpi_ibm.0.fan_level=4 1> /dev/null 2> /dev/null && exit 0 19 | [ ${TEMP} -lt 80 ] && doas sysctl dev.acpi_ibm.0.fan_level=6 1> /dev/null 2> /dev/null && exit 0 20 | [ ${TEMP} -gt 80 ] && doas sysctl dev.acpi_ibm.0.fan_level=7 1> /dev/null 2> /dev/null && exit 0 21 | 22 | # [ ${TEMP} -lt 50 ] && doas sysctl dev.acpi_ibm.0.fan_level=0 1> /dev/null 2> /dev/null && exit 0 23 | # [ ${TEMP} -lt 60 ] && doas sysctl dev.acpi_ibm.0.fan_level=1 1> /dev/null 2> /dev/null && exit 0 24 | # [ ${TEMP} -lt 70 ] && doas sysctl dev.acpi_ibm.0.fan_level=3 1> /dev/null 2> /dev/null && exit 0 25 | # [ ${TEMP} -lt 80 ] && doas sysctl dev.acpi_ibm.0.fan_level=5 1> /dev/null 2> /dev/null && exit 0 26 | # [ ${TEMP} -gt 80 ] && doas sysctl dev.acpi_ibm.0.fan_level=7 1> /dev/null 2> /dev/null && exit 0 27 | 28 | -------------------------------------------------------------------------------- /battery-capacity.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Copyright (c) 2018 Slawomir Wojciech Wojtczak (vermaden) 4 | # All rights reserved. 5 | # 6 | # THIS SOFTWARE USES FREEBSD LICENSE (ALSO KNOWN AS 2-CLAUSE BSD LICENSE) 7 | # https://www.freebsd.org/copyright/freebsd-license.html 8 | # 9 | # Redistribution and use in source and binary forms, with or without 10 | # modification, are permitted provided that following conditions are met: 11 | # 1. Redistributions of source code must retain the above copyright 12 | # notice, this list of conditions and the following disclaimer. 13 | # 2. Redistributions in binary form must reproduce the above copyright 14 | # notice, this list of conditions and the following disclaimer in the 15 | # documentation and/or other materials provided with the distribution. 16 | # 17 | # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS 'AS IS' AND ANY 18 | # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20 | # DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY 21 | # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 | # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 | # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 | # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 | # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # 28 | # ------------------------------ 29 | # BATTERY CAPACITY TESTER 30 | # ------------------------------ 31 | # vermaden [AT] interia [DOT] pl 32 | # https://vermaden.wordpress.com 33 | 34 | if [ ${#} -ne 1 -a ${#} -ne 0 ] 35 | then 36 | echo "usage: ${0##*/} BATTERY" 37 | exit 38 | fi 39 | 40 | if [ "${1}" = "" ] 41 | then 42 | BAT=0 43 | else 44 | BAT=${1} 45 | fi 46 | 47 | if acpiconf -i ${BAT} 1> /dev/null 2> /dev/null 48 | then 49 | DATA=$( acpiconf -i ${BAT} ) 50 | MAX=$( echo "${DATA}" | grep '^Design\ capacity:' | awk -F ':' '{print $2}' | tr -c -d '0-9' ) 51 | NOW=$( echo "${DATA}" | grep '^Last\ full\ capacity:' | awk -F ':' '{print $2}' | tr -c -d '0-9' ) 52 | MOD=$( echo "${DATA}" | grep '^Model\ number:' | awk -F ':' '{print $2}' | awk '{print $1}' ) 53 | echo -n "Battery '${BAT}' model '${MOD}' has efficiency: " 54 | printf '%1.0f%%\n' $( bc -l -e "scale = 2; ${NOW} / ${MAX} * 100" -e quit ) 55 | else 56 | echo "NOPE: Battery '${BAT}' does not exists on this system." 57 | echo "INFO: Most systems has only '0' or '1' batteries." 58 | exit 1 59 | fi 60 | -------------------------------------------------------------------------------- /contacts-check.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Copyright (c) 2018-2020 Slawomir Wojciech Wojtczak (vermaden) 4 | # All rights reserved. 5 | # 6 | # THIS SOFTWARE USES FREEBSD LICENSE (ALSO KNOWN AS 2-CLAUSE BSD LICENSE) 7 | # https://www.freebsd.org/copyright/freebsd-license.html 8 | # 9 | # Redistribution and use in source and binary forms, with or without 10 | # modification, are permitted provided that following conditions are met: 11 | # 1. Redistributions of source code must retain the above copyright 12 | # notice, this list of conditions and the following disclaimer. 13 | # 2. Redistributions in binary form must reproduce the above copyright 14 | # notice, this list of conditions and the following disclaimer in the 15 | # documentation and/or other materials provided with the distribution. 16 | # 17 | # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS 'AS IS' AND ANY 18 | # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20 | # DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY 21 | # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 | # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 | # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 | # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 | # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # 28 | # ------------------------------ 29 | # CONTACTS PHONE DUPLICATE CHECK 30 | # ------------------------------ 31 | # vermaden [AT] interia [DOT] pl 32 | # https://vermaden.wordpress.com 33 | 34 | __usage() { 35 | cat << __EOF 36 | usage: ${0##*/} FILE 37 | 38 | __EOF 39 | exit 1 40 | } 41 | 42 | if [ ${#} -ne 1 ] 43 | then 44 | __usage 45 | fi 46 | 47 | if [ ! -e "${1}" ] 48 | then 49 | echo "NOPE: file '${1}' does not exists" 50 | echo 51 | __usage 52 | exit 1 53 | fi 54 | 55 | awk '{print $2}' "${1}" \ 56 | | grep -v -- - \ 57 | | tr ';' '\n' \ 58 | | sort -n \ 59 | | uniq -c \ 60 | | sort -n \ 61 | | while read COUNT PHONE 62 | do 63 | if [ ${COUNT} -eq 1 ] 64 | then 65 | continue 66 | else 67 | grep ${PHONE} "${1}" 68 | echo 69 | fi 70 | done 71 | -------------------------------------------------------------------------------- /desktop-battery-warning.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Copyright (c) 2018 Slawomir Wojciech Wojtczak (vermaden) 4 | # All rights reserved. 5 | # 6 | # THIS SOFTWARE USES FREEBSD LICENSE (ALSO KNOWN AS 2-CLAUSE BSD LICENSE) 7 | # https://www.freebsd.org/copyright/freebsd-license.html 8 | # 9 | # Redistribution and use in source and binary forms, with or without 10 | # modification, are permitted provided that following conditions are met: 11 | # 1. Redistributions of source code must retain the above copyright 12 | # notice, this list of conditions and the following disclaimer. 13 | # 2. Redistributions in binary form must reproduce the above copyright 14 | # notice, this list of conditions and the following disclaimer in the 15 | # documentation and/or other materials provided with the distribution. 16 | # 17 | # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS 'AS IS' AND ANY 18 | # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20 | # DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY 21 | # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 | # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 | # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 | # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 | # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # 28 | # ------------------------------ 29 | # DESKTOP BATTERY WARNING 30 | # ------------------------------ 31 | # vermaden [AT] interia [DOT] pl 32 | # https://vermaden.wordpress.com 33 | 34 | export DISPLAY=:0 35 | 36 | export PATH=${PATH}:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin 37 | 38 | # FREEBSD FIRST USES bat1 THEN bat0 SO USING -i 0 IS SUFFICIENT HERE 39 | STATE=$( acpiconf -i 0 | awk '/^Remaining capacity/ { sub(/%/,""); print $3; }' ) 40 | 41 | case ${STATE} in 42 | (''|*[!0-9]*) 43 | exit 0 44 | ;; 45 | esac 46 | 47 | [ ${STATE} -lt 6 ] && [ $( sysctl -n hw.acpi.acline ) -eq 0 ] && { 48 | zenity --title "WARNING!" \ 49 | --warning \ 50 | --text="BATTERY: 5%" \ 51 | 1> /dev/null 2> /dev/null 52 | } 53 | -------------------------------------------------------------------------------- /desktop-kill-shit.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Copyright (c) 2018 Slawomir Wojciech Wojtczak (vermaden) 4 | # All rights reserved. 5 | # 6 | # THIS SOFTWARE USES FREEBSD LICENSE (ALSO KNOWN AS 2-CLAUSE BSD LICENSE) 7 | # https://www.freebsd.org/copyright/freebsd-license.html 8 | # 9 | # Redistribution and use in source and binary forms, with or without 10 | # modification, are permitted provided that following conditions are met: 11 | # 1. Redistributions of source code must retain the above copyright 12 | # notice, this list of conditions and the following disclaimer. 13 | # 2. Redistributions in binary form must reproduce the above copyright 14 | # notice, this list of conditions and the following disclaimer in the 15 | # documentation and/or other materials provided with the distribution. 16 | # 17 | # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS 'AS IS' AND ANY 18 | # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20 | # DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY 21 | # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 | # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 | # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 | # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 | # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # 28 | # ------------------------------ 29 | # DESKTOP KILL SHIT 30 | # ------------------------------ 31 | # vermaden [AT] interia [DOT] pl 32 | # https://vermaden.wordpress.com 33 | 34 | doas pkill \ 35 | at-spi-bus-launcher \ 36 | at-spi2-registryd \ 37 | gconfd-2 \ 38 | gvfs-hal-volume-mon \ 39 | gvfs-gphoto2-volume \ 40 | gvfsd \ 41 | gvfsd-metadata \ 42 | gvfsd-fuse \ 43 | dconf-service \ 44 | tumblerd \ 45 | xfconfd \ 46 | upowerd \ 47 | gst-plugin-scanner 48 | -------------------------------------------------------------------------------- /distfiles/apps.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vermaden/scripts/4ff086eb6fa38baebf2e7ae3b5590bdcd4adf984/distfiles/apps.tar.gz -------------------------------------------------------------------------------- /distfiles/config/boot-loader.conf: -------------------------------------------------------------------------------- 1 | # CONSOLE COMMON 2 | autoboot_delay=2 # USE '-1' FOR NO WAIT | USE 'NO' FOR INFINITE WAIT 3 | hw.usb.no_boot_wait=1 # DO NOT WAIT FOR USB DEVICES FOR ROOT (/) FILESYSTEM 4 | boot_mute=YES # LIKE '-m' IN LOADER - MUTE CONSOLE WITH FreeBSD LOGO 5 | loader_logo=none # POSSIBLE LOGO OPTIONS: fbsdbw beastiebw beastie none 6 | loader_menu_frame=none # TURN OFF MENU FRAME 7 | screen.font="6x12" # SIZE OF SCREEN FONT | ALL SIZES: # ls /boot/fonts 8 | 9 | # CONSOLE RESOLUTION 10 | kern.vt.fb.default.mode="1920x1080" 11 | efi_max_resolution="1920x1080" 12 | vbe_max_resolution="1920x1080" 13 | 14 | # WINE FIX 15 | machdep.max_ldt_segment=2048 16 | 17 | # MODULES 18 | aesni_load=YES 19 | geom_eli_load=YES 20 | cryptodev_load=YES 21 | zfs_load=YES 22 | 23 | # drm-kmod | ENABLE POWER-SAVING DISPLAY C-STATES 24 | hw.i915kms.enable_dc=2 25 | compat.linuxkpi.i915_enable_dc=2 26 | 27 | # drm-kmod | ENABLE FRAME BUFFER COMPRESSION FOR POWER SAVINGS 28 | hw.i915kms.enable_fbc=2 29 | compat.linuxkpi.i915_enable_fbc=2 30 | 31 | # ENABLE SYNAPTICS 32 | hw.psm.synaptics_support=1 33 | 34 | # DISABLE /dev/diskid/* AND /dev/gptid/* DISKS ENTRIES 35 | kern.geom.label.disk_ident.enable=0 36 | kern.geom.label.gptid.enable=0 37 | 38 | # RACCT/RCTL RESOURCE LIMITS 39 | kern.racct.enable=1 40 | 41 | # ZFS TUNING 42 | vfs.zfs.prefetch_disable=1 43 | 44 | # POWER MANAGEMENT POWER OFF DEVICES WITHOUT ATTACHED DRIVER 45 | hw.pci.do_power_nodriver=3 46 | 47 | # POWER MANAGEMENT FOR EVERY USED AHCI CHANNEL (ahcich 0-7) 48 | hint.ahcich.0.pm_level=5 49 | hint.ahcich.1.pm_level=5 50 | hint.ahcich.2.pm_level=5 51 | hint.ahcich.3.pm_level=5 52 | hint.ahcich.4.pm_level=5 53 | hint.ahcich.5.pm_level=5 54 | hint.ahcich.6.pm_level=5 55 | hint.ahcich.7.pm_level=5 56 | -------------------------------------------------------------------------------- /distfiles/config/etc-devfs.rules: -------------------------------------------------------------------------------- 1 | [desktop=10] 2 | add path 'acd*' mode 0660 group operator 3 | add path 'cd*' mode 0660 group operator 4 | add path 'da*' mode 0660 group operator 5 | add path 'pass*' mode 0660 group operator 6 | add path 'xpt*' mode 0660 group operator 7 | add path 'fd*' mode 0660 group operator 8 | add path 'md*' mode 0660 group operator 9 | add path 'uscanner*' mode 0660 group operator 10 | add path 'lpt*' mode 0660 group cups 11 | add path 'ulpt*' mode 0660 group cups 12 | add path 'unlpt*' mode 0660 group cups 13 | add path 'ugen*' mode 0660 group operator 14 | add path 'usb/*' mode 0660 group operator 15 | add path 'video*' mode 0660 group operator 16 | add path 'cuse*' mode 0660 group operator 17 | -------------------------------------------------------------------------------- /distfiles/config/etc-localtime: -------------------------------------------------------------------------------- 1 | TZif2UTCTZif2UTC 2 | UTC0 3 | -------------------------------------------------------------------------------- /distfiles/config/etc-rc.conf: -------------------------------------------------------------------------------- 1 | # SILENCE 2 | rc_startmsgs=NO 3 | rc_info=NO 4 | 5 | # NETWORK 6 | hostname=vuk.local 7 | background_dhclient=YES 8 | extra_netfs_types=NFS 9 | defaultroute_delay=3 10 | defaultroute_carrier_delay=3 11 | gateway_enable="YES" 12 | harvest_mask=351 13 | rtsol_flags="-i" 14 | rtsold_flags="-a -i" 15 | 16 | # MODULES BASE 17 | kld_list="${kld_list} geom_eli" 18 | kld_list="${kld_list} fusefs coretemp amdtemp sem cpuctl ichsmb linux linux64" 19 | kld_list="${kld_list} cuse libiconv cd9660_iconv msdosfs_iconv udf_iconv" 20 | 21 | # MODULES drm-kmod 22 | kld_list="${kld_list} /boot/modules/i915kms.ko" 23 | # kld_list="${kld_list} /boot/modules/amdgpu.ko" 24 | # kld_list="${kld_list} /boot/modules/radeonkms.ko" 25 | 26 | # POWER 27 | performance_cx_lowest=C1 28 | economy_cx_lowest=Cmax 29 | powerd_enable=YES 30 | powerd_flags="-n adaptive -a hiadaptive -b adaptive -m 800 -M 1800" 31 | powerdxx_enable=NO 32 | powerdxx_flags="-n adaptive -a hiadaptive -b adaptive -m 800 -M 1800" 33 | 34 | # DAEMONS 35 | zfs_enable=YES 36 | xdm_enable=YES 37 | xdm_tty=ttyv4 38 | nfs_client_enable=YES 39 | moused_enable=YES 40 | syslogd_flags='-s -s' 41 | sshd_enable=YES 42 | webcamd_enable=YES 43 | rctl_enable=YES 44 | dbus_enable=YES 45 | cupsd_enable=YES 46 | ubuntu_enable=YES 47 | linux_enable=NO 48 | 49 | # OTHER 50 | devfs_system_ruleset=desktop 51 | update_motd=NO 52 | hostid_enable=NO 53 | keyrate=fast 54 | virecover_enable=NO 55 | entropy_file=NO 56 | savecore_enable=NO 57 | dumpdev=AUTO 58 | clear_tmp_enable=YES 59 | clear_tmp_X=YES 60 | -------------------------------------------------------------------------------- /distfiles/config/etc-rc.local: -------------------------------------------------------------------------------- 1 | # POWER SAVE USB DEVICES 2 | usbconfig \ 3 | | grep -v 'Logitech USB Receiver' \ 4 | | awk '{print $1}' \ 5 | | sed 's|ugen||'g \ 6 | | tr -d : \ 7 | | awk -F '.' '{print $1 " " $2 }' \ 8 | | while read U A 9 | do 10 | usbconfig -u ${U} -a ${A} power_save 2> /dev/null 11 | done 12 | 13 | -------------------------------------------------------------------------------- /distfiles/config/etc-sysctl.conf: -------------------------------------------------------------------------------- 1 | # SECURITY 2 | security.bsd.see_jail_proc=0 3 | security.bsd.unprivileged_proc_debug=0 4 | 5 | # SECURITY RANDOM PID 6 | kern.randompid=1 7 | 8 | # ANNOYING THINGS 9 | vfs.usermount=1 10 | kern.coredump=0 11 | hw.syscons.bell=0 12 | kern.vt.enable_bell=0 13 | 14 | # ZFS ASHIFT 4k 15 | vfs.zfs.min_auto_ashift=12 16 | 17 | # ZFS LIMIT TRIM DELETE 18 | vfs.zfs.vdev.trim_max_active=1 19 | 20 | # ZFS ARC TUNING MIN:128MB MAX:512MB 21 | vfs.zfs.arc.min=134217728 22 | vfs.zfs.arc.max=536870912 23 | 24 | # JAILS ALLOW UPGRADES IN JAILS 25 | security.jail.chflags_allowed=1 26 | 27 | # JAILS ALLOW RAW SOCKETS 28 | security.jail.allow_raw_sockets=1 29 | 30 | # DESKTOP INTERACTIVITY 31 | kern.sched.preempt_thresh=224 32 | 33 | # DESKTOP QUANTUM TIMESHARE THREADS 34 | kern.sched.slice=3 35 | 36 | # DESKTOP IRIDIUM CHROMIUM 37 | kern.ipc.shm_allow_removed=1 38 | 39 | # SAMPLE RATE CONVERTER QUALITY (0=low .. 4=high) 40 | hw.snd.feeder_rate_quality=3 41 | 42 | # PERFORMANCE ALL SHARED MEMORY SEGMENTS WILL BE MAPPED TO UNPAGEABLE RAM 43 | kern.ipc.shm_use_phys=1 44 | 45 | # ALLOW idprio(8) USE BY REGULAR USER 46 | security.bsd.unprivileged_idprio=1 47 | 48 | # NETWORK DO NOT SEND RST ON SEGMENTS TO CLOSED PORTS 49 | net.inet.tcp.blackhole=2 50 | 51 | # NETWORK DO NOT SEND PORT UNREACHABLES FOR REFUSED CONNECTS 52 | net.inet.udp.blackhole=1 53 | 54 | # NETWORK LIMIT ON SYN/ACK RETRANSMISSIONS (3) 55 | net.inet.tcp.syncache.rexmtlimit=0 56 | 57 | # NETWORK USE TCP SYN COOKIES IF THE SYNCACHE OVERFLOWS (1) 58 | net.inet.tcp.syncookies=0 59 | 60 | # NETWORK ASSIGN RANDOM ip_id VALUES (0) 61 | net.inet.ip.random_id=1 62 | 63 | # NETWORK ENABLE SENDING IP REDIRECTS (1) 64 | net.inet.ip.redirect=0 65 | 66 | # NETWORK IGNORE ICMP REDIRECTS (0) 67 | net.inet.icmp.drop_redirect=1 68 | 69 | # NETWORK DROP TCP PACKETS WITH SYN+FIN SET (0) 70 | net.inet.tcp.drop_synfin=1 71 | 72 | # NETWORK RECYCLE CLOSED FIN_WAIT_2 CONNECTIONS FASTER (0) 73 | net.inet.tcp.fast_finwait2_recycle=1 74 | 75 | # NETWORK CERTAIN ICMP UNREACHABLE MESSAGES MAY ABORT CONNECTIONS IN SYN_SENT (1) 76 | net.inet.tcp.icmp_may_rst=0 77 | 78 | # VIRTUALBOX aio(4) SETTINGS 79 | vfs.aio.max_buf_aio=8192 80 | vfs.aio.max_aio_queue_per_proc=65536 81 | vfs.aio.max_aio_per_proc=8192 82 | vfs.aio.max_aio_queue=65536 83 | 84 | # BHYVE 85 | net.link.tap.up_on_open=1 86 | net.link.tap.user_open=1 87 | -------------------------------------------------------------------------------- /distfiles/config/etc-ttys: -------------------------------------------------------------------------------- 1 | # 2 | # @(#)ttys 5.1 (Berkeley) 4/17/89 3 | # 4 | # This file specifies various information about terminals on the system. 5 | # It is used by several different programs. Common entries for the 6 | # various columns include: 7 | # 8 | # name The name of the terminal device. 9 | # 10 | # getty The program to start running on the terminal. Typically a 11 | # getty program, as the name implies. Other common entries 12 | # include none, when no getty is needed, and xdm, to start the 13 | # X Window System. 14 | # 15 | # type The initial terminal type for this port. For hardwired 16 | # terminal lines, this will contain the type of terminal used. 17 | # For virtual consoles, the correct type is typically xterm. 18 | # Other common values include dialup for incoming modem ports, and 19 | # unknown when the terminal type cannot be predetermined. 20 | # 21 | # status Must be on or off. If on, init will run the getty program on 22 | # the specified port. If the word "secure" appears, this tty 23 | # allows root login. 24 | # 25 | # name getty type status comments 26 | # 27 | # If console is marked "insecure", then init will ask for the root password 28 | # when going to single-user mode. 29 | console none unknown off insecure 30 | # 31 | # Virtual terminals 32 | ttyv0 "/usr/libexec/getty Pc" xterm onifexists secure 33 | ttyv1 "/usr/libexec/getty Pc" xterm onifexists secure 34 | ttyv2 "/usr/libexec/getty Pc" xterm onifexists secure 35 | ttyv3 "/usr/libexec/getty Pc" xterm onifexists secure 36 | # ttyv4 "/usr/libexec/getty Pc" xterm onifexists secure 37 | # ttyv5 "/usr/libexec/getty Pc" xterm onifexists secure 38 | # ttyv6 "/usr/libexec/getty Pc" xterm onifexists secure 39 | # ttyv7 "/usr/libexec/getty Pc" xterm onifexists secure 40 | # ttyv8 "/usr/local/bin/xdm -nodaemon" xterm off secure 41 | # Serial terminals 42 | # The 'dialup' keyword identifies dialin lines to login, fingerd etc. 43 | ttyu0 "/usr/libexec/getty 3wire" vt100 onifconsole secure 44 | ttyu1 "/usr/libexec/getty 3wire" vt100 onifconsole secure 45 | ttyu2 "/usr/libexec/getty 3wire" vt100 onifconsole secure 46 | ttyu3 "/usr/libexec/getty 3wire" vt100 onifconsole secure 47 | # Dumb console 48 | dcons "/usr/libexec/getty std.115200" vt100 off secure 49 | # Xen Virtual console 50 | xc0 "/usr/libexec/getty Pc" xterm onifconsole secure 51 | # RISC-V HTIF console 52 | rcons "/usr/libexec/getty std.115200" vt100 onifconsole secure 53 | -------------------------------------------------------------------------------- /distfiles/config/user/DOT.asoundrc: -------------------------------------------------------------------------------- 1 | pcm.OSS { 2 | type oss 3 | device /dev/dsp0.0 4 | } 5 | 6 | -------------------------------------------------------------------------------- /distfiles/config/user/DOT.config-Thunar/renamerrc: -------------------------------------------------------------------------------- 1 | [Configuration] 2 | LastActiveMode=THUNAR_RENAMER_MODE_NAME 3 | LastActiveRenamer=ThunarSbrRemoveRenamer 4 | 5 | [ThunarSbrCaseRenamer] 6 | Mode=THUNAR_SBR_CASE_RENAMER_MODE_LOWER 7 | 8 | [ThunarSbrInsertRenamer] 9 | Offset=0 10 | Text=BSD 11 | Mode=THUNAR_SBR_INSERT_MODE_INSERT 12 | OffsetMode=THUNAR_SBR_OFFSET_MODE_LEFT 13 | 14 | [ThunarSbrNumberRenamer] 15 | TextMode=THUNAR_SBR_TEXT_MODE_TN 16 | Text=BSD 17 | Mode=THUNAR_SBR_NUMBER_MODE_010203 18 | Start=01 19 | 20 | [ThunarSbrReplaceRenamer] 21 | CaseSensitive=FALSE 22 | Replacement= 23 | Pattern=BSD 24 | Regexp=FALSE 25 | 26 | [ThunarSbrRemoveRenamer] 27 | StartOffset=19 28 | EndOffset=70 29 | EndOffsetMode=THUNAR_SBR_OFFSET_MODE_LEFT 30 | StartOffsetMode=THUNAR_SBR_OFFSET_MODE_LEFT 31 | 32 | -------------------------------------------------------------------------------- /distfiles/config/user/DOT.config-Thunar/thunarrc: -------------------------------------------------------------------------------- 1 | [Configuration] 2 | DefaultView=ThunarCompactView 3 | LastCompactViewZoomLevel=THUNAR_ZOOM_LEVEL_SMALLEST 4 | LastDetailsViewColumnOrder=THUNAR_COLUMN_NAME,THUNAR_COLUMN_SIZE,THUNAR_COLUMN_TYPE,THUNAR_COLUMN_DATE_MODIFIED 5 | LastDetailsViewColumnWidths=50,388,50,50,186,50,50,50,52 6 | LastDetailsViewFixedColumns=FALSE 7 | LastDetailsViewVisibleColumns=THUNAR_COLUMN_DATE_MODIFIED,THUNAR_COLUMN_NAME,THUNAR_COLUMN_SIZE,THUNAR_COLUMN_TYPE 8 | LastDetailsViewZoomLevel=THUNAR_ZOOM_LEVEL_SMALLEST 9 | LastIconViewZoomLevel=THUNAR_ZOOM_LEVEL_NORMAL 10 | LastLocationBar=ThunarLocationButtons 11 | LastSeparatorPosition=153 12 | LastShowHidden=FALSE 13 | LastSidePane=ThunarShortcutsPane 14 | LastSortColumn=THUNAR_COLUMN_NAME 15 | LastSortOrder=GTK_SORT_ASCENDING 16 | LastStatusbarVisible=TRUE 17 | LastView=ThunarCompactView 18 | LastWindowHeight=739 19 | LastWindowWidth=1133 20 | MiscVolumeManagement=FALSE 21 | MiscCaseSensitive=FALSE 22 | MiscDateStyle=THUNAR_DATE_STYLE_ISO 23 | MiscFoldersFirst=TRUE 24 | MiscHorizontalWheelNavigates=FALSE 25 | MiscRecursivePermissions=THUNAR_RECURSIVE_PERMISSIONS_ASK 26 | MiscRememberGeometry=TRUE 27 | MiscShowAboutTemplates=TRUE 28 | MiscShowThumbnails=FALSE 29 | MiscSingleClick=FALSE 30 | MiscSingleClickTimeout=500 31 | MiscTextBesideIcons=FALSE 32 | ShortcutsIconEmblems=FALSE 33 | ShortcutsIconSize=THUNAR_ICON_SIZE_SMALLEST 34 | TreeIconEmblems=FALSE 35 | TreeIconSize=THUNAR_ICON_SIZE_SMALLEST 36 | LastWindowMaximized=FALSE 37 | 38 | -------------------------------------------------------------------------------- /distfiles/config/user/DOT.config-Trolltech.conf: -------------------------------------------------------------------------------- 1 | [Qt%20Plugin%20Cache%204.8.false] 2 | usr\local\lib\qt4\plugins\styles\adwaita.so=40807, 1, x86_64 usr/local/share/qt4/mkspecs/freebsd clang full-config, 2019-01-18T01:03:20 3 | 4 | [Qt%20Factory%20Cache%204.8] 5 | com.trolltech.Qt.QStyleFactoryInterface%3A\usr\local\lib\qt4\plugins\styles\adwaita.so=2019-01-18T01:03:20, Adwaita, Adwaita-Dark 6 | 7 | [Qt] 8 | font="Ubuntu,10,-1,5,50,0,0,0,0,0" 9 | Palette\active=#2e3436, #eeeeee, #fafafa, #f3f3f3, #d3d3d3, #b4b4b4, #2e3436, #ffffff, #2e3436, #ffffff, #ededed, #000000, #4a90d9, #ffffff, #2a76c6, #2a76c6, #ededed, #000000, #060606, #ffffff 10 | Palette\inactive=#54595a, #ededed, #ededed, #ededed, #ededed, #c3c3c3, #54595a, #ededed, #54595a, #fcfcfc, #ededed, #000000, #4a90d9, #ffffff, #4a90d9, #4a90d9, #ededed, #000000, #060606, #ffffff 11 | Palette\disabled=#8d9091, #f4f4f4, #f4f4f4, #f4f4f4, #f4f4f4, #c3c3c3, #8d9091, #ededed, #8d9091, #ffffff, #f4f4f4, #000000, #4a90d9, #ffffff, #4a90d9, #4a90d9, #ededed, #000000, #060606, #ffffff 12 | fontPath=@Invalid() 13 | embedFonts=true 14 | style=Adwaita 15 | doubleClickInterval=400 16 | cursorFlashTime=1000 17 | wheelScrollLines=3 18 | resolveSymlinks=false 19 | globalStrut\width=0 20 | globalStrut\height=0 21 | useRtlExtensions=false 22 | XIMInputStyle=On The Spot 23 | DefaultInputMethod=xim 24 | audiosink=Auto 25 | videomode=Auto 26 | GUIEffects=none 27 | -------------------------------------------------------------------------------- /distfiles/config/user/DOT.config-Xdefaults/themes.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vermaden/scripts/4ff086eb6fa38baebf2e7ae3b5590bdcd4adf984/distfiles/config/user/DOT.config-Xdefaults/themes.tar.gz -------------------------------------------------------------------------------- /distfiles/config/user/DOT.config-Xdefaults/urxvt.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vermaden/scripts/4ff086eb6fa38baebf2e7ae3b5590bdcd4adf984/distfiles/config/user/DOT.config-Xdefaults/urxvt.tar.gz -------------------------------------------------------------------------------- /distfiles/config/user/DOT.config-caja/desktop-metadata: -------------------------------------------------------------------------------- 1 | [directory] 2 | caja-icon-view-keep-aligned=true 3 | caja-icon-view-layout-timestamp=1580325832 4 | caja-icon-view-tighter-layout=true 5 | 6 | [home] 7 | caja-icon-position=64,102 8 | icon-scale=1 9 | caja-icon-position-timestamp=1580325832 10 | 11 | [trash] 12 | caja-icon-position=64,182 13 | icon-scale=1 14 | caja-icon-position-timestamp=1580325832 15 | 16 | [computer] 17 | caja-icon-position=64,22 18 | icon-scale=1 19 | caja-icon-position-timestamp=1580325832 20 | 21 | -------------------------------------------------------------------------------- /distfiles/config/user/DOT.config-caja/scripts/ncdu.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | cd "$( echo ${NAUTILUS_SCRIPT_CURRENT_URI} | sed -E s/'[a-z]+:\/\/'//g -e s/%20/\ /g )" && xterm -geometry 160x40 -e ncdu 4 | -------------------------------------------------------------------------------- /distfiles/config/user/DOT.config-caja/scripts/terminal.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | cd "$( echo ${NAUTILUS_SCRIPT_CURRENT_URI} | sed -E -e s/'[a-z]+:\/\/'//g -e s/'%20'/\ /g -e s/'%5B'/\[/g -e s/'%5D'/\]/g )" && xterm 4 | -------------------------------------------------------------------------------- /distfiles/config/user/DOT.config-caja/scripts/thunar-mass-rename.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | thunar --bulk-rename "$@" 4 | -------------------------------------------------------------------------------- /distfiles/config/user/DOT.config-caja/scripts/thunar.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | thunar "$( echo ${NAUTILUS_SCRIPT_CURRENT_URI} | sed -E s/'[a-z]+:\/\/'//g -E s/'%20'/\ /g )" 4 | -------------------------------------------------------------------------------- /distfiles/config/user/DOT.config-deadbeef/dspconfig: -------------------------------------------------------------------------------- 1 | supereq 1 { 2 | 0.645161 3 | 1.075269 4 | 0.645161 5 | 0.430108 6 | -0.645161 7 | -1.290323 8 | -3.225806 9 | -4.516129 10 | -5.376344 11 | -5.806451 12 | -5.806451 13 | -4.731184 14 | -3.870968 15 | -2.580645 16 | -1.290323 17 | -0.430108 18 | 0.000000 19 | -0.430108 20 | 0.430108 21 | } 22 | -------------------------------------------------------------------------------- /distfiles/config/user/DOT.config-galculator/galculator.conf: -------------------------------------------------------------------------------- 1 | 2 | [general] 3 | 4 | display_bkg_color="#CC3BD78CE90F" 5 | display_result_font="SV Basic Manual 13" 6 | display_result_color="black" 7 | display_stack_font="Sans Bold 10" 8 | display_stack_color="black" 9 | display_module_font="Sans 10" 10 | display_module_active_color="black" 11 | display_module_inactive_color="grey" 12 | display_module_number=true 13 | display_module_angle=true 14 | display_module_notation=true 15 | display_module_arith=true 16 | display_module_open=true 17 | custom_button_font=false 18 | button_font="Sans 10" 19 | button_width=40 20 | button_height=25 21 | function_button_group=true 22 | dispctrl_button_group=true 23 | logic_button_group=true 24 | standard_button_group=true 25 | mode=0 26 | dec_sep=false 27 | dec_sep_length=3 28 | dec_sep_char=" " 29 | hex_bits=32 30 | hex_signed=true 31 | hex_sep=false 32 | hex_sep_length=4 33 | hex_sep_char=" " 34 | oct_bits=32 35 | oct_signed=true 36 | oct_sep=false 37 | oct_sep_length=3 38 | oct_sep_char=" " 39 | bin_bits=16 40 | bin_signed=true 41 | bin_fixed=false 42 | bin_length=8 43 | bin_sep=false 44 | bin_sep_length=4 45 | bin_sep_char=" " 46 | default_number_base=0 47 | default_angle_base=1 48 | default_notation_mode=0 49 | stack_size=3 50 | remembers_display=false 51 | remembered_valuex="0" 52 | remembered_valuey="0" 53 | remembered_valuez="0" 54 | remembered_valuet="0" 55 | show_menu_bar=true 56 | 57 | [constants] 58 | 59 | Pi:pi=3.14159265359 60 | Euler's Number:e=2.71828182846 61 | 62 | [user functions] 63 | 64 | abs(x)=sqrt(x^2) 65 | sign(x)=x/abs(x) 66 | cot(x)=cos(x)/sin(x) 67 | -------------------------------------------------------------------------------- /distfiles/config/user/DOT.config-geany.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vermaden/scripts/4ff086eb6fa38baebf2e7ae3b5590bdcd4adf984/distfiles/config/user/DOT.config-geany.tar.gz -------------------------------------------------------------------------------- /distfiles/config/user/DOT.config-htop/htoprc: -------------------------------------------------------------------------------- 1 | # Beware! This file is rewritten by htop when settings are changed in the interface. 2 | # The parser is also very primitive, and not human-friendly. 3 | htop_version=3.2.2 4 | config_reader_min_version=3 5 | fields=0 48 17 18 38 39 2 46 47 49 1 6 | hide_kernel_threads=0 7 | hide_userland_threads=1 8 | hide_running_in_container=0 9 | shadow_other_users=0 10 | show_thread_names=0 11 | show_program_path=0 12 | highlight_base_name=1 13 | highlight_deleted_exe=1 14 | shadow_distribution_path_prefix=0 15 | highlight_megabytes=1 16 | highlight_threads=1 17 | highlight_changes=0 18 | highlight_changes_delay_secs=5 19 | find_comm_in_cmdline=1 20 | strip_exe_from_cmdline=1 21 | show_merged_command=1 22 | header_margin=1 23 | screen_tabs=0 24 | detailed_cpu_time=1 25 | cpu_count_from_one=1 26 | show_cpu_usage=1 27 | show_cpu_frequency=0 28 | show_cpu_temperature=0 29 | degree_fahrenheit=0 30 | update_process_names=0 31 | account_guest_in_cpu_meter=1 32 | color_scheme=0 33 | enable_mouse=1 34 | delay=20 35 | hide_function_bar=0 36 | header_layout=two_50_50 37 | column_meters_0=AllCPUs CPU Memory Swap 38 | column_meter_modes_0=1 1 1 1 39 | column_meters_1=Tasks LoadAverage Uptime Battery Clock Hostname ZFSARC ZFSCARC DiskIO NetworkIO 40 | column_meter_modes_1=2 2 2 2 2 2 2 2 2 2 41 | tree_view=0 42 | sort_key=46 43 | tree_sort_key=46 44 | sort_direction=-1 45 | tree_sort_direction=-1 46 | tree_view_always_by_pid=0 47 | all_branches_collapsed=0 48 | screen:Main=PID USER PRIORITY NICE M_VIRT M_RESIDENT STATE PERCENT_CPU PERCENT_MEM TIME Command 49 | .sort_key=PERCENT_CPU 50 | .tree_sort_key=PERCENT_CPU 51 | .tree_view=0 52 | .tree_view_always_by_pid=0 53 | .sort_direction=-1 54 | .tree_sort_direction=-1 55 | .all_branches_collapsed=0 56 | -------------------------------------------------------------------------------- /distfiles/config/user/DOT.config-leafpad/leafpadrc: -------------------------------------------------------------------------------- 1 | 0.8.19 2 | 1695 3 | 799 4 | Inconsolata Medium 12 5 | 1 6 | 1 7 | 0 8 | -------------------------------------------------------------------------------- /distfiles/config/user/DOT.config-lxtask.conf: -------------------------------------------------------------------------------- 1 | [General] 2 | show_user_tasks=1 3 | show_root_tasks=1 4 | show_other_tasks=0 5 | show_cached_as_free=1 6 | full_view=0 7 | win_width=629 8 | win_height=544 9 | refresh_interval=2 10 | -------------------------------------------------------------------------------- /distfiles/config/user/DOT.config-mpv/mpv.conf: -------------------------------------------------------------------------------- 1 | # LOOP 2 | # loop-file=inf 3 | 4 | # VAAPI SETUP 5 | # PKG: pkg install mpv libvdpau-va-gl 6 | # PKG: pkg install libva-intel-driver 7 | # FILE: ${HOME}/.config/mpv/mpv.conf 8 | hwdec=vaapi 9 | 10 | -------------------------------------------------------------------------------- /distfiles/config/user/DOT.config-openbox/autostart: -------------------------------------------------------------------------------- 1 | # /usr/local/etc/xdg/openbox/autostart 2 | -------------------------------------------------------------------------------- /distfiles/config/user/DOT.config-openbox/environment: -------------------------------------------------------------------------------- 1 | # /usr/local/etc/xdg/openbox/environment 2 | -------------------------------------------------------------------------------- /distfiles/config/user/DOT.config-openbox/icons.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vermaden/scripts/4ff086eb6fa38baebf2e7ae3b5590bdcd4adf984/distfiles/config/user/DOT.config-openbox/icons.tar.gz -------------------------------------------------------------------------------- /distfiles/config/user/DOT.config-plank/dock1.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vermaden/scripts/4ff086eb6fa38baebf2e7ae3b5590bdcd4adf984/distfiles/config/user/DOT.config-plank/dock1.tar.gz -------------------------------------------------------------------------------- /distfiles/config/user/DOT.config-qt5ct/qt5ct.conf: -------------------------------------------------------------------------------- 1 | [Appearance] 2 | color_scheme_path=/usr/local/share/qt5ct/colors/simple.conf 3 | custom_palette=true 4 | icon_theme=Faenza 5 | standard_dialogs=default 6 | style=Adwaita 7 | 8 | [Fonts] 9 | fixed=@Variant(\0\0\0@\0\0\0\x10\0\x43\0o\0n\0s\0o\0l\0\x61\0s@$\0\0\0\0\0\0\xff\xff\xff\xff\x5\x1\0\x32\x10) 10 | general=@Variant(\0\0\0@\0\0\0\f\0U\0\x62\0u\0n\0t\0u@$\0\0\0\0\0\0\xff\xff\xff\xff\x5\x1\0\x19\x10) 11 | 12 | [Interface] 13 | activate_item_on_single_click=1 14 | buttonbox_layout=3 15 | cursor_flash_time=1000 16 | dialog_buttons_have_icons=2 17 | double_click_interval=400 18 | gui_effects=@Invalid() 19 | keyboard_scheme=2 20 | menus_have_icons=true 21 | show_shortcuts_in_context_menus=true 22 | stylesheets=/usr/local/share/qt5ct/qss/fusion-fixes.qss 23 | toolbutton_style=4 24 | underline_shortcut=1 25 | wheel_scroll_lines=3 26 | 27 | [SettingsWindow] 28 | geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\x2\x34\0\0\0\xc5\0\0\x4\\\0\0\x3\xa7\0\0\x2\x36\0\0\0\xd8\0\0\x4Z\0\0\x3\xa3\0\0\0\0\0\0\0\0\a\x80\0\0\x2\x36\0\0\0\xd8\0\0\x4Z\0\0\x3\xa3) 29 | -------------------------------------------------------------------------------- /distfiles/config/user/DOT.config-sakura/sakura.conf: -------------------------------------------------------------------------------- 1 | [sakura] 2 | colorset1_fore=rgb(131,148,150) 3 | colorset1_back=rgb(0,43,54) 4 | colorset1_curs=rgb(240,240,240) 5 | colorset1_key=F1 6 | colorset2_back=rgb(253,246,227) 7 | colorset2_fore=rgb(101,123,131) 8 | colorset2_curs=rgb(101,123,131) 9 | colorset2_key=F2 10 | colorset3_fore=rgb(192,192,192) 11 | colorset3_back=rgb(0,0,0) 12 | colorset3_curs=rgb(255,255,255) 13 | colorset3_key=F3 14 | colorset4_fore=rgb(192,192,192) 15 | colorset4_back=rgb(0,0,0) 16 | colorset4_curs=rgb(255,255,255) 17 | colorset4_key=F4 18 | colorset5_fore=rgb(192,192,192) 19 | colorset5_back=rgb(0,0,0) 20 | colorset5_curs=rgb(255,255,255) 21 | colorset5_key=F5 22 | colorset6_fore=rgb(192,192,192) 23 | colorset6_back=rgb(0,0,0) 24 | colorset6_curs=rgb(255,255,255) 25 | colorset6_key=F6 26 | last_colorset=1 27 | scroll_lines=40960 28 | font=Consolas 14 29 | show_always_first_tab=No 30 | scrollbar=false 31 | closebutton=true 32 | tabs_on_bottom=false 33 | less_questions=true 34 | disable_numbered_tabswitch=false 35 | use_fading=false 36 | scrollable_tabs=true 37 | urgent_bell=Yes 38 | audible_bell=No 39 | blinking_cursor=Yes 40 | stop_tab_cycling_at_end_tabs=No 41 | allow_bold=Yes 42 | cursor_type=VTE_CURSOR_SHAPE_BLOCK 43 | word_chars=-,./?%&#_~: 44 | palette=3 45 | add_tab_accelerator=5 46 | del_tab_accelerator=5 47 | switch_tab_accelerator=4 48 | move_tab_accelerator=5 49 | copy_accelerator=5 50 | scrollbar_accelerator=5 51 | open_url_accelerator=5 52 | font_size_accelerator=4 53 | set_tab_name_accelerator=5 54 | add_tab_key=T 55 | del_tab_key=W 56 | prev_tab_key=Left 57 | next_tab_key=Right 58 | copy_key=C 59 | paste_key=V 60 | scrollbar_key=S 61 | set_tab_name_key=N 62 | increase_font_size_key=plus 63 | decrease_font_size_key=minus 64 | fullscreen_key=F11 65 | set_colorset_accelerator=5 66 | icon_file=terminal-tango.svg 67 | search_accelerator=5 68 | search_key=F 69 | colorset1_scheme=3 70 | colorset2_scheme=1 71 | colorset3_scheme=1 72 | colorset4_scheme=1 73 | colorset5_scheme=1 74 | colorset6_scheme=1 75 | bold_is_bright=true 76 | copy_on_select=true 77 | paste_button=2 78 | menu_button=3 79 | show_tab_bar=multiple 80 | window_columns=80 81 | window_rows=24 82 | -------------------------------------------------------------------------------- /distfiles/config/user/DOT.config-sakura/sakura.tango.conf: -------------------------------------------------------------------------------- 1 | [sakura] 2 | colorset1_fore=rgb(192,192,192) 3 | colorset1_back=rgb(40,32,32) 4 | colorset1_curs=rgb(240,240,240) 5 | colorset1_key=F1 6 | colorset2_back=rgb(253,246,227) 7 | colorset2_fore=rgb(101,123,131) 8 | colorset2_curs=rgb(101,123,131) 9 | colorset2_key=F2 10 | colorset3_fore=rgb(192,192,192) 11 | colorset3_back=rgb(0,0,0) 12 | colorset3_curs=rgb(255,255,255) 13 | colorset3_key=F3 14 | colorset4_fore=rgb(192,192,192) 15 | colorset4_back=rgb(0,0,0) 16 | colorset4_curs=rgb(255,255,255) 17 | colorset4_key=F4 18 | colorset5_fore=rgb(192,192,192) 19 | colorset5_back=rgb(0,0,0) 20 | colorset5_curs=rgb(255,255,255) 21 | colorset5_key=F5 22 | colorset6_fore=rgb(192,192,192) 23 | colorset6_back=rgb(0,0,0) 24 | colorset6_curs=rgb(255,255,255) 25 | colorset6_key=F6 26 | last_colorset=1 27 | scroll_lines=40960 28 | font=Consolas 11 29 | show_always_first_tab=No 30 | scrollbar=false 31 | closebutton=true 32 | tabs_on_bottom=false 33 | less_questions=true 34 | disable_numbered_tabswitch=false 35 | use_fading=false 36 | scrollable_tabs=true 37 | urgent_bell=Yes 38 | audible_bell=No 39 | blinking_cursor=Yes 40 | stop_tab_cycling_at_end_tabs=No 41 | allow_bold=Yes 42 | cursor_type=VTE_CURSOR_SHAPE_BLOCK 43 | word_chars=-,./?%&#_~: 44 | palette=tango 45 | add_tab_accelerator=5 46 | del_tab_accelerator=5 47 | switch_tab_accelerator=4 48 | move_tab_accelerator=5 49 | copy_accelerator=5 50 | scrollbar_accelerator=5 51 | open_url_accelerator=5 52 | font_size_accelerator=4 53 | set_tab_name_accelerator=5 54 | add_tab_key=T 55 | del_tab_key=W 56 | prev_tab_key=Left 57 | next_tab_key=Right 58 | copy_key=C 59 | paste_key=V 60 | scrollbar_key=S 61 | set_tab_name_key=N 62 | increase_font_size_key=plus 63 | decrease_font_size_key=minus 64 | fullscreen_key=F11 65 | set_colorset_accelerator=5 66 | icon_file=terminal-tango.svg 67 | search_accelerator=5 68 | search_key=F 69 | -------------------------------------------------------------------------------- /distfiles/config/user/DOT.config-sayonara/player.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vermaden/scripts/4ff086eb6fa38baebf2e7ae3b5590bdcd4adf984/distfiles/config/user/DOT.config-sayonara/player.db -------------------------------------------------------------------------------- /distfiles/config/user/DOT.config-skippy-xd/skippy-xd.rc: -------------------------------------------------------------------------------- 1 | # Copy this to ~/.config/skippy-xd/skippy-xd.rc and edit it to your liking 2 | # 3 | # Notes: 4 | # 5 | # - colors can be anything XAllocNamedColor can handle 6 | # (like "black" or "#000000") 7 | # 8 | # - distance is a relative number, and is scaled according to the scale 9 | # factor applied to windows 10 | # 11 | # - fonts are Xft font descriptions 12 | # 13 | # - booleans are "true" or anything but "true" (-> false) 14 | # 15 | # - opacity is an integer in the range of 0-255 16 | # 17 | # - brighness is a floating point number (with 0.0 as neutral) 18 | # 19 | # - if the update frequency is a negative value, the mini-windows will only 20 | # be updated when they're explicitly rendered (like, when they gain or 21 | # lose focus). 22 | # 23 | # - the 'shadowText' option can be a color or 'none', in which case the 24 | # drop-shadow effect is disabled 25 | # 26 | # - Picture specification: 27 | # [WIDTHxHEIGHT] [orig|scale|scalek|tile] [left|mid|right] [left|mid|right] 28 | # [COLOR|#FFFFFFFF] [PATH] 29 | # 30 | # Examples: 31 | # background = 500x400 tile right mid #FF0000 /home/richard/screenshots/256.png 32 | # background = orig mid mid #FF000080 33 | # 34 | # - Bindings in [bindings] section can bind to "no" (do nothing), "focus" 35 | # (focus to window), "iconify", "shade-ewmh" (toggle window shade state), 36 | # "close-icccm" (close window with ICCCM method), "close-ewmh" (close 37 | # window with EWMH method), or "destroy" (forcefully destroy the window). 38 | # 39 | 40 | [general] 41 | distance = 50 42 | useNetWMFullscreen = true 43 | ignoreSkipTaskbar = true 44 | updateFreq = 30.0 45 | lazyTrans = true 46 | pipePath = /tmp/skippy-xd-fifo 47 | movePointerOnStart = true 48 | movePointerOnSelect = true 49 | movePointerOnRaise = true 50 | switchDesktopOnActivate = true 51 | useNameWindowPixmap = false 52 | forceNameWindowPixmap = false 53 | includeFrame = true 54 | allowUpscale = true 55 | showAllDesktops = true 56 | showUnmapped = true 57 | preferredIconSize = 32 58 | clientDisplayModes = thumbnail icon filled none 59 | iconFillSpec = orig mid mid #666666 60 | fillSpec = orig mid mid #FFFFFF 61 | background = 62 | 63 | [xinerama] 64 | showAll = true 65 | 66 | [normal] 67 | tint = black 68 | tintOpacity = 0 69 | opacity = 200 70 | 71 | [highlight] 72 | tint = #202020 73 | tintOpacity = 64 74 | opacity = 255 75 | 76 | [tooltip] 77 | show = true 78 | followsMouse = true 79 | offsetX = 20 80 | offsetY = 20 81 | align = left 82 | border = #111111 83 | background = #333333 84 | opacity = 128 85 | text = #eedddd 86 | textShadow = none 87 | font = ubuntu-10:weight=normal 88 | 89 | [bindings] 90 | miwMouse1 = focus 91 | miwMouse2 = close-ewmh 92 | miwMouse3 = iconify 93 | 94 | -------------------------------------------------------------------------------- /distfiles/config/user/DOT.config-viewnior/viewnior.conf: -------------------------------------------------------------------------------- 1 | [prefs] 2 | zoom-mode=0 3 | fit-on-fullscreen=true 4 | show-hidden=false 5 | dark-background=false 6 | smooth-images=true 7 | confirm-delete=true 8 | reload-on-save=false 9 | show-menu-bar=false 10 | show-toolbar=true 11 | show-scrollbar=true 12 | show-statusbar=false 13 | start-maximized=true 14 | slideshow-timeout=5 15 | auto-resize=false 16 | behavior-wheel=1 17 | behavior-click=0 18 | behavior-modify=0 19 | jpeg-quality=90 20 | png-compression=9 21 | desktop=9 22 | -------------------------------------------------------------------------------- /distfiles/config/user/DOT.exrc: -------------------------------------------------------------------------------- 1 | set noautoindent 2 | set number 3 | set ruler 4 | set tabstop=8 5 | set nowrapscan 6 | set wrapmargin=0 7 | set leftright 8 | 9 | -------------------------------------------------------------------------------- /distfiles/config/user/DOT.gtkrc-2.0: -------------------------------------------------------------------------------- 1 | include "/home/vuk/.gtkrc-2.0.mine" 2 | gtk-theme-name="Arc" 3 | gtk-icon-theme-name="Faenza" 4 | gtk-font-name="Ubuntu 10" 5 | gtk-cursor-theme-size=0 6 | gtk-toolbar-style=GTK_TOOLBAR_ICONS 7 | gtk-toolbar-icon-size=GTK_ICON_SIZE_SMALL_TOOLBAR 8 | gtk-button-images=1 9 | gtk-menu-images=1 10 | gtk-enable-event-sounds=1 11 | gtk-xft-antialias=1 12 | gtk-xft-hinting=0 13 | gtk-xft-hintstyle="hintnone" 14 | gtk-xft-rgba="rgb" 15 | 16 | -------------------------------------------------------------------------------- /distfiles/config/user/DOT.hidden: -------------------------------------------------------------------------------- 1 | Desktop 2 | 3 | -------------------------------------------------------------------------------- /distfiles/config/user/DOT.hushlogin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vermaden/scripts/4ff086eb6fa38baebf2e7ae3b5590bdcd4adf984/distfiles/config/user/DOT.hushlogin -------------------------------------------------------------------------------- /distfiles/config/user/DOT.inputrc: -------------------------------------------------------------------------------- 1 | set bell-style none 2 | set completion-ignore-case off 3 | set completion-query-items 100 4 | set disable-completion off 5 | set enable-keypad on 6 | set mark-symlinked-directories on 7 | set match-hidden-files off 8 | 9 | 10 | -------------------------------------------------------------------------------- /distfiles/config/user/DOT.vimrc: -------------------------------------------------------------------------------- 1 | "GENERAL" 2 | set nomodeline 3 | set nocompatible 4 | set backspace=indent,eol,start 5 | set autoindent 6 | set nobackup 7 | set number 8 | set nowrap 9 | set history=32 10 | set ignorecase 11 | set showcmd 12 | set incsearch 13 | set hlsearch 14 | set tabstop=2 15 | set shiftwidth=2 16 | set softtabstop=2 17 | set expandtab 18 | set ruler 19 | set mouse-=a 20 | 21 | "DISABLE ~/.viminfo FILE" 22 | let skip_defaults_vim=1 23 | set viminfo="" 24 | 25 | "ALLOW MOVE CURSOR PAST LAST CHARACTER" 26 | set virtualedit=all 27 | 28 | "COMMANDS" 29 | command WQ wq 30 | command Wq wq 31 | command W w 32 | command Q q 33 | 34 | "COLORS/SYNTAX" 35 | syntax on 36 | -------------------------------------------------------------------------------- /distfiles/config/user/DOT.xbindkeysrc: -------------------------------------------------------------------------------- 1 | #|13.x|# # VOLUME UP // Mouse // FreeBSD 13.x or EARLIER 2 | #|13.x|# "for I in /dev/mixer*; do mixer -f ${I} pcm 100; mixer -f ${I} vol +5; done" 3 | #|13.x|# m:0x0 + b:9 4 | #|13.x|# 5 | #|13.x|# # VOLUME UP // ThinkPad // FreeBSD 13.x or EARLIER 6 | #|13.x|# "for I in /dev/mixer*; do mixer -f ${I} pcm 100; mixer -f ${I} vol +5; done" 7 | #|13.x|# XF86AudioRaiseVolume 8 | #|13.x|# 9 | #|13.x|# # VOLUME DOWN // Mouse // FreeBSD 13.x or EARLIER 10 | #|13.x|# "for I in /dev/mixer*; do mixer -f ${I} pcm 100; mixer -f ${I} vol -5; done" 11 | #|13.x|# m:0x0 + b:8 12 | #|13.x|# 13 | #|13.x|# # VOLUME DOWN // ThinkPad // FreeBSD 13.x or EARLIER 14 | #|13.x|# "for I in /dev/mixer*; do mixer -f ${I} pcm 100; mixer -f ${I} vol -5; done" 15 | #|13.x|# XF86AudioLowerVolume 16 | 17 | # VOLUME UP // Mouse 18 | "for I in /dev/mixer*; do mixer -f ${I} pcm.volume=1.00; mixer -f ${I} vol.volume=+0.05; done" 19 | m:0x0 + b:9 20 | 21 | # VOLUME DOWN // Mouse 22 | "for I in /dev/mixer*; do mixer -f ${I} pcm.volume=1.00; mixer -f ${I} vol.volume=-0.05; done" 23 | m:0x0 + b:8 24 | 25 | # VOLUME UP // Mouse 26 | "for I in /dev/mixer*; do mixer -f ${I} pcm.volume=1.00; mixer -f ${I} vol.volume=+0.05; done" 27 | m:0x0 + b:9 28 | 29 | # VOLUME DOWN // Mouse 30 | "for I in /dev/mixer*; do mixer -f ${I} pcm.volume=1.00; mixer -f ${I} vol.volume=-0.05; done" 31 | m:0x0 + b:8 32 | 33 | # VOLUME UP // ThinkPad 34 | "for I in /dev/mixer*; do mixer -f ${I} pcm.volume=1.00; mixer -f ${I} vol.volume=+0.05; done" 35 | XF86AudioRaiseVolume 36 | 37 | # VOLUME DOWN // ThinkPad 38 | "for I in /dev/mixer*; do mixer -f ${I} pcm.volume=1.00; mixer -f ${I} vol.volume=-0.05; done" 39 | XF86AudioLowerVolume 40 | 41 | # DEADBEEF/SAYONARA TOGGLE PAUSE/PLAY 42 | "~/scripts/toggle-play-pause.sh" 43 | m:0xc + c:23 44 | 45 | # PAUSE BREAK | Pause 46 | "~/scripts/desktop-pause.sh -a" 47 | Pause 48 | 49 | # SHIFT PAUSE BREAK | Shift + Pause 50 | "~/scripts/desktop-pause.sh -s" 51 | Shift + Pause 52 | 53 | # SCROLL LOCK | Scroll Lock 54 | "~/scripts/desktop-debug.sh" 55 | m:0x0 + c:78 56 | 57 | # TURN OFF DISPLAY 58 | "~/scripts/__openbox_monitor_off_auto.sh" 59 | Control+Shift + F12 60 | 61 | # EXPOSE 62 | "skippy-xd" 63 | Shift + Escape 64 | -------------------------------------------------------------------------------- /distfiles/config/user/DOT.xmodmaprc: -------------------------------------------------------------------------------- 1 | !PAGE UP/PAGE DOWN! 2 | keycode 167 = Next NoSymbol Next 3 | keycode 166 = Prior NoSymbol Prior 4 | -------------------------------------------------------------------------------- /distfiles/config/usr-local-etc-X11-xdm-Xresources: -------------------------------------------------------------------------------- 1 | xlogin.Login.fail: Fail. 2 | xlogin.Login.changePasswdMessage: Change. 3 | xlogin.Login.namePrompt: Username: 4 | xlogin.Login.passwdPrompt: Password: 5 | xlogin.Login.echoPasswd: true 6 | xlogin.Login.background: black 7 | xlogin.Login.foreground: white 8 | xlogin.Login.failColor: #cccccc 9 | xlogin.Login.inpColor: black 10 | xlogin.Login.promptColor: #aaaaaa 11 | xlogin.Login.face: courier:size=13:style=Bold 12 | xlogin.Login.failFace: courier:size=13:style=Bold 13 | xlogin.Login.promptFace: courier:size=13:style=Normal 14 | xlogin.Login.greetFace: courier:size=13 15 | -------------------------------------------------------------------------------- /distfiles/config/usr-local-etc-X11-xdm-Xsetup_0: -------------------------------------------------------------------------------- 1 | xsetroot -solid black 2 | 3 | -------------------------------------------------------------------------------- /distfiles/config/usr-local-etc-X11-xorg.conf.d-card.conf: -------------------------------------------------------------------------------- 1 | Section "Device" 2 | Identifier "Card0" 3 | Driver "modesetting" 4 | Option "DPMS" 5 | EndSection 6 | -------------------------------------------------------------------------------- /distfiles/config/usr-local-etc-X11-xorg.conf.d-flags.conf: -------------------------------------------------------------------------------- 1 | Section "ServerFlags" 2 | Option "DontZap" "off" 3 | EndSection 4 | -------------------------------------------------------------------------------- /distfiles/config/usr-local-etc-X11-xorg.conf.d-keyboard.conf: -------------------------------------------------------------------------------- 1 | Section "InputDevice" 2 | Identifier "Keyboard0" 3 | Driver "kbd" 4 | Option "XkbOptions" "terminate:ctrl_alt_bksp,ctrl:nocaps" 5 | EndSection 6 | -------------------------------------------------------------------------------- /distfiles/config/usr-local-etc-X11-xorg.conf.d-touchpad.conf: -------------------------------------------------------------------------------- 1 | Section "InputClass" 2 | Identifier "touchpad" 3 | MatchIsTouchpad "on" 4 | Driver "libinput" 5 | Option "Tapping" "on" 6 | Option "NaturalScrolling" "on" 7 | EndSection 8 | 9 | -------------------------------------------------------------------------------- /distfiles/config/usr-local-etc-automount.conf: -------------------------------------------------------------------------------- 1 | NICENAMES=YES 2 | USERUMOUNT=YES 3 | USER=vuk 4 | FM='caja --no-desktop' 5 | -------------------------------------------------------------------------------- /distfiles/config/usr-local-etc-devd-audio_source.conf: -------------------------------------------------------------------------------- 1 | # USB/HEADPHONES/attach 2 | attach 100 { 3 | device-name "pcm[0-9]+"; 4 | action "su -l vuk -c 'env DISPLAY=:0 /home/vuk/scripts/audio-source-switch.sh attach 1> /dev/null 2> /dev/null &' &"; 5 | }; 6 | 7 | # USB/HEADPHONES/detach 8 | detach 100 { 9 | device-name "pcm[0-9]+"; 10 | action "su -l vuk -c 'env DISPLAY=:0 /home/vuk/scripts/audio-source-switch.sh detach 1> /dev/null 2> /dev/null &' &"; 11 | }; 12 | -------------------------------------------------------------------------------- /distfiles/config/usr-local-etc-doas.conf: -------------------------------------------------------------------------------- 1 | # CORE 2 | permit nopass keepenv root as root 3 | permit nopass keepenv :wheel as root 4 | 5 | # THE network.sh SCRIPT 6 | # pw groupmod network -m vuk 7 | # cat /usr/local/etc/doas.conf 8 | permit nopass :network as root cmd /etc/rc.d/netif args onerestart 9 | permit nopass :network as root cmd /usr/sbin/service args squid onerestart 10 | permit nopass :network as root cmd dhclient 11 | permit nopass :network as root cmd ifconfig 12 | permit nopass :network as root cmd killall args -9 dhclient 13 | permit nopass :network as root cmd killall args -9 ppp 14 | permit nopass :network as root cmd killall args -9 wpa_supplicant 15 | permit nopass :network as root cmd ppp 16 | permit nopass :network as root cmd route 17 | permit nopass :network as root cmd tee args -a /etc/resolv.conf 18 | permit nopass :network as root cmd tee args /etc/resolv.conf 19 | permit nopass :network as root cmd umount 20 | permit nopass :network as root cmd wpa_supplicant 21 | -------------------------------------------------------------------------------- /distfiles/config/usr-local-etc-gitup.conf: -------------------------------------------------------------------------------- 1 | # $FreeBSD$ 2 | # 3 | # Default configuration options for gitup.conf. 4 | { 5 | "defaults" : { 6 | "host" : "git.freebsd.org", 7 | "port" : 443, 8 | # "proxy_host" : "", 9 | # "proxy_port" : 0, 10 | # "proxy_username" : "", 11 | # "proxy_password" : "", 12 | # "source_address" : "", 13 | "low_memory" : false, 14 | "display_depth" : 0, 15 | "verbosity" : 1, 16 | "work_directory" : "/var/db/gitup", 17 | }, 18 | 19 | "ports" : { 20 | "repository_path" : "/ports.git", 21 | "branch" : "main", 22 | "target_directory" : "/usr/ports", 23 | "ignores" : [], 24 | }, 25 | 26 | "quarterly" : { 27 | "repository_path" : "/ports.git", 28 | "branch" : "quarterly", 29 | "target_directory" : "/usr/ports", 30 | "ignores" : [], 31 | }, 32 | 33 | "release" : { 34 | "repository_path" : "/src.git", 35 | "branch" : "releng/14.0", 36 | "target_directory" : "/usr/src", 37 | "ignores" : [ 38 | "sys/[^\/]+/conf", 39 | ], 40 | }, 41 | 42 | "stable" : { 43 | "repository_path" : "/src.git", 44 | "branch" : "stable/14", 45 | "target_directory" : "/usr/src", 46 | "ignores" : [ 47 | "sys/[^\/]+/conf", 48 | ], 49 | }, 50 | 51 | "current" : { 52 | "repository_path" : "/src.git", 53 | "branch" : "main", 54 | "target_directory" : "/usr/src", 55 | "ignores" : [ 56 | "sys/[^\/]+/conf", 57 | ], 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /distfiles/config/usr-local-etc-sudoers: -------------------------------------------------------------------------------- 1 | root ALL=(ALL) ALL 2 | %wheel ALL=(ALL) NOPASSWD: ALL 3 | 4 | %network ALL = NOPASSWD: /etc/rc.d/netif onerestart 5 | %network ALL = NOPASSWD: /sbin/dhclient * 6 | %network ALL = NOPASSWD: /sbin/ifconfig * 7 | %network ALL = NOPASSWD: /sbin/route * 8 | %network ALL = NOPASSWD: /sbin/umount -f * 9 | %network ALL = NOPASSWD: /usr/bin/killall -9 dhclient 10 | %network ALL = NOPASSWD: /usr/bin/killall -9 ppp 11 | %network ALL = NOPASSWD: /usr/bin/killall -9 wpa_supplicant 12 | %network ALL = NOPASSWD: /usr/bin/tee -a /etc/resolv.conf 13 | %network ALL = NOPASSWD: /usr/bin/tee /etc/resolv.conf 14 | %network ALL = NOPASSWD: /usr/sbin/ppp * 15 | %network ALL = NOPASSWD: /usr/sbin/service squid onerestart 16 | %network ALL = NOPASSWD: /usr/sbin/wpa_supplicant * 17 | 18 | #includedir /usr/local/etc/sudoers.d 19 | 20 | -------------------------------------------------------------------------------- /distfiles/fonts.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vermaden/scripts/4ff086eb6fa38baebf2e7ae3b5590bdcd4adf984/distfiles/fonts.tar.gz -------------------------------------------------------------------------------- /distfiles/icons.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vermaden/scripts/4ff086eb6fa38baebf2e7ae3b5590bdcd4adf984/distfiles/icons.tar.gz -------------------------------------------------------------------------------- /distfiles/nvim-config.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vermaden/scripts/4ff086eb6fa38baebf2e7ae3b5590bdcd4adf984/distfiles/nvim-config.tar.gz -------------------------------------------------------------------------------- /distfiles/nvim-lua-plugins.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vermaden/scripts/4ff086eb6fa38baebf2e7ae3b5590bdcd4adf984/distfiles/nvim-lua-plugins.tar.gz -------------------------------------------------------------------------------- /distfiles/openbox-flat-theme.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vermaden/scripts/4ff086eb6fa38baebf2e7ae3b5590bdcd4adf984/distfiles/openbox-flat-theme.tar.gz -------------------------------------------------------------------------------- /distfiles/openbox.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vermaden/scripts/4ff086eb6fa38baebf2e7ae3b5590bdcd4adf984/distfiles/openbox.tar.gz -------------------------------------------------------------------------------- /distfiles/scripts-status-bar.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vermaden/scripts/4ff086eb6fa38baebf2e7ae3b5590bdcd4adf984/distfiles/scripts-status-bar.tar.gz -------------------------------------------------------------------------------- /distfiles/scripts.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vermaden/scripts/4ff086eb6fa38baebf2e7ae3b5590bdcd4adf984/distfiles/scripts.tar.gz -------------------------------------------------------------------------------- /distfiles/verbsd/verbsd-GLOBAL.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # BE CREATION 4 | [ ${?} -eq 0 -a -e ./verbsd-base-be.sh ] && ./verbsd-base-be.sh 5 | 6 | # DIST FILES FETCH AND VERIFY 7 | [ ${?} -eq 0 -a -e ./verbsd-base-fetch.sh ] && ./verbsd-base-fetch.sh 8 | 9 | # EXTRACT DIST FILES 10 | [ ${?} -eq 0 -a -e ./verbsd-base-extract.sh ] && ./verbsd-base-extract.sh 11 | 12 | # INSTALL PACKAGES 13 | [ ${?} -eq 0 -a -e ./verbsd-packages.sh ] && ./verbsd-packages.sh 14 | 15 | # CREATE USER 16 | [ ${?} -eq 0 -a -e ./verbsd-user-create.sh ] && ./verbsd-user-create.sh 17 | 18 | # CONFIGS FETCH 19 | [ ${?} -eq 0 -a -e ./verbsd-configs-fetch.sh ] && ./verbsd-configs-fetch.sh 20 | 21 | # CONFIGS SYSTEM 22 | [ ${?} -eq 0 -a -e ./verbsd-configs-sys.sh ] && ./verbsd-configs-sys.sh 23 | 24 | # CONFIGS USER 25 | [ ${?} -eq 0 -a -e ./verbsd-configs-user.sh ] && ./verbsd-configs-user.sh 26 | 27 | # COMPAT UBUNTU 28 | [ ${?} -eq 0 -a -e ./verbsd-compat-ubuntu.sh ] && ./verbsd-compat-ubuntu.sh 29 | -------------------------------------------------------------------------------- /distfiles/verbsd/verbsd-base-be.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # LOAD SETTINGS 4 | if [ -f ./verbsd-settings.sh ] 5 | then 6 | . ./verbsd-settings.sh 7 | else 8 | echo "NOPE: the 'verbsd-settings.sh' is not available" 9 | exit 1 10 | fi 11 | 12 | # ASK USER FOR DESRUPTIVE ACTIONS 13 | echo "INFO: destroy '${POOL}/ROOT/${BE}' along with clones and create new BE there" 14 | echo -n "READ: are you OK with that? (y/n): " 15 | read YESNO 16 | 17 | # CHECK YES/NO ANSWER AND ACT ACCORDINGLY 18 | case ${YESNO} in 19 | (y|yes|ok) : ;; 20 | (*) __error "user did not wanted to continue" 21 | esac 22 | 23 | # DESTROY EXISTING ZFS BE 24 | echo "INFO: trying to destroy '${POOL}/ROOT/${BE}' BE" 25 | zfs destroy -R -f -r "${POOL}/ROOT/${BE}" 2> /dev/null 26 | echo "INFO: BE '${POOL}/ROOT/${BE}' destroyed" 27 | 28 | # CREATE NEW ZFS BE 29 | echo "INFO: trying to create new '${POOL}/ROOT/${BE}' BE" 30 | zfs create -o mountpoint=/ -o canmount=off "${POOL}/ROOT/${BE}" \ 31 | || __error "could not create '${POOL}/ROOT/${BE}' env" 32 | echo "INFO: new BE '${POOL}/ROOT/${BE}' created" 33 | 34 | # INSTALL beadm(8) MANAGER 35 | echo "INFO: trying to install 'beadm' package" 36 | /usr/bin/env ASSUME_ALWAYS_YES=yes pkg install -y beadm 1> /dev/null 2> /dev/null \ 37 | || __error "could not install 'beadm' package" 38 | echo "INFO: package 'beadm' installed" 39 | 40 | # MOUNT NEW BE 41 | echo "INFO: trying to mount '${BE}' BE on '${BEDIR}' dir" 42 | beadm mount "${BE}" "${BEDIR}" 1> /dev/null 2> /dev/null 43 | echo "INFO: BE '${BE}' mounted on '${BEDIR}' dir" 44 | -------------------------------------------------------------------------------- /distfiles/verbsd/verbsd-base-extract.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # LOAD SETTINGS 4 | if [ -f ./verbsd-settings.sh ] 5 | then 6 | . ./verbsd-settings.sh 7 | else 8 | echo "NOPE: the 'verbsd-settings.sh' is not available" 9 | exit 1 10 | fi 11 | 12 | echo "INFO: trying to extract DIST files" 13 | # EXTRACT DIST FILES 14 | for DIST in ${DISTLIST} 15 | do 16 | echo "INFO: trying to extract '${VER}-${ARCH}-${DIST}.txz' file" 17 | tar -C "${BEDIR}" --unlink -xpf "${BASEDIR}/${VER}-${ARCH}-${DIST}.txz" \ 18 | || __error "could not extract '${VER}-${ARCH}-${DIST}.txz' file" 19 | echo "INFO: the '${VER}-${ARCH}-${DIST}.txz' file extracted" 20 | done 21 | echo "INFO: DIST files extracted" 22 | -------------------------------------------------------------------------------- /distfiles/verbsd/verbsd-base-fetch.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # LOAD SETTINGS 4 | if [ -f ./verbsd-settings.sh ] 5 | then 6 | . ./verbsd-settings.sh 7 | else 8 | echo "NOPE: the 'verbsd-settings.sh' is not available" 9 | exit 1 10 | fi 11 | 12 | # CREATE BASE DIR WHERE DIST FILES WOULD BE FETCHED 13 | echo "INFO: trying to create '/jail/BASE' dir" 14 | mkdir -p "${BASEDIR}" || __error "could not create '/jail/BASE' dir" 15 | echo "INFO: dir '/jail/BASE' created" 16 | 17 | # FETCH DIST FILES 18 | echo "INFO: trying to fetch DIST files" 19 | for DIST in ${DISTLIST} 20 | do 21 | if [ ! -f "${BASEDIR}/${VER}-${ARCH}-${DIST}.txz" ] 22 | then 23 | fetch -o "${BASEDIR}/${VER}-${ARCH}-${DIST}.txz" "${LINK}/${DIST}.txz" \ 24 | || __error "could not fetch '${VER}-${ARCH}-${DIST}.txz' file" 25 | else 26 | echo "INFO: the DIST file '${VER}-${ARCH}-${DIST}.txz' already fetched" 27 | fi 28 | done 29 | echo "INFO: the DISK files are fetched" 30 | 31 | # FETCH MANICEST FILE WITH CHECKSUMS 32 | echo "INFO: trying to fetch MANIFEST file" 33 | if [ ! -f "${BASEDIR}/${VER}-${ARCH}-MANIFEST" ] 34 | then 35 | fetch -o "${BASEDIR}/${VER}-${ARCH}-MANIFEST" "${LINK}/MANIFEST" \ 36 | || __error "could not fetch '${VER}-${ARCH}-MANIFEST' file" 37 | else 38 | echo "INFO: the MANIFEST file already fetched" 39 | fi 40 | echo "INFO: the MANIFEST file fetched" 41 | 42 | # CHECK IF MANIFEST EXISTS 43 | [ -f "${BASEDIR}/${VER}-${ARCH}-MANIFEST" ] \ 44 | || __error "the '${VER}-${ARCH}-MANIFEST' does not exists" 45 | 46 | # VERIFY CHECKSUMS 47 | echo "INFO: trying to verify checksums against MANIFEST file" 48 | MANIDATA=$( cat "${BASEDIR}/${VER}-${ARCH}-MANIFEST" ) 49 | for I in ${DISTLIST} 50 | do 51 | echo "INFO: trying to verify checksum for '${VER}-${ARCH}-${I}.txz' DIST file" 52 | [ -f "${BASEDIR}/${VER}-${ARCH}-${I}.txz" ] \ 53 | || __error "file '${BASEDIR}/${VER}-${ARCH}-${I}.txz' does not exists" 54 | 55 | MANISUM=$( echo "${MANIDATA}" | grep "${I}.txz" | awk '{print $2}' ) 56 | SHASUM=$( sha256 "${BASEDIR}/${VER}-${ARCH}-${I}.txz" | awk '{print $NF}' ) 57 | [ "${MANISUM}" = "${SHASUM}" ] \ 58 | || __error "checksum for '${BASEDIR}/${VER}-${ARCH}-${I}.txz' file does not match" 59 | echo "INFO: checksum for '${VER}-${ARCH}-${I}.txz' DIST file verified" 60 | done 61 | echo "INFO: checksums against MANIFEST file verified successfully" 62 | -------------------------------------------------------------------------------- /distfiles/verbsd/verbsd-compat-ubuntu.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # LOAD SETTINGS 4 | if [ -f ./verbsd-settings.sh ] 5 | then 6 | . ./verbsd-settings.sh 7 | else 8 | echo "NOPE: the 'verbsd-settings.sh' is not available" 9 | exit 1 10 | fi 11 | -------------------------------------------------------------------------------- /distfiles/verbsd/verbsd-configs-fetch.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # LOAD SETTINGS 4 | if [ -f ./verbsd-settings.sh ] 5 | then 6 | . ./verbsd-settings.sh 7 | else 8 | echo "NOPE: the 'verbsd-settings.sh' is not available" 9 | exit 1 10 | fi 11 | 12 | # INSTALL git(1) MANAGER 13 | echo "INFO: trying to install 'git' package" 14 | /usr/bin/env ASSUME_ALWAYS_YES=yes pkg install -y git 1> /dev/null 2> /dev/null \ 15 | || __error "could not install 'git' package" 16 | echo "INFO: package 'git' installed" 17 | 18 | # CLEAN ./scripts' DIR 19 | echo "INFO: trying to remove './scripts' dir" 20 | rm -rf ./scripts || __error "could not remove './scripts' dir" 21 | echo "INFO: the './scripts' dir removed" 22 | 23 | # CLONE ./scripts' DIR 24 | echo "INFO: trying to clone 'https://github.com/vermaden/scripts' repo" 25 | git --git-dir=/dev/null clone --depth 1 https://github.com/vermaden/scripts \ 26 | || __error "could not clone 'https://github.com/vermaden/scripts' repo" 27 | echo "INFO: repo 'https://github.com/vermaden/scripts' cloned" 28 | -------------------------------------------------------------------------------- /distfiles/verbsd/verbsd-packages.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # LOAD SETTINGS 4 | if [ -f ./verbsd-settings.sh ] 5 | then 6 | . ./verbsd-settings.sh 7 | else 8 | echo "NOPE: the 'verbsd-settings.sh' is not available" 9 | exit 1 10 | fi 11 | 12 | echo "INFO: trying to set DNS to 1.1.1.1" 13 | [ "${BEDIR}" != "" ] || __error "the 'BEDIR' variable is empty" 14 | echo 'nameserver 1.1.1.1' > "${BEDIR}"/etc/resolv.conf \ 15 | || __error "failed to set DNS to 1.1.1.1" 16 | echo "INFO: DNS successfully set to 1.1.1.1" 17 | 18 | echo "INFO: try to switch to 'latest' pkg(8) branch" 19 | mkdir -p "${BEDIR}"/usr/local/etc/pkg/repos \ 20 | || __error "could not create '${BEDIR}/usr/local/etc/pkg/repos' dir" 21 | sed s-quarterly-latest-g "${BEDIR}"/etc/pkg/FreeBSD.conf \ 22 | > "${BEDIR}"/usr/local/etc/pkg/repos/FreeBSD.conf \ 23 | || __error "could not switch to 'latest' branch in '${BEDIR}/usr/local/etc/pkg/repos/FreeBSD.conf' file" 24 | echo "INFO: switched to 'latest' pkg(8) branch successfully" 25 | 26 | # BUG: https://github.com/freebsd/pkg/issues/2195 27 | echo "INFO: trying to install specified pkg(8) packages" 28 | mount -t devfs devfs "${BEDIR}"/dev \ 29 | || _error "could not mount devfs(8) on '${BEDIR}/dev' dir" 30 | while read EXCLUDE 31 | do 32 | [ "${EXCLUDE}" = "" ] && break 33 | echo "INFO: excluding '${EXCLUDE}' from pkg(8) packages (not available)" 34 | PACKAGES=$( echo ${PACKAGES} | sed s.${EXCLUDE}..g ) 35 | done << EOF 36 | $( 37 | chroot "${BEDIR}" \ 38 | /usr/bin/env ASSUME_ALWAYS_YES=yes pkg install -y --ignore-missing ${PACKAGES} 2>&1 \ 39 | | grep "No packages available to install matching" \ 40 | | awk -F\' '{print $2}' 41 | ) 42 | EOF 43 | chroot "${BEDIR}" \ 44 | /usr/bin/env ASSUME_ALWAYS_YES=yes pkg install -y --ignore-missing ${PACKAGES} \ 45 | || __error "could not install specified pkg(8) packages" 46 | umount -f "${BEDIR}"/dev \ 47 | || _error "could not umount(8) the devfs(8) on '${BEDIR}/dev' dir" 48 | echo "INFO: specified pkg(8) packages installed successfully" 49 | -------------------------------------------------------------------------------- /distfiles/verbsd/verbsd-user-create.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # LOAD SETTINGS 4 | if [ -f ./verbsd-settings.sh ] 5 | then 6 | . ./verbsd-settings.sh 7 | else 8 | echo "NOPE: the 'verbsd-settings.sh' is not available" 9 | exit 1 10 | fi 11 | 12 | # CREATE USER 13 | echo "INFO: trying to create the '${THEUSER}' user" 14 | chroot "${BEDIR}" \ 15 | /usr/bin/env pw userdel -n ${THEUSER} -r 1> /dev/null 2> /dev/null 16 | chroot "${BEDIR}" \ 17 | /usr/bin/env pw useradd ${THEUSER} \ 18 | -c ${THEUSER} \ 19 | -u ${THEUSERUID} \ 20 | -d ${THEUSERDIR} \ 21 | -G ${THEUSERGRP} \ 22 | -s /usr/local/bin/zsh \ 23 | || __error "could not create '${THEUSER}' user" 24 | echo "INFO: user '${THEUSER}' created" 25 | 26 | # TODO 27 | # passwd root 28 | # passwd vermaden 29 | -------------------------------------------------------------------------------- /distfiles/wallpapers-freebsd.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vermaden/scripts/4ff086eb6fa38baebf2e7ae3b5590bdcd4adf984/distfiles/wallpapers-freebsd.tar.gz -------------------------------------------------------------------------------- /distfiles/wallpapers-oldschool-machines-other.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vermaden/scripts/4ff086eb6fa38baebf2e7ae3b5590bdcd4adf984/distfiles/wallpapers-oldschool-machines-other.tar.gz -------------------------------------------------------------------------------- /distfiles/wallpapers-oldschool-machines.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vermaden/scripts/4ff086eb6fa38baebf2e7ae3b5590bdcd4adf984/distfiles/wallpapers-oldschool-machines.tar.gz -------------------------------------------------------------------------------- /distfiles/xterm.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vermaden/scripts/4ff086eb6fa38baebf2e7ae3b5590bdcd4adf984/distfiles/xterm.tar.gz -------------------------------------------------------------------------------- /dosbox/DOSBOX.cfg: -------------------------------------------------------------------------------- 1 | [autoexec] 2 | @echo off 3 | mount C: ~/.dosbox 4 | C: 5 | 6 | [sdl] 7 | fullscreen = false 8 | fulldouble = true 9 | 10 | [dosbox] 11 | memsize = 16 12 | 13 | [cpu] 14 | core = dynamic 15 | cycles = 20000 16 | cycleup = 1000 17 | cycledown = 1000 18 | 19 | [sblaster] 20 | sbtype=sb16 21 | sbbase=220 22 | irq=7 23 | dma=1 24 | hdma=5 25 | mixer=true 26 | oplmode=auto 27 | oplrate=44100 28 | 29 | [midi] 30 | mpu401=intelligent 31 | mididevice=default 32 | midiconfig= 33 | 34 | [mixer] 35 | nosound=false 36 | rate=44100 37 | blocksize=1024 38 | prebuffer=20 39 | 40 | [speaker] 41 | pcspeaker=true 42 | pcrate=44100 43 | tandy=auto 44 | tandyrate=44100 45 | disney=true 46 | 47 | [dos] 48 | xms=true 49 | ems=true 50 | umb=true 51 | keyboardlayout=auto 52 | -------------------------------------------------------------------------------- /dosbox/cfodder.cfg: -------------------------------------------------------------------------------- 1 | [autoexec] 2 | @echo off 3 | mount C: ~/.dosbox 4 | C: 5 | cd cfodder 6 | cannon 7 | 8 | [sdl] 9 | fullscreen = false 10 | fulldouble = true 11 | 12 | [dosbox] 13 | memsize = 8 14 | 15 | [cpu] 16 | core = dynamic 17 | cycles = 20000 18 | cycleup = 1000 19 | cycledown = 1000 20 | 21 | [sblaster] 22 | sbtype=sb16 23 | sbbase=220 24 | irq=7 25 | dma=1 26 | hdma=5 27 | mixer=true 28 | 29 | [midi] 30 | mpu401=intelligent 31 | mididevice=default 32 | midiconfig= 33 | 34 | [mixer] 35 | nosound=false 36 | rate=44100 37 | blocksize=1024 38 | prebuffer=20 39 | 40 | [speaker] 41 | pcspeaker=true 42 | pcrate=44100 43 | tandy=auto 44 | tandyrate=44100 45 | disney=true 46 | 47 | [dos] 48 | xms=true 49 | ems=true 50 | umb=true 51 | keyboardlayout=auto 52 | 53 | -------------------------------------------------------------------------------- /dosbox/cfodder2.cfg: -------------------------------------------------------------------------------- 1 | [autoexec] 2 | @echo off 3 | mount C: ~/.dosbox 4 | C: 5 | cd cfodder2 6 | cannon 7 | 8 | [sdl] 9 | fullscreen = false 10 | fulldouble = true 11 | 12 | [dosbox] 13 | memsize = 8 14 | 15 | [cpu] 16 | core = dynamic 17 | cycles = 20000 18 | cycleup = 1000 19 | cycledown = 1000 20 | 21 | [sblaster] 22 | sbtype=sb16 23 | sbbase=220 24 | irq=7 25 | dma=1 26 | hdma=5 27 | mixer=true 28 | 29 | [midi] 30 | mpu401=intelligent 31 | mididevice=default 32 | midiconfig= 33 | 34 | [mixer] 35 | nosound=false 36 | rate=44100 37 | blocksize=1024 38 | prebuffer=20 39 | 40 | [speaker] 41 | pcspeaker=true 42 | pcrate=44100 43 | tandy=auto 44 | tandyrate=44100 45 | disney=true 46 | 47 | [dos] 48 | xms=true 49 | ems=true 50 | umb=true 51 | keyboardlayout=auto 52 | 53 | -------------------------------------------------------------------------------- /dosbox/homm2.cfg: -------------------------------------------------------------------------------- 1 | [autoexec] 2 | @echo off 3 | mount C: ~/.dosbox 4 | mount D ~/.dosbox/homm2 -t cdrom -usecd 0 5 | C: 6 | cd homm2 7 | heroes2.exe 8 | 9 | [sdl] 10 | fullscreen = false 11 | fulldouble = false 12 | fullresolution=original 13 | windowresolution=original 14 | output=overlay 15 | autolock=true 16 | sensitivity=100 17 | waitonerror=true 18 | priority=higher,normal 19 | usescancodes=true 20 | 21 | [dosbox] 22 | memsize = 16 23 | machine=svga_s3 24 | 25 | [render] 26 | frameskip=0 27 | aspect=true 28 | scaler=normal2x 29 | 30 | [cpu] 31 | core=auto 32 | cputype=auto 33 | cycles=max 34 | cycleup = 1000 35 | cycledown = 1000 36 | 37 | [sblaster] 38 | sbtype=sb16 39 | sbbase=220 40 | irq=7 41 | dma=1 42 | hdma=5 43 | mixer=true 44 | oplmode=auto 45 | oplrate=44100 46 | 47 | [midi] 48 | mpu401=intelligent 49 | mididevice=default 50 | midiconfig= 51 | 52 | [mixer] 53 | nosound=false 54 | rate=44100 55 | blocksize=1024 56 | prebuffer=20 57 | 58 | [speaker] 59 | pcspeaker=true 60 | pcrate=44100 61 | tandy=auto 62 | tandyrate=44100 63 | disney=true 64 | 65 | [dos] 66 | xms=true 67 | ems=true 68 | umb=true 69 | keyboardlayout=auto 70 | 71 | [ipx] 72 | ipx=false 73 | 74 | [serial] 75 | serial1=dummy 76 | serial2=dummy 77 | serial3=disabled 78 | serial4=disabled 79 | 80 | -------------------------------------------------------------------------------- /dosbox/hospital.cfg: -------------------------------------------------------------------------------- 1 | [autoexec] 2 | @echo off 3 | mount C: ~/.dosbox 4 | C: 5 | cd hospital 6 | hospital 7 | 8 | [sdl] 9 | fullscreen = false 10 | fulldouble = true 11 | 12 | [dosbox] 13 | memsize = 16 14 | 15 | [cpu] 16 | core = dynamic 17 | cycles = 20000 18 | cycleup = 1000 19 | cycledown = 1000 20 | 21 | [sblaster] 22 | sbtype=sb16 23 | sbbase=220 24 | irq=7 25 | dma=1 26 | hdma=5 27 | mixer=true 28 | oplmode=auto 29 | oplrate=44100 30 | 31 | [midi] 32 | mpu401=intelligent 33 | mididevice=default 34 | midiconfig= 35 | 36 | [mixer] 37 | nosound=false 38 | rate=44100 39 | blocksize=1024 40 | prebuffer=20 41 | 42 | [speaker] 43 | pcspeaker=true 44 | pcrate=44100 45 | tandy=auto 46 | tandyrate=44100 47 | disney=true 48 | 49 | [dos] 50 | xms=true 51 | ems=true 52 | umb=true 53 | keyboardlayout=auto 54 | 55 | -------------------------------------------------------------------------------- /dosbox/lotus3.cfg: -------------------------------------------------------------------------------- 1 | [autoexec] 2 | @echo off 3 | mount C: ~/.dosbox 4 | imgmount D C:/lotus3/lotus3.img -size 512,8,2,384 5 | D: 6 | lotus 7 | 8 | [sdl] 9 | fullscreen = false 10 | fulldouble = true 11 | 12 | [dosbox] 13 | memsize = 8 14 | 15 | [cpu] 16 | core = dynamic 17 | cycles = 40000 18 | cycleup = 1000 19 | cycledown = 1000 20 | 21 | [sblaster] 22 | sbtype=sb16 23 | sbbase=220 24 | irq=7 25 | dma=1 26 | hdma=5 27 | mixer=true 28 | 29 | [midi] 30 | mpu401=intelligent 31 | mididevice=default 32 | midiconfig= 33 | 34 | [mixer] 35 | nosound=false 36 | rate=44100 37 | blocksize=1024 38 | prebuffer=20 39 | 40 | [speaker] 41 | pcspeaker=true 42 | pcrate=44100 43 | tandy=auto 44 | tandyrate=44100 45 | disney=true 46 | 47 | [dos] 48 | xms=true 49 | ems=true 50 | umb=true 51 | keyboardlayout=auto 52 | -------------------------------------------------------------------------------- /dosbox/settlers.cfg: -------------------------------------------------------------------------------- 1 | [autoexec] 2 | @echo off 3 | mount C: ~/.dosbox 4 | C: 5 | cd settlers 6 | sett.exe 7 | 8 | [sdl] 9 | fullscreen = false 10 | fulldouble = true 11 | 12 | [dosbox] 13 | memsize = 8 14 | 15 | [cpu] 16 | core = dynamic 17 | cycles = 20000 18 | cycleup = 1000 19 | cycledown = 1000 20 | 21 | [sblaster] 22 | sbtype=sb16 23 | sbbase=220 24 | irq=7 25 | dma=1 26 | hdma=5 27 | mixer=true 28 | oplmode=auto 29 | oplrate=44100 30 | 31 | [midi] 32 | mpu401=intelligent 33 | mididevice=default 34 | midiconfig= 35 | 36 | [mixer] 37 | nosound=false 38 | rate=44100 39 | blocksize=1024 40 | prebuffer=20 41 | 42 | [speaker] 43 | pcspeaker=true 44 | pcrate=44100 45 | tandy=auto 46 | tandyrate=44100 47 | disney=true 48 | 49 | [dos] 50 | xms=true 51 | ems=true 52 | umb=true 53 | keyboardlayout=auto 54 | -------------------------------------------------------------------------------- /dosbox/sgolf.cfg: -------------------------------------------------------------------------------- 1 | [autoexec] 2 | @echo off 3 | mount C: ~/.dosbox 4 | C: 5 | cd sgolf 6 | golfdos 7 | 8 | [sdl] 9 | fullscreen = false 10 | fulldouble = true 11 | 12 | [dosbox] 13 | memsize = 8 14 | 15 | [cpu] 16 | core = dynamic 17 | cycles = 20000 18 | cycleup = 1000 19 | cycledown = 1000 20 | 21 | [sblaster] 22 | sbtype=sb16 23 | sbbase=220 24 | irq=7 25 | dma=1 26 | hdma=5 27 | mixer=true 28 | 29 | [midi] 30 | mpu401=intelligent 31 | mididevice=default 32 | midiconfig= 33 | 34 | [mixer] 35 | nosound=false 36 | rate=44100 37 | blocksize=1024 38 | prebuffer=20 39 | 40 | [speaker] 41 | pcspeaker=true 42 | pcrate=44100 43 | tandy=auto 44 | tandyrate=44100 45 | disney=true 46 | 47 | [dos] 48 | xms=true 49 | ems=true 50 | umb=true 51 | keyboardlayout=auto 52 | -------------------------------------------------------------------------------- /dosbox/swing.cfg: -------------------------------------------------------------------------------- 1 | [autoexec] 2 | @echo off 3 | mount C ~/.dosbox 4 | mount D ~/.dosbox/swing -t cdrom -usecd 0 5 | C: 6 | cd swing 7 | swing.bat 8 | 9 | [sdl] 10 | fullscreen = false 11 | fulldouble = true 12 | 13 | [dosbox] 14 | memsize = 16 15 | 16 | [cpu] 17 | core = dynamic 18 | cycles = 40000 19 | cycleup = 1000 20 | cycledown = 1000 21 | 22 | [sblaster] 23 | sbtype=sb16 24 | sbbase=220 25 | irq=7 26 | dma=1 27 | hdma=5 28 | mixer=true 29 | 30 | [midi] 31 | mpu401=intelligent 32 | mididevice=default 33 | midiconfig= 34 | 35 | [mixer] 36 | nosound=false 37 | rate=44100 38 | blocksize=1024 39 | prebuffer=20 40 | 41 | [speaker] 42 | pcspeaker=true 43 | pcrate=44100 44 | tandy=auto 45 | tandyrate=44100 46 | disney=true 47 | 48 | [dos] 49 | xms=true 50 | ems=true 51 | umb=true 52 | keyboardlayout=auto 53 | -------------------------------------------------------------------------------- /dosbox/swos-SFX.cfg: -------------------------------------------------------------------------------- 1 | [autoexec] 2 | @echo off 3 | mount C: ~/.dosbox 4 | C: 5 | cd swos-SFX 6 | sws_eng.exe /f 7 | 8 | [sdl] 9 | fullscreen = false 10 | fulldouble = true 11 | 12 | [dosbox] 13 | memsize = 8 14 | 15 | [cpu] 16 | core = dynamic 17 | cycles = 20000 18 | cycleup = 1000 19 | cycledown = 1000 20 | 21 | [sblaster] 22 | sbtype=sb16 23 | sbbase=220 24 | irq=7 25 | dma=1 26 | hdma=5 27 | mixer=true 28 | 29 | [midi] 30 | mpu401=intelligent 31 | mididevice=default 32 | midiconfig= 33 | 34 | [mixer] 35 | nosound=false 36 | rate=44100 37 | blocksize=1024 38 | prebuffer=20 39 | 40 | [speaker] 41 | pcspeaker=true 42 | pcrate=44100 43 | tandy=auto 44 | tandyrate=44100 45 | disney=true 46 | 47 | [dos] 48 | xms=true 49 | ems=true 50 | umb=true 51 | keyboardlayout=auto 52 | -------------------------------------------------------------------------------- /dosbox/swos-UPG.cfg: -------------------------------------------------------------------------------- 1 | [autoexec] 2 | @echo off 3 | mount C: ~/.dosbox 4 | C: 5 | cd swos-SFX 6 | swsengpp.exe /f 7 | 8 | [sdl] 9 | fullscreen = false 10 | fulldouble = true 11 | 12 | [dosbox] 13 | memsize = 8 14 | 15 | [cpu] 16 | core = dynamic 17 | cycles = 20000 18 | cycleup = 1000 19 | cycledown = 1000 20 | 21 | [sblaster] 22 | sbtype=sb16 23 | sbbase=220 24 | irq=7 25 | dma=1 26 | hdma=5 27 | mixer=true 28 | 29 | [midi] 30 | mpu401=intelligent 31 | mididevice=default 32 | midiconfig= 33 | 34 | [mixer] 35 | nosound=false 36 | rate=44100 37 | blocksize=1024 38 | prebuffer=20 39 | 40 | [speaker] 41 | pcspeaker=true 42 | pcrate=44100 43 | tandy=auto 44 | tandyrate=44100 45 | disney=true 46 | 47 | [dos] 48 | xms=true 49 | ems=true 50 | umb=true 51 | keyboardlayout=auto 52 | -------------------------------------------------------------------------------- /dosbox/swos.cfg: -------------------------------------------------------------------------------- 1 | [autoexec] 2 | @echo off 3 | mount C: ~/.dosbox 4 | C: 5 | cd swos 6 | swos.exe /f 7 | 8 | [sdl] 9 | fullscreen = false 10 | fulldouble = true 11 | 12 | [dosbox] 13 | memsize = 8 14 | 15 | [cpu] 16 | core = dynamic 17 | cycles = 20000 18 | cycleup = 1000 19 | cycledown = 1000 20 | 21 | [dos] 22 | xms=true 23 | ems=true 24 | umb=true 25 | keyboardlayout=auto 26 | 27 | -------------------------------------------------------------------------------- /dzen2-fifo.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Copyright (c) 2018 Slawomir Wojciech Wojtczak (vermaden) 4 | # All rights reserved. 5 | # 6 | # THIS SOFTWARE USES FREEBSD LICENSE (ALSO KNOWN AS 2-CLAUSE BSD LICENSE) 7 | # https://www.freebsd.org/copyright/freebsd-license.html 8 | # 9 | # Redistribution and use in source and binary forms, with or without 10 | # modification, are permitted provided that following conditions are met: 11 | # 1. Redistributions of source code must retain the above copyright 12 | # notice, this list of conditions and the following disclaimer. 13 | # 2. Redistributions in binary form must reproduce the above copyright 14 | # notice, this list of conditions and the following disclaimer in the 15 | # documentation and/or other materials provided with the distribution. 16 | # 17 | # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS 'AS IS' AND ANY 18 | # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20 | # DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY 21 | # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 | # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 | # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 | # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 | # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # 28 | # ------------------------------ 29 | # DZEN2 FIFO 30 | # ------------------------------ 31 | # vermaden [AT] interia [DOT] pl 32 | # https://vermaden.wordpress.com 33 | 34 | # SETTINGS 35 | DELAY=60 36 | FONT='Ubuntu Mono-10' 37 | FG='#eeeeee' 38 | BG='#222222' 39 | NR="(sh|tail)\ .*dzen2-fifo" 40 | ME=$$ 41 | # DOS='onstart=raise' 42 | DOS='onstart=lower' 43 | DB1='button1=exec:~/scripts/dzen2-update.sh > ~/.dzen2-fifo' 44 | DB2='button2=exec:~/scripts/xdotool.sh workmenu' 45 | DB3='button3=exec:~/scripts/xdotool.sh menu' 46 | DB4='button4=exec:~/scripts/xdotool.sh down' 47 | DB5='button5=exec:~/scripts/xdotool.sh up' 48 | PS=$( ps axwww -o pid,command ) 49 | 50 | # KILL ALL ALIVE dzen2(1) PROCESSES 51 | if echo "${PS}" | grep -q -E "${NR}" 2> /dev/null 52 | then 53 | PIDS=$( echo "${PS}" | grep -E "${NR}" | awk '{print $1}' | grep -v ${ME} | tr '\n' ' ' ) 54 | if [ ! -z "${PIDS}" ] 55 | then 56 | kill -9 ${PIDS} 57 | fi 58 | fi 59 | 60 | # CLEAN OLD dzen2(1) FIFO 61 | rm -f ~/.dzen2-fifo 62 | 63 | # MAKE NEW dzen2(1) FIFO 64 | mkfifo ~/.dzen2-fifo 65 | 66 | # START dzen2(1) TO UPDATE FIFO 67 | while true 68 | do 69 | tail -1 ~/.dzen2-fifo 70 | done | dzen2 \ 71 | -w 4096 \ 72 | -fg "${FG}" \ 73 | -bg "${BG}" \ 74 | -fn "${FONT}" \ 75 | -ta l \ 76 | -e "${DOS};${DB1};${DB2};${DB3};${DB4};${DB5}" & 77 | 78 | # RUN FITST dzen2(1) UPDATE 79 | ~/scripts/dzen2-update.sh > ~/.dzen2-fifo & 80 | -------------------------------------------------------------------------------- /fc-cache.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | SUDO_WHICH=0 4 | SUDO=0 5 | DOAS_WHICH=0 6 | DOAS=1 7 | ROOT=0 8 | 9 | # CHECK doas(8) WITH which(1) 10 | if which doas 1> /dev/null 2> /dev/null 11 | then 12 | DOAS_WHICH=1 13 | else 14 | DOAS_WHICH=0 15 | fi 16 | 17 | # CHECK sudo(8) WITH which(1) 18 | if which sudo 1> /dev/null 2> /dev/null 19 | then 20 | SUDO_WHICH=1 21 | else 22 | SUDO_WHICH=0 23 | fi 24 | 25 | # CHECK USER WITH whoami(1) 26 | if [ "$( whoami )" = "root" ] 27 | then 28 | ROOT=1 29 | fi 30 | 31 | # CHOOSE ONE FROM doas(8) AND sudo(8) 32 | if [ ${DOAS_WHICH} -eq 1 -o ${SUDO_WHICH} -eq 1 ] 33 | then 34 | if [ ${DOAS} -eq 0 -a ${SUDO} -eq 1 -a ${SUDO_WHICH} -eq 1 ] 35 | then 36 | CMD=sudo 37 | elif [ ${DOAS} -eq 1 -a ${SUDO} -eq 0 -a ${DOAS_WHICH} -eq 1 ] 38 | then 39 | CMD=doas 40 | elif [ ${DOAS} -eq 1 -a ${SUDO} -eq 1 -a ${DOAS_WHICH} -eq 1 ] 41 | then 42 | CMD=doas 43 | fi 44 | elif [ ${ROOT} -eq 1 ] 45 | then 46 | CMD='' 47 | else 48 | echo "NOPE: This script needs 'doas' or 'sudo' to work properly." 49 | exit 1 50 | fi 51 | 52 | unset SUDO_WHICH 53 | unset DOAS_WHICH 54 | unset ROOT 55 | 56 | echo "Reload SYSTEM Font Cache ..." 57 | ${CMD} fc-cache -sf 58 | 59 | echo "Reload USER Font Cache ..." 60 | fc-cache -f 61 | -------------------------------------------------------------------------------- /files-big.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Copyright (c) 2018 Slawomir Wojciech Wojtczak (vermaden) 4 | # All rights reserved. 5 | # 6 | # THIS SOFTWARE USES FREEBSD LICENSE (ALSO KNOWN AS 2-CLAUSE BSD LICENSE) 7 | # https://www.freebsd.org/copyright/freebsd-license.html 8 | # 9 | # Redistribution and use in source and binary forms, with or without 10 | # modification, are permitted provided that following conditions are met: 11 | # 1. Redistributions of source code must retain the above copyright 12 | # notice, this list of conditions and the following disclaimer. 13 | # 2. Redistributions in binary form must reproduce the above copyright 14 | # notice, this list of conditions and the following disclaimer in the 15 | # documentation and/or other materials provided with the distribution. 16 | # 17 | # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS 'AS IS' AND ANY 18 | # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20 | # DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY 21 | # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 | # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 | # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 | # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 | # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # 28 | # ------------------------------ 29 | # FIND BIG FILES 30 | # ------------------------------ 31 | # vermaden [AT] interia [DOT] pl 32 | # https://vermaden.wordpress.com 33 | 34 | export LC_ALL=C 35 | 36 | if [ ${#} -eq 0 ] 37 | then 38 | DIR=. 39 | else 40 | DIR="${1}" 41 | fi 42 | 43 | find "${DIR}" -type f -exec stat -f "%16z; doas rm -f \"%N\"" {} ';' | sort -n 44 | -------------------------------------------------------------------------------- /files-count.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Copyright (c) 2018 Slawomir Wojciech Wojtczak (vermaden) 4 | # All rights reserved. 5 | # 6 | # THIS SOFTWARE USES FREEBSD LICENSE (ALSO KNOWN AS 2-CLAUSE BSD LICENSE) 7 | # https://www.freebsd.org/copyright/freebsd-license.html 8 | # 9 | # Redistribution and use in source and binary forms, with or without 10 | # modification, are permitted provided that following conditions are met: 11 | # 1. Redistributions of source code must retain the above copyright 12 | # notice, this list of conditions and the following disclaimer. 13 | # 2. Redistributions in binary form must reproduce the above copyright 14 | # notice, this list of conditions and the following disclaimer in the 15 | # documentation and/or other materials provided with the distribution. 16 | # 17 | # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS 'AS IS' AND ANY 18 | # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20 | # DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY 21 | # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 | # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 | # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 | # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 | # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # 28 | # ------------------------------ 29 | # FIND LOTS OF FILES 30 | # ------------------------------ 31 | # vermaden [AT] interia [DOT] pl 32 | # https://vermaden.wordpress.com 33 | 34 | export LC_ALL=C 35 | 36 | if [ ${#} -eq 0 ] 37 | then 38 | DIR=. 39 | else 40 | DIR="${1}" 41 | fi 42 | 43 | find "${DIR}" -type d -maxdepth 1 -mindepth 1 \ 44 | | cut -c 3- \ 45 | | while read I 46 | do 47 | find "${I}" | wc -l | tr -d '\n' 48 | echo " ${I}" 49 | done | sort -n 50 | -------------------------------------------------------------------------------- /firefox-clean.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | /usr/bin/find ~/.cache/mozilla/firefox/*/cache* -exec /bin/rm -f {} ';' 4 | /usr/bin/find ~/.cache/mozilla/firefox/*/OfflineCache -exec /bin/rm -f {} ';' 5 | /bin/rm -rf ~/.mozilla/firefox/*/storage 6 | -------------------------------------------------------------------------------- /fonts-swap-test.html: -------------------------------------------------------------------------------- 1 |
2 | This sentence is written in the ARIAL font. 3 |
4 | 5 |
6 | 7 |
8 | This sentence is written in the TREBUCHET MS font. 9 |
10 | 11 | -------------------------------------------------------------------------------- /fonts.conf: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | true 9 | false 10 | 0 11 | 75 12 | none 13 | 14 | 15 | 16 | 17 | Courier [Adobe] 18 | Courier 10 Pitch 19 | 20 | 21 | 22 | Fixed 23 | Courier 10 Pitch 24 | 25 | 26 | 27 | courier 28 | Courier 10 Pitch 29 | 30 | 31 | 32 | 33 | helvetica 34 | arial 35 | 36 | 37 | 38 | times 39 | garamond 40 | 41 | 42 | 43 | lucida 44 | trebuchet ms 45 | 46 | 47 | 48 | 49 | false 50 | 51 | 52 | 53 | -------------------------------------------------------------------------------- /fonts.conf.swap.example.txt: -------------------------------------------------------------------------------- 1 | 2 | arial 3 | trebuchet ms 4 | 5 | 6 | -------------------------------------------------------------------------------- /ftp.py: -------------------------------------------------------------------------------- 1 | #! /usr/bin/env python3 2 | 3 | from sys import argv,exit 4 | from pyftpdlib.authorizers import DummyAuthorizer 5 | from pyftpdlib.handlers import FTPHandler 6 | from pyftpdlib.servers import FTPServer 7 | import os 8 | 9 | if len(argv) != 2: 10 | print("usage:", os.path.basename(argv[0]), "PORT") 11 | print() 12 | exit(1) 13 | 14 | authorizer = DummyAuthorizer() 15 | authorizer.add_user("user", "password", ".", perm="elradfmw") 16 | authorizer.add_anonymous(".") 17 | handler = FTPHandler 18 | handler.authorizer = authorizer 19 | handler.passive_ports = range(60000, 64001) 20 | address = ("0.0.0.0", argv[1]) 21 | ftpd = FTPServer(address, handler) 22 | ftpd.serve_forever() 23 | 24 | -------------------------------------------------------------------------------- /games-DOSBOX.sh: -------------------------------------------------------------------------------- 1 | cd ~/.dosbox/ 2 | dosbox -conf ~/.dosbox/DOSBOX.cfg 3 | -------------------------------------------------------------------------------- /games-all-terrain-racing.sh: -------------------------------------------------------------------------------- 1 | fs-uae \ 2 | --base-dir=~/games.EXTRACT/FS-UAE \ 3 | ~/games.EXTRACT/all_terrain_racing_CD32/all_terrain_racing_CD32.fs-uae 4 | -------------------------------------------------------------------------------- /games-baldurs-gate-I-ee-fullscreen.sh: -------------------------------------------------------------------------------- 1 | cd ~/.wine/drive_c/BG1EE 2 | wine Baldur.exe 3 | xrandr -s 0 4 | -------------------------------------------------------------------------------- /games-baldurs-gate-I-ee-window.sh: -------------------------------------------------------------------------------- 1 | cd ~/.wine/drive_c/BG1EE 2 | # wine explorer /desktop=name,800x600 Baldur.exe 3 | wine explorer /desktop=name,1024x768 Baldur.exe 4 | xrandr -s 0 5 | -------------------------------------------------------------------------------- /games-baldurs-gate-II-ee-fullscreen.sh: -------------------------------------------------------------------------------- 1 | cd ~/.wine/drive_c/BG2EE 2 | wine Baldur.exe 3 | xrandr -s 0 4 | -------------------------------------------------------------------------------- /games-baldurs-gate-II-ee-window.sh: -------------------------------------------------------------------------------- 1 | cd ~/.wine/drive_c/BG2EE 2 | wine explorer /desktop=name,800x600 Baldur.exe 3 | xrandr -s 0 4 | -------------------------------------------------------------------------------- /games-cannon-fodder-2.sh: -------------------------------------------------------------------------------- 1 | cd ~/.dosbox/ 2 | dosbox -conf ~/.dosbox/cfodder2.cfg 3 | -------------------------------------------------------------------------------- /games-cannon-fodder.sh: -------------------------------------------------------------------------------- 1 | cd ~/.dosbox/ 2 | dosbox -conf ~/.dosbox/cfodder.cfg 3 | -------------------------------------------------------------------------------- /games-canyon-defence.sh: -------------------------------------------------------------------------------- 1 | wine ~/win32/bin/flashplayer_32_sa.exe ~/games.EXTRACT/canyon_defence.swf 2 | -------------------------------------------------------------------------------- /games-chuzzle.sh: -------------------------------------------------------------------------------- 1 | cd ~/games.EXTRACT/chuzzle 2 | wine chuzzle.exe 3 | xrandr -s 0 4 | -------------------------------------------------------------------------------- /games-colin-mcrae-rally-2.0-fullscreen.sh: -------------------------------------------------------------------------------- 1 | cd ~/.wine/drive_c/Colin\ McRae\ Rally\ 2.0 2 | wine CMR2.exe 3 | xrandr -s 0 4 | -------------------------------------------------------------------------------- /games-colin-mcrae-rally-2.0-window.sh: -------------------------------------------------------------------------------- 1 | cd ~/.wine/drive_c/Colin\ McRae\ Rally\ 2.0 2 | wine explorer /desktop=name,800x600 CMR2.exe 3 | xrandr -s 0 4 | -------------------------------------------------------------------------------- /games-diablo.sh: -------------------------------------------------------------------------------- 1 | devilutionx \ 2 | -n \ 3 | --data-dir ~/games.EXTRACT/devilution \ 4 | --save-dir ~/games.EXTRACT/devilution 5 | -------------------------------------------------------------------------------- /games-governor-of-poker.sh: -------------------------------------------------------------------------------- 1 | wine ~/win32/bin/flashplayer_32_sa.exe ~/games.EXTRACT/governor_of_poker_2.swf 2 | -------------------------------------------------------------------------------- /games-heroes-of-might-and-magic-II.sh: -------------------------------------------------------------------------------- 1 | cd ~/.dosbox/ 2 | dosbox -conf ~/.dosbox/homm2.cfg 3 | -------------------------------------------------------------------------------- /games-heroes-of-might-and-magic-III-HotA-fullscreen.sh: -------------------------------------------------------------------------------- 1 | cd ~/.wine/drive_c/HoMM3 2 | # wine explorer /desktop=name,800x600 h3hota.exe 3 | wine explorer h3hota\ HD.exe 4 | xrandr -s 0 5 | -------------------------------------------------------------------------------- /games-heroes-of-might-and-magic-III-HotA-window.sh: -------------------------------------------------------------------------------- 1 | cd ~/.wine/drive_c/HoMM3 2 | # wine explorer /desktop=name,800x600 h3hota.exe 3 | wine explorer /desktop=name,800x600 HotA_launcher.exe 4 | xrandr -s 0 5 | -------------------------------------------------------------------------------- /games-heroes-of-might-and-magic-III-fullscreen.sh: -------------------------------------------------------------------------------- 1 | cd ~/.wine/drive_c/HoMM3 2 | wine heroes3.exe 3 | xrandr -s 0 4 | -------------------------------------------------------------------------------- /games-heroes-of-might-and-magic-III-window.sh: -------------------------------------------------------------------------------- 1 | cd ~/.wine/drive_c/HoMM3 2 | wine explorer /desktop=name,800x600 heroes3.exe 3 | xrandr -s 0 4 | -------------------------------------------------------------------------------- /games-icewind-dale-ee-fullscreen.sh: -------------------------------------------------------------------------------- 1 | cd ~/.wine/drive_c/IWDEE 2 | wine Icewind.exe 3 | xrandr -s 0 4 | -------------------------------------------------------------------------------- /games-icewind-dale-ee-window.sh: -------------------------------------------------------------------------------- 1 | cd ~/.wine/drive_c/IWDEE 2 | wine explorer /desktop=name,800x600 Icewind.exe 3 | xrandr -s 0 4 | -------------------------------------------------------------------------------- /games-lionheart-fullscreen.sh: -------------------------------------------------------------------------------- 1 | cd ~/.wine/drive_c/Lionheart 2 | wine explorer /desktop=name,800x600 Lionheart.exe 3 | xrandr -s 0 4 | -------------------------------------------------------------------------------- /games-lionheart-window.sh: -------------------------------------------------------------------------------- 1 | cd ~/.wine/drive_c/Lionheart 2 | wine explorer /desktop=name,800x600 Lionheart.exe 3 | xrandr -s 0 4 | -------------------------------------------------------------------------------- /games-lotus-3.sh: -------------------------------------------------------------------------------- 1 | cd ~/.dosbox/ 2 | dosbox -conf ~/.dosbox/lotus3.cfg 3 | -------------------------------------------------------------------------------- /games-pinball-short-circuit.sh: -------------------------------------------------------------------------------- 1 | wine ~/win32/bin/flashplayer_32_sa.exe ~/games.EXTRACT/pinball_short_circuit.swf 2 | -------------------------------------------------------------------------------- /games-pinball-space-cadet-NATIVE.sh: -------------------------------------------------------------------------------- 1 | cd ~/.wine/drive_c/Pinball\ Space\ Cadet 2 | # wine pinball.exe 3 | SpaceCadetPinball 4 | xrandr -s 0 5 | -------------------------------------------------------------------------------- /games-pinball-space-cadet.sh: -------------------------------------------------------------------------------- 1 | cd "~/.wine/drive_c/Pinball Space Cadet" 2 | wine pinball.exe 3 | xrandr -s 0 4 | -------------------------------------------------------------------------------- /games-pro-pinball-timeshock-fullscreen.sh: -------------------------------------------------------------------------------- 1 | cd ~/.wine/drive_c/Timeshock 2 | wine Timeshock\!.exe 3 | xrandr -s 0 4 | -------------------------------------------------------------------------------- /games-pro-pinball-timeshock-window.sh: -------------------------------------------------------------------------------- 1 | cd ~/.wine/drive_c/Timeshock 2 | wine explorer /desktop=name,800x600 Timeshock\!.exe 3 | xrandr -s 0 4 | -------------------------------------------------------------------------------- /games-robokill-1.sh: -------------------------------------------------------------------------------- 1 | wine ~/win32/bin/flashplayer_32_sa.exe ~/games.EXTRACT/robokill_1.swf 2 | -------------------------------------------------------------------------------- /games-robokill-2.sh: -------------------------------------------------------------------------------- 1 | wine ~/win32/bin/flashplayer_32_sa.exe ~/games.EXTRACT/robokill_2.swf 2 | -------------------------------------------------------------------------------- /games-sensible-golf.sh: -------------------------------------------------------------------------------- 1 | cd ~/.dosbox/ 2 | dosbox -conf ~/.dosbox/sgolf.cfg 3 | -------------------------------------------------------------------------------- /games-sensible-world-of-soccer-SFX.sh: -------------------------------------------------------------------------------- 1 | cd ~/.dosbox/ 2 | dosbox -conf ~/.dosbox/swos-SFX.cfg 3 | -------------------------------------------------------------------------------- /games-sensible-world-of-soccer-UPG.sh: -------------------------------------------------------------------------------- 1 | cd ~/.dosbox/ 2 | dosbox -conf ~/.dosbox/swos-UPG.cfg 3 | -------------------------------------------------------------------------------- /games-sensible-world-of-soccer.sh: -------------------------------------------------------------------------------- 1 | cd ~/.dosbox/ 2 | dosbox -conf ~/.dosbox/swos.cfg 3 | -------------------------------------------------------------------------------- /games-settlers.sh: -------------------------------------------------------------------------------- 1 | cd ~/.dosbox/ 2 | dosbox -conf ~/.dosbox/settlers.cfg 3 | -------------------------------------------------------------------------------- /games-swing.sh: -------------------------------------------------------------------------------- 1 | cd ~/.dosbox/ 2 | dosbox -ioctl -conf ~/.dosbox/swing.cfg 3 | -------------------------------------------------------------------------------- /games-theme-hospital.sh: -------------------------------------------------------------------------------- 1 | cd ~/.dosbox/ 2 | dosbox -conf ~/.dosbox/hospital.cfg 3 | -------------------------------------------------------------------------------- /generate-desktop-handler.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Copyright (c) 2017-2021 Slawomir Wojciech Wojtczak (vermaden) 4 | # All rights reserved. 5 | # 6 | # THIS SOFTWARE USES FREEBSD LICENSE (ALSO KNOWN AS 2-CLAUSE BSD LICENSE) 7 | # https://www.freebsd.org/copyright/freebsd-license.html 8 | # 9 | # Redistribution and use in source and binary forms, with or without 10 | # modification, are permitted provided that following conditions are met: 11 | # 1. Redistributions of source code must retain the above copyright 12 | # notice, this list of conditions and the following disclaimer. 13 | # 2. Redistributions in binary form must reproduce the above copyright 14 | # notice, this list of conditions and the following disclaimer in the 15 | # documentation and/or other materials provided with the distribution. 16 | # 17 | # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS 'AS IS' AND ANY 18 | # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20 | # DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY 21 | # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 | # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 | # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 | # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 | # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # 28 | # ------------------------------ 29 | # GENERATE NEW *.desktop HANDLER 30 | # ------------------------------ 31 | # vermaden [AT] interia [DOT] pl 32 | # https://vermaden.wordpress.com 33 | 34 | __usage() { 35 | echo "usage: $( basename ${0} ) FILE" 36 | exit 1 37 | } 38 | 39 | if [ ${#} -ne 1 ] 40 | then 41 | __usage 42 | fi 43 | 44 | if [ ! $( which ${1} ) ] 45 | then 46 | echo "NOPE: executable '${1}' not found in \${PATH}" 47 | exit 1 48 | fi 49 | 50 | cat << BSD > ~/.local/share/applications/${1}.desktop 51 | [Desktop Entry] 52 | Encoding=UTF-8 53 | Version=1.0 54 | Type=Application 55 | NoDisplay=true 56 | Exec=${1} %f 57 | Name=${1} 58 | Comment=${1} 59 | BSD 60 | 61 | if [ ${?} -eq 0 ] 62 | then 63 | echo "INFO: handler '~/.local/share/applications/${1}.desktop' was successfully generated" 64 | else 65 | echo "NOPE: failed to generate '~/.local/share/applications/${1}.desktop' handler" 66 | exit 1 67 | fi 68 | -------------------------------------------------------------------------------- /http.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | if [ ${#} -ne 1 ] 4 | then 5 | echo "usage: ${0##*/} PORT" 6 | exit 1 7 | fi 8 | 9 | if which -s python3 1> /dev/null 2> /dev/null 10 | then 11 | python3 -m http.server ${1} 12 | exit 0 13 | fi 14 | 15 | if which -s python2 1> /dev/null 2> /dev/null 16 | then 17 | python2 -m SimpleHTTPServer ${1} 18 | exit 0 19 | fi 20 | 21 | echo "NOPE: either 'python2' or 'python3' found in \${PATH}" 22 | exit 1 23 | 24 | -------------------------------------------------------------------------------- /loop.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Copyright (c) 2018 Slawomir Wojciech Wojtczak (vermaden) 4 | # All rights reserved. 5 | # 6 | # THIS SOFTWARE USES FREEBSD LICENSE (ALSO KNOWN AS 2-CLAUSE BSD LICENSE) 7 | # https://www.freebsd.org/copyright/freebsd-license.html 8 | # 9 | # Redistribution and use in source and binary forms, with or without 10 | # modification, are permitted provided that following conditions are met: 11 | # 1. Redistributions of source code must retain the above copyright 12 | # notice, this list of conditions and the following disclaimer. 13 | # 2. Redistributions in binary form must reproduce the above copyright 14 | # notice, this list of conditions and the following disclaimer in the 15 | # documentation and/or other materials provided with the distribution. 16 | # 17 | # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS 'AS IS' AND ANY 18 | # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20 | # DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY 21 | # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 | # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 | # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 | # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 | # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # 28 | # ------------------------------ 29 | # MOUNT ISO IMAGE FreeBSD/SunOS/Linux 30 | # ------------------------------ 31 | # vermaden [AT] interia [DOT] pl 32 | # https://vermaden.wordpress.com 33 | 34 | [ ${#} -ne 2 ] && { 35 | echo "usage: ${0##*/} image.iso /mnt/point" 36 | exit 1 37 | } 38 | 39 | __absolute() { 40 | if [ -f /${1} ] 41 | then 42 | echo "${1}" 43 | else 44 | echo "$( pwd )/${1}" 45 | fi 46 | } 47 | 48 | mkdir -p "${2}" || { 49 | echo "ER: can not create mount directory" 50 | exit 1 51 | } 52 | 53 | case $( uname ) in 54 | (FreeBSD) 55 | NODE=$( mdconfig -a -t vnode -f "${1}" ) 56 | mount -t cd9660 /dev/${NODE} "${2}" 57 | ;; 58 | 59 | (SunOS) 60 | FILE=$( __absolute "${1}" ) 61 | POINT=$( __absolute "${2}" ) 62 | lofiadm -d "${FILE}" 1> /dev/null 63 | NODE=$( lofiadm -a "${FILE}" ) 64 | mount -F hsfs -o ro ${NODE} "${POINT}" 65 | ;; 66 | 67 | (Linux) 68 | mount -o loop "${1}" "${2}" 69 | ;; 70 | 71 | (*) 72 | echo "supported systems: FreeBSD Solaris Linux" 73 | exit 1 74 | ;; 75 | esac 76 | 77 | # OpenBSD 78 | # vnconfig svnd0 image.iso 79 | # mount -t cd9660 /dev/svnd0c /mnt 80 | -------------------------------------------------------------------------------- /network-ping.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # WAIT 5 SECONDS WITH -t OPTION 4 | if ! ping -c 1 -s 0 -t 5 -q 1.1.1.1 1> /dev/null 2> /dev/null 5 | then 6 | ~/scripts/network.sh wlan start 7 | else 8 | exit 0 9 | fi 10 | 11 | ~/scripts/network-ping.sh 12 | 13 | -------------------------------------------------------------------------------- /nfs.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | SUDO_WHICH=0 4 | SUDO=0 5 | DOAS_WHICH=0 6 | DOAS=1 7 | ROOT=0 8 | 9 | # CHECK doas(8) WITH which(1) 10 | if which doas 1> /dev/null 2> /dev/null 11 | then 12 | DOAS_WHICH=1 13 | else 14 | DOAS_WHICH=0 15 | fi 16 | 17 | # CHECK sudo(8) WITH which(1) 18 | if which sudo 1> /dev/null 2> /dev/null 19 | then 20 | SUDO_WHICH=1 21 | else 22 | SUDO_WHICH=0 23 | fi 24 | 25 | # CHECK USER WITH whoami(1) 26 | if [ "$( whoami )" = "root" ] 27 | then 28 | ROOT=1 29 | fi 30 | 31 | # CHOOSE ONE FROM doas(8) AND sudo(8) 32 | if [ ${DOAS_WHICH} -eq 1 -o ${SUDO_WHICH} -eq 1 ] 33 | then 34 | if [ ${DOAS} -eq 0 -a ${SUDO} -eq 1 -a ${SUDO_WHICH} -eq 1 ] 35 | then 36 | CMD=sudo 37 | elif [ ${DOAS} -eq 1 -a ${SUDO} -eq 0 -a ${DOAS_WHICH} -eq 1 ] 38 | then 39 | CMD=doas 40 | elif [ ${DOAS} -eq 1 -a ${SUDO} -eq 1 -a ${DOAS_WHICH} -eq 1 ] 41 | then 42 | CMD=doas 43 | fi 44 | elif [ ${ROOT} -eq 1 ] 45 | then 46 | CMD='' 47 | else 48 | echo "NOPE: This script needs 'doas' or 'sudo' to work properly." 49 | exit 1 50 | fi 51 | 52 | unset SUDO_WHICH 53 | unset DOAS_WHICH 54 | unset ROOT 55 | 56 | MNT=/media/blackbox 57 | DIR=/data 58 | 59 | mount -t nfs | grep -q ${MNT} || { 60 | # FSTAB 61 | # 10.0.0.2:/data /media/blackbox nfs rw,noauto,noatime,soft 62 | # ${CMD} mount /media/blackbox 63 | 64 | ${CMD} mkdir -p ${MNT} 65 | ${CMD} chown 1000:1000 ${MNT} 66 | ${CMD} mount -t nfs \ 67 | -o rw,noatime,soft,retrycnt=5,retrans=1,readahead=4,nolockd,nocto,rsize=1048576,wsize=1048576 \ 68 | 10.0.0.2:/data ${MNT} 69 | } 70 | 71 | caja --browser --no-desktop ${MNT} & 72 | -------------------------------------------------------------------------------- /pdf-concat.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Copyright (c) 2018 Slawomir Wojciech Wojtczak (vermaden) 4 | # All rights reserved. 5 | # 6 | # THIS SOFTWARE USES FREEBSD LICENSE (ALSO KNOWN AS 2-CLAUSE BSD LICENSE) 7 | # https://www.freebsd.org/copyright/freebsd-license.html 8 | # 9 | # Redistribution and use in source and binary forms, with or without 10 | # modification, are permitted provided that following conditions are met: 11 | # 1. Redistributions of source code must retain the above copyright 12 | # notice, this list of conditions and the following disclaimer. 13 | # 2. Redistributions in binary form must reproduce the above copyright 14 | # notice, this list of conditions and the following disclaimer in the 15 | # documentation and/or other materials provided with the distribution. 16 | # 17 | # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS 'AS IS' AND ANY 18 | # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20 | # DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY 21 | # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 | # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 | # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 | # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 | # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # 28 | # ------------------------------ 29 | # concat several PDF files with pdftk 30 | # ------------------------------ 31 | # vermaden [AT] interia [DOT] pl 32 | # https://vermaden.wordpress.com 33 | 34 | if [ ${#} -eq 0 ] 35 | then 36 | echo "usage: ${0##*/} FILE" 37 | exit 1 38 | fi 39 | 40 | if [ ! -f "${1}" ] 41 | then 42 | echo "ERROR: No such file or directory '${1}'." 43 | exit 1 44 | fi 45 | 46 | for BIN in pdftk 47 | do 48 | if ! /usr/bin/which ${BIN} 1> /dev/null 2> /dev/null 49 | then 50 | echo "ERROR: Binary '${BIN}' not in \$\{PATH\}." 51 | exit 1 52 | fi 53 | done 54 | 55 | NAME="ALL.pdf" 56 | if [ -f "${NAME}" ] 57 | then 58 | RANDOM=` expr $( ( ps aux ; time date +"%S" ; w ; last ) 2>&1 | cksum | awk '{print $1}' ) % 32768 ` 59 | echo "WARNING: File 'ALL.pdf' already exists." 60 | echo "WARNING: Using 'ALL.${RANDOM}.pdf' instead." 61 | NAME="ALL.${RANDOM}.pdf" 62 | fi 63 | 64 | pdftk "${@}" cat output "${NAME}" 2>&1 | grep -v '_JAVA_OPTIONS' 65 | 66 | # ALTERNATIVE gs(1) COMMAND 67 | # $ gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite \ 68 | # -sOutputFile=outfile.pdf infile1.pdf infile2.pdf 69 | 70 | if [ ${?} -eq 0 ] 71 | then 72 | echo "INFO: File '${NAME}' generated." 73 | fi 74 | -------------------------------------------------------------------------------- /pdf-decrypt.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Copyright (c) 2018 Slawomir Wojciech Wojtczak (vermaden) 4 | # All rights reserved. 5 | # 6 | # THIS SOFTWARE USES FREEBSD LICENSE (ALSO KNOWN AS 2-CLAUSE BSD LICENSE) 7 | # https://www.freebsd.org/copyright/freebsd-license.html 8 | # 9 | # Redistribution and use in source and binary forms, with or without 10 | # modification, are permitted provided that following conditions are met: 11 | # 1. Redistributions of source code must retain the above copyright 12 | # notice, this list of conditions and the following disclaimer. 13 | # 2. Redistributions in binary form must reproduce the above copyright 14 | # notice, this list of conditions and the following disclaimer in the 15 | # documentation and/or other materials provided with the distribution. 16 | # 17 | # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS 'AS IS' AND ANY 18 | # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20 | # DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY 21 | # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 | # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 | # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 | # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 | # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # 28 | # ------------------------------ 29 | # decrypt PDF file 30 | # ------------------------------ 31 | # vermaden [AT] interia [DOT] pl 32 | # https://vermaden.wordpress.com 33 | 34 | if [ ${#} -ne 1 ] 35 | then 36 | echo 37 | echo "usage: ${0##*/} FILE" 38 | echo 39 | exit 1 40 | fi 41 | 42 | for BIN in qpdf 43 | do 44 | if ! /usr/bin/which ${BIN} 1> /dev/null 2> /dev/null 45 | then 46 | echo "ERROR: Binary '${BIN}' not in \$\{PATH\}." 47 | exit 1 48 | fi 49 | done 50 | 51 | qpdf --decrypt "${1}" "${1}".DECRYPT.pdf 52 | -------------------------------------------------------------------------------- /pdf-extract.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Copyright (c) 2018 Slawomir Wojciech Wojtczak (vermaden) 4 | # All rights reserved. 5 | # 6 | # THIS SOFTWARE USES FREEBSD LICENSE (ALSO KNOWN AS 2-CLAUSE BSD LICENSE) 7 | # https://www.freebsd.org/copyright/freebsd-license.html 8 | # 9 | # Redistribution and use in source and binary forms, with or without 10 | # modification, are permitted provided that following conditions are met: 11 | # 1. Redistributions of source code must retain the above copyright 12 | # notice, this list of conditions and the following disclaimer. 13 | # 2. Redistributions in binary form must reproduce the above copyright 14 | # notice, this list of conditions and the following disclaimer in the 15 | # documentation and/or other materials provided with the distribution. 16 | # 17 | # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS 'AS IS' AND ANY 18 | # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20 | # DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY 21 | # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 | # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 | # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 | # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 | # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # 28 | # ------------------------------ 29 | # extract pages from PDF file with pdftk 30 | # ------------------------------ 31 | # vermaden [AT] interia [DOT] pl 32 | # https://vermaden.wordpress.com 33 | 34 | if [ ${#} -eq 0 ] 35 | then 36 | ME="${0##*/}" 37 | echo "usage: ${ME} FILE OPTIONS" 38 | echo 39 | echo "examples: ${ME} file.pdf 13" 40 | echo "examples: ${ME} file.pdf 1-12 14-end" 41 | echo "examples: ${ME} file.pdf 1-40" 42 | echo 43 | exit 1 44 | fi 45 | 46 | for BIN in pdftk 47 | do 48 | if ! /usr/bin/which ${BIN} 1> /dev/null 2> /dev/null 49 | then 50 | echo "ERROR: Binary '${BIN}' not in \$\{PATH\}." 51 | exit 1 52 | fi 53 | done 54 | 55 | if [ ! -f "${1}" ] 56 | then 57 | echo "ERROR: No such file or directory '${1}'." 58 | exit 1 59 | fi 60 | 61 | FILE="${1}" 62 | shift 63 | NAME="${FILE}.EXTRACT.$( echo ${@} | tr ' ' '-' ).pdf" 64 | # echo file: ${FILE} 65 | # echo args: ${@} 66 | 67 | pdftk "${FILE}" cat ${@} output "${NAME}" 2>&1 | grep -v '_JAVA_OPTIONS' 68 | 69 | # ALTERNATIVE gs(1) COMMAND 70 | # $ gs -sDEVICE=pdfwrite -dNOPAUSE -dBATCH -dSAFER \ 71 | # -dFirstPage=22 -dLastPage=36 \ 72 | # -sOutputFile=outfile_p22-p36.pdf 100p-inputfile.pdf 73 | 74 | if [ ${?} -eq 0 ] 75 | then 76 | echo "INFO: File '${NAME}' generated." 77 | fi 78 | -------------------------------------------------------------------------------- /pdf-rotate-left.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Copyright (c) 2018 Slawomir Wojciech Wojtczak (vermaden) 4 | # All rights reserved. 5 | # 6 | # THIS SOFTWARE USES FREEBSD LICENSE (ALSO KNOWN AS 2-CLAUSE BSD LICENSE) 7 | # https://www.freebsd.org/copyright/freebsd-license.html 8 | # 9 | # Redistribution and use in source and binary forms, with or without 10 | # modification, are permitted provided that following conditions are met: 11 | # 1. Redistributions of source code must retain the above copyright 12 | # notice, this list of conditions and the following disclaimer. 13 | # 2. Redistributions in binary form must reproduce the above copyright 14 | # notice, this list of conditions and the following disclaimer in the 15 | # documentation and/or other materials provided with the distribution. 16 | # 17 | # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS 'AS IS' AND ANY 18 | # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20 | # DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY 21 | # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 | # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 | # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 | # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 | # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # 28 | # ------------------------------ 29 | # split PDF pages with pdftk 30 | # ------------------------------ 31 | # vermaden [AT] interia [DOT] pl 32 | # https://vermaden.wordpress.com 33 | 34 | if [ ${#} -eq 0 ] 35 | then 36 | echo "usage: ${0##*/} FILE" 37 | exit 1 38 | fi 39 | 40 | for BIN in pdftk 41 | do 42 | if ! /usr/bin/which ${BIN} 1> /dev/null 2> /dev/null 43 | then 44 | echo "ERROR: Binary '${BIN}' not in \$\{PATH\}." 45 | exit 1 46 | fi 47 | done 48 | 49 | if [ ! -f "${1}" ] 50 | then 51 | echo "ERROR: No such file or directory '${1}'." 52 | exit 1 53 | fi 54 | 55 | pdftk "${1}" cat 1-endleft output "${1}".ROTATED.RIGHT.pdf 2>&1 | grep -v '_JAVA_OPTIONS' 56 | rm -f doc_data.txt 57 | -------------------------------------------------------------------------------- /pdf-rotate-right.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Copyright (c) 2018 Slawomir Wojciech Wojtczak (vermaden) 4 | # All rights reserved. 5 | # 6 | # THIS SOFTWARE USES FREEBSD LICENSE (ALSO KNOWN AS 2-CLAUSE BSD LICENSE) 7 | # https://www.freebsd.org/copyright/freebsd-license.html 8 | # 9 | # Redistribution and use in source and binary forms, with or without 10 | # modification, are permitted provided that following conditions are met: 11 | # 1. Redistributions of source code must retain the above copyright 12 | # notice, this list of conditions and the following disclaimer. 13 | # 2. Redistributions in binary form must reproduce the above copyright 14 | # notice, this list of conditions and the following disclaimer in the 15 | # documentation and/or other materials provided with the distribution. 16 | # 17 | # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS 'AS IS' AND ANY 18 | # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20 | # DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY 21 | # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 | # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 | # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 | # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 | # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # 28 | # ------------------------------ 29 | # split PDF pages with pdftk 30 | # ------------------------------ 31 | # vermaden [AT] interia [DOT] pl 32 | # https://vermaden.wordpress.com 33 | 34 | if [ ${#} -eq 0 ] 35 | then 36 | echo "usage: ${0##*/} FILE" 37 | exit 1 38 | fi 39 | 40 | for BIN in pdftk 41 | do 42 | if ! /usr/bin/which ${BIN} 1> /dev/null 2> /dev/null 43 | then 44 | echo "ERROR: Binary '${BIN}' not in \$\{PATH\}." 45 | exit 1 46 | fi 47 | done 48 | 49 | if [ ! -f "${1}" ] 50 | then 51 | echo "ERROR: No such file or directory '${1}'." 52 | exit 1 53 | fi 54 | 55 | pdftk "${1}" cat 1-endright output "${1}".ROTATED.RIGHT.pdf 2>&1 | grep -v '_JAVA_OPTIONS' 56 | rm -f doc_data.txt 57 | -------------------------------------------------------------------------------- /pdf-split.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Copyright (c) 2018 Slawomir Wojciech Wojtczak (vermaden) 4 | # All rights reserved. 5 | # 6 | # THIS SOFTWARE USES FREEBSD LICENSE (ALSO KNOWN AS 2-CLAUSE BSD LICENSE) 7 | # https://www.freebsd.org/copyright/freebsd-license.html 8 | # 9 | # Redistribution and use in source and binary forms, with or without 10 | # modification, are permitted provided that following conditions are met: 11 | # 1. Redistributions of source code must retain the above copyright 12 | # notice, this list of conditions and the following disclaimer. 13 | # 2. Redistributions in binary form must reproduce the above copyright 14 | # notice, this list of conditions and the following disclaimer in the 15 | # documentation and/or other materials provided with the distribution. 16 | # 17 | # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS 'AS IS' AND ANY 18 | # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20 | # DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY 21 | # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 | # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 | # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 | # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 | # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # 28 | # ------------------------------ 29 | # split PDF pages with pdftk 30 | # ------------------------------ 31 | # vermaden [AT] interia [DOT] pl 32 | # https://vermaden.wordpress.com 33 | 34 | if [ ${#} -eq 0 ] 35 | then 36 | echo "usage: ${0##*/} FILE" 37 | exit 1 38 | fi 39 | 40 | for BIN in pdftk 41 | do 42 | if ! /usr/bin/which ${BIN} 1> /dev/null 2> /dev/null 43 | then 44 | echo "ERROR: Binary '${BIN}' not in \$\{PATH\}." 45 | exit 1 46 | fi 47 | done 48 | 49 | if [ ! -f "${1}" ] 50 | then 51 | echo "ERROR: No such file or directory '${1}'." 52 | exit 1 53 | fi 54 | 55 | pdftk "${1}" burst output "${1}".%04d.pdf 2>&1 | grep -v '_JAVA_OPTIONS' 56 | rm -f doc_data.txt 57 | -------------------------------------------------------------------------------- /photo-flow.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # 1=mmcsd0s1 4 | # 2=photo.NEW 5 | 6 | # HELP 7 | if [ ${#} -ne 2 ] 8 | then 9 | echo "usage: $( basename ${0} ) SOURCE-DIR TARGET-DIR" 10 | echo 11 | echo "example:" 12 | echo " photo-flow.sh /media/mmcsd0s1 ~/photo.NEW" 13 | echo 14 | exit 1 15 | fi 16 | 17 | # CHECK SOURCE DIR 18 | if [ -d "${1}" ] 19 | then 20 | SOURCE="${1}" 21 | else 22 | echo "ER: source dir '${1}' does not exists" 23 | exit 1 24 | fi 25 | 26 | # CHECK TARGET DIR 27 | if [ -d "${2}" ] 28 | then 29 | TARGET="${2}" 30 | else 31 | echo "ER: target dir '${2}' does not exists" 32 | exit 1 33 | fi 34 | 35 | # CREATE DUMP DIR 36 | DUMP_DIR=$( date +%Y.%m.%d.DUMP ) 37 | mkdir -p "${TARGET}/${DUMP_DIR}" 38 | 39 | # COPY FILES 40 | cp -av ${SOURCE}/DCIM/*/* "${TARGET}/${DUMP_DIR}" 41 | cp -av ${SOURCE}/PRIVATE/M4ROOT/CLIP/* "${TARGET}/${DUMP_DIR}" 42 | 43 | # RENAME AND CONVERT 44 | cd "${TARGET}/${DUMP_DIR}" 45 | photo-rename-images.sh 46 | photo-rename-movies.sh 47 | photo-requality.sh 92 48 | for I in *.MP4 49 | do 50 | photo-movie-audio-ac3.sh 160 25000 ${I} 51 | done 52 | -------------------------------------------------------------------------------- /photo-movie-audio-ac3-720p.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | if [ ${#} -eq 0 -o ${#} -ne 3 ] 4 | then 5 | echo "usage: ${0##*/} ARATE VRATE FILE" 6 | echo 7 | exit 1 8 | fi 9 | 10 | ARATE=${1} 11 | VRATE=${2} 12 | 13 | nice -n 20 \ 14 | ffmpeg -y -i "${3}" -acodec ac3 -ab ${1}k -aq 50 -vcodec libx264 -threads 1 \ 15 | -minrate 0k -bufsize ${2}k -maxrate ${2}k -s 1280x720 "${3}".x264.mkv 16 | -------------------------------------------------------------------------------- /photo-movie-audio-ac3.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | if [ ${#} -eq 0 -o ${#} -ne 3 ] 4 | then 5 | echo "usage: ${0##*/} ARATE VRATE FILE" 6 | echo 7 | exit 1 8 | fi 9 | 10 | ARATE=${1} 11 | VRATE=${2} 12 | 13 | nice -n 20 \ 14 | ffmpeg -y -i "${3}" -acodec ac3 -ab ${1}k -aq 50 -vcodec libx264 -threads 1 \ 15 | -minrate 0k -bufsize ${2}k -maxrate ${2}k "${3}".x264.mkv 16 | -------------------------------------------------------------------------------- /photo-movie-audio-copy-720p.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | if [ ${#} -eq 0 -o ${#} -ne 2 ] 4 | then 5 | echo "usage: ${0##*/} VRATE FILE" 6 | echo 7 | exit 1 8 | fi 9 | 10 | VRATE=${1} 11 | 12 | nice -n 20 \ 13 | ffmpeg -y -i "${2}" -acodec copy -vcodec libx264 -threads 1 \ 14 | -minrate 0k -bufsize ${1}k -maxrate ${1}k -s 1280x720 "${2}".x264.mkv 15 | -------------------------------------------------------------------------------- /photo-movie-audio-copy.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | if [ ${#} -eq 0 -o ${#} -ne 2 ] 4 | then 5 | echo "usage: ${0##*/} VRATE FILE" 6 | echo 7 | exit 1 8 | fi 9 | 10 | VRATE=${1} 11 | 12 | nice -n 20 \ 13 | ffmpeg -y -i "${2}" -acodec copy -vcodec libx264 -crf 15 -threads 1 \ 14 | -minrate 0k -bufsize ${1}k -maxrate ${1}k "${2}".x264.mkv 15 | 16 | # DEINTERLACE 17 | # -vf yadif 18 | -------------------------------------------------------------------------------- /photo-rename-images.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | jhead -n%Y.%m.%d.%H%M.%S *.[jJ][pP][gG] 2> /dev/null 4 | jhead -n%Y.%m.%d.%H%M.%S *.[jJ][pP][eE] 2> /dev/null 5 | jhead -n%Y.%m.%d.%H%M.%S *.[jJ][pP][eE][gG] 2> /dev/null 6 | -------------------------------------------------------------------------------- /photo-rename-movies.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | NUMBER=96 4 | 5 | for EXTENSIONS in MP4 mkv 6 | do 7 | COUNT="-1" 8 | COUNT=$( ls *.${EXTENSIONS} 2> /dev/null | wc -l | tr -d ' ' ) 9 | if [ "${COUNT}" = "0" ] 10 | then 11 | COUNT="-1" 12 | continue 13 | fi 14 | 15 | for FILE in *.${EXTENSIONS} 16 | do 17 | SHORT=$( echo "${FILE}" | awk -F '.' '{print $1}' ) 18 | EXT=$( echo "${FILE}" | sed 's/.*\.//' ) 19 | # UNHASH FOR DEBUG 20 | # echo "FILE: ${FILE}" 21 | # echo "SHORT: ${SHORT}" 22 | # echo "EXT: ${EXT}" 23 | for TRY in ${SHORT}M01.XML \ 24 | ${SHORT}m01.xml \ 25 | ${SHORT}.XML \ 26 | ${SHORT}.xml 27 | do 28 | if [ -f "${TRY}" ] 29 | then 30 | # UNHASH FOR DEBUG 31 | # echo "TRY: ${TRY}" 32 | # 2017-01-29T18:00:08Z 33 | NEW=$( cat ${TRY} | grep CreationDate ) 34 | NEW=$( echo ${NEW} | awk -F '"' '{print $2}' ) 35 | NEW=$( echo ${NEW} | awk -F 'T' '{print $1}' ) 36 | NEW=$( echo ${NEW} | tr '-' '.' ) 37 | NEWTIME=$( cat ${TRY} | grep CreationDate ) 38 | NEWTIME=$( echo ${NEWTIME} | awk -F '"' '{print $2}' ) 39 | NEWTIME=$( echo ${NEWTIME} | awk -F 'T' '{print $2}' ) 40 | NEWTIME=$( echo ${NEWTIME} | awk -F ':' '{print $1 "" $2}' ) 41 | # UNHASH FOR DEBUG 42 | # echo NEW: ${NEW} 43 | # echo NEWTIME: ${NEWTIME} 44 | # echo PREVIOUS: ${PREVIOUS} 45 | if [ "${NEW}.${NEWTIME}" != "${PREVIOUS}" ] 46 | then 47 | NUMBER=96 48 | PREFIX=0 49 | else 50 | PREFIX=1 51 | NUMBER=$(( ${NUMBER} + 1 )) 52 | fi 53 | PRINTABLE=$( printf "\\$(printf %o ${NUMBER})\n" ) 54 | case ${PREFIX} in 55 | (0) 56 | mv -v "${FILE}" "${NEW}.${NEWTIME}.${EXT}" 57 | mv -v "${TRY}" "${NEW}.${NEWTIME}.XML" 58 | ;; 59 | (1) 60 | mv -v "${FILE}" "${NEW}.${NEWTIME}${PRINTABLE}.${EXT}" 61 | mv -v "${TRY}" "${NEW}.${NEWTIME}${PRINTABLE}.XML" 62 | ;; 63 | esac 64 | PREVIOUS="${NEW}.${NEWTIME}" 65 | break 66 | fi 67 | done 68 | done 69 | done 70 | -------------------------------------------------------------------------------- /photo-requality.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | __usage() { 4 | echo "usage: ${0##*/} QUALITY" 5 | exit 1 6 | } 7 | 8 | if [ ${#} -eq 0 -o ${#} -ne 1 ] 9 | then 10 | __usage 11 | fi 12 | 13 | DESIRED=${1} 14 | 15 | ( 16 | find . -type f -iname \*\.jpg 17 | find . -type f -iname \*\.JPG 18 | find . -type f -iname \*\.jpe 19 | find . -type f -iname \*\.JPE 20 | find . -type f -iname \*\.jpeg 21 | find . -type f -iname \*\.JPEG 22 | ) | sort -u \ 23 | | while read FILE 24 | do 25 | QUALITY=$( identify -format %Q "${FILE}" ) 26 | 27 | if [ "${QUALITY}" = "" ] 28 | then 29 | echo "ERROR: count not get QUALITY value from the '${FILE}' file." 30 | continue 31 | fi 32 | 33 | if [ ${QUALITY} -lt ${DESIRED} ] 34 | then 35 | continue 36 | else 37 | convert -quality ${DESIRED} "${FILE}" "${FILE}" 38 | NAME=$( echo "${FILE}" | cut -c 3- ) 39 | echo "File '${NAME}' converted to '${DESIRED}' quality." 40 | fi 41 | 42 | done 43 | -------------------------------------------------------------------------------- /pkg-recompile.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # OPTIONS 4 | PORTS=' multimedia/ffmpeg' 5 | # PORTS='audio/lame multimedia/ffmpeg sysutils/exfat-utils sysutils/fusefs-exfat' 6 | 7 | # ONLY root CAN BUILD PACKAGES/PORTS 8 | if [ "$( whoami )" != "root" ] 9 | then 10 | echo "ER: only 'root' may use this script" 11 | exit 1 12 | fi 13 | 14 | case ${1} in 15 | # REBUILD PACKAGES 16 | (b|build) 17 | for PORT in ${PORTS} 18 | do 19 | pkg unlock -y ${PORT} 1> /dev/null 2> /dev/null 20 | idprio 10 env BATCH=yes DISABLE_VULNERABILITIES=yes make -C /usr/ports/${PORT} build deinstall install clean & 21 | MAKE=${!} 22 | rctl -a process:${MAKE}:pcpu:deny=40 23 | wait ${MAKE} 24 | # pkg lock -y ${PORT} 25 | done 26 | ;; 27 | 28 | # CLEAN 29 | (c|clean) 30 | for PORT in ${PORTS} 31 | do 32 | make -C /usr/ports/${PORT} clean 33 | done 34 | ;; 35 | 36 | # USAGE 37 | (*) 38 | echo "usage: ${0##*/} b|c|build|clean" 39 | exit 1 40 | ;; 41 | 42 | esac 43 | -------------------------------------------------------------------------------- /power-speed.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | if [ ! -f /usr/local/etc/rc.d/powerdxx ] 4 | then 5 | echo "NOPE: please install 'sysutils/powerdxx' daemon" 6 | exit 1 7 | fi 8 | 9 | doas service powerdxx onestop 1> /dev/null 2> /dev/null 10 | doas service powerd onestart 1> /dev/null 2> /dev/null 11 | 12 | # DETAILS IN hwpstate_intel(4) MAN PAGE 13 | doas sysctl dev.hwpstate_intel.0.epp=0 2> /dev/null 14 | doas sysctl dev.hwpstate_intel.1.epp=0 2> /dev/null 15 | doas sysctl dev.hwpstate_intel.2.epp=0 2> /dev/null 16 | doas sysctl dev.hwpstate_intel.3.epp=0 2> /dev/null 17 | doas sysctl dev.hwpstate_intel.4.epp=0 2> /dev/null 18 | doas sysctl dev.hwpstate_intel.5.epp=0 2> /dev/null 19 | doas sysctl dev.hwpstate_intel.6.epp=0 2> /dev/null 20 | doas sysctl dev.hwpstate_intel.7.epp=0 2> /dev/null 21 | doas sysctl dev.hwpstate_intel.8.epp=0 2> /dev/null 22 | doas sysctl dev.hwpstate_intel.9.epp=0 2> /dev/null 23 | doas sysctl dev.hwpstate_intel.10.epp=0 2> /dev/null 24 | doas sysctl dev.hwpstate_intel.11.epp=0 2> /dev/null 25 | doas sysctl dev.hwpstate_intel.12.epp=0 2> /dev/null 26 | doas sysctl dev.hwpstate_intel.13.epp=0 2> /dev/null 27 | doas sysctl dev.hwpstate_intel.14.epp=0 2> /dev/null 28 | doas sysctl dev.hwpstate_intel.15.epp=0 2> /dev/null 29 | doas sysctl dev.hwpstate_intel.16.epp=0 2> /dev/null 30 | doas sysctl dev.hwpstate_intel.17.epp=0 2> /dev/null 31 | doas sysctl dev.hwpstate_intel.18.epp=0 2> /dev/null 32 | doas sysctl dev.hwpstate_intel.19.epp=0 2> /dev/null 33 | doas sysctl dev.hwpstate_intel.20.epp=0 2> /dev/null 34 | doas sysctl dev.hwpstate_intel.21.epp=0 2> /dev/null 35 | doas sysctl dev.hwpstate_intel.22.epp=0 2> /dev/null 36 | doas sysctl dev.hwpstate_intel.23.epp=0 2> /dev/null 37 | doas sysctl dev.hwpstate_intel.24.epp=0 2> /dev/null 38 | doas sysctl dev.hwpstate_intel.25.epp=0 2> /dev/null 39 | doas sysctl dev.hwpstate_intel.26.epp=0 2> /dev/null 40 | doas sysctl dev.hwpstate_intel.27.epp=0 2> /dev/null 41 | doas sysctl dev.hwpstate_intel.28.epp=0 2> /dev/null 42 | doas sysctl dev.hwpstate_intel.29.epp=0 2> /dev/null 43 | doas sysctl dev.hwpstate_intel.30.epp=0 2> /dev/null 44 | doas sysctl dev.hwpstate_intel.31.epp=0 2> /dev/null 45 | -------------------------------------------------------------------------------- /power-time.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | if [ ! -f /usr/local/etc/rc.d/powerdxx ] 4 | then 5 | echo "NOPE: please install 'sysutils/powerdxx' daemon" 6 | exit 1 7 | fi 8 | 9 | doas service powerd onestop 1> /dev/null 2> /dev/null 10 | doas service powerdxx onestart 1> /dev/null 2> /dev/null 11 | 12 | # DETAILS IN hwpstate_intel(4) MAN PAGE 13 | doas sysctl dev.hwpstate_intel.0.epp=100 2> /dev/null 14 | doas sysctl dev.hwpstate_intel.1.epp=100 2> /dev/null 15 | doas sysctl dev.hwpstate_intel.2.epp=100 2> /dev/null 16 | doas sysctl dev.hwpstate_intel.3.epp=100 2> /dev/null 17 | doas sysctl dev.hwpstate_intel.4.epp=100 2> /dev/null 18 | doas sysctl dev.hwpstate_intel.5.epp=100 2> /dev/null 19 | doas sysctl dev.hwpstate_intel.6.epp=100 2> /dev/null 20 | doas sysctl dev.hwpstate_intel.7.epp=100 2> /dev/null 21 | doas sysctl dev.hwpstate_intel.8.epp=100 2> /dev/null 22 | doas sysctl dev.hwpstate_intel.9.epp=100 2> /dev/null 23 | doas sysctl dev.hwpstate_intel.10.epp=100 2> /dev/null 24 | doas sysctl dev.hwpstate_intel.11.epp=100 2> /dev/null 25 | doas sysctl dev.hwpstate_intel.12.epp=100 2> /dev/null 26 | doas sysctl dev.hwpstate_intel.13.epp=100 2> /dev/null 27 | doas sysctl dev.hwpstate_intel.14.epp=100 2> /dev/null 28 | doas sysctl dev.hwpstate_intel.15.epp=100 2> /dev/null 29 | doas sysctl dev.hwpstate_intel.16.epp=100 2> /dev/null 30 | doas sysctl dev.hwpstate_intel.17.epp=100 2> /dev/null 31 | doas sysctl dev.hwpstate_intel.18.epp=100 2> /dev/null 32 | doas sysctl dev.hwpstate_intel.19.epp=100 2> /dev/null 33 | doas sysctl dev.hwpstate_intel.20.epp=100 2> /dev/null 34 | doas sysctl dev.hwpstate_intel.21.epp=100 2> /dev/null 35 | doas sysctl dev.hwpstate_intel.22.epp=100 2> /dev/null 36 | doas sysctl dev.hwpstate_intel.23.epp=100 2> /dev/null 37 | doas sysctl dev.hwpstate_intel.24.epp=100 2> /dev/null 38 | doas sysctl dev.hwpstate_intel.25.epp=100 2> /dev/null 39 | doas sysctl dev.hwpstate_intel.26.epp=100 2> /dev/null 40 | doas sysctl dev.hwpstate_intel.27.epp=100 2> /dev/null 41 | doas sysctl dev.hwpstate_intel.28.epp=100 2> /dev/null 42 | doas sysctl dev.hwpstate_intel.29.epp=100 2> /dev/null 43 | doas sysctl dev.hwpstate_intel.30.epp=100 2> /dev/null 44 | doas sysctl dev.hwpstate_intel.31.epp=100 2> /dev/null 45 | -------------------------------------------------------------------------------- /rc.xml.openbox.aero.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | ~/scripts/aero-snap.sh C 7 | 8 | 9 | 10 | 11 | ~/scripts/aero-snap.sh T 12 | 13 | 14 | 15 | 16 | ~/scripts/aero-snap.sh B 17 | 18 | 19 | 20 | 21 | ~/scripts/aero-snap.sh SHIFT-T 22 | 23 | 24 | 25 | 26 | ~/scripts/aero-snap.sh SHIFT-B 27 | 28 | 29 | 30 | 31 | ~/scripts/aero-snap.sh L 32 | 33 | 34 | 35 | 36 | ~/scripts/aero-snap.sh R 37 | 38 | 39 | 40 | 41 | ~/scripts/aero-snap.sh SHIFT-L 42 | 43 | 44 | 45 | 46 | ~/scripts/aero-snap.sh SHIFT-R 47 | 48 | 49 | 50 | 51 | ~/scripts/aero-snap.sh TL 52 | 53 | 54 | 55 | 56 | ~/scripts/aero-snap.sh BL 57 | 58 | 59 | 60 | 61 | ~/scripts/aero-snap.sh TR 62 | 63 | 64 | 65 | 66 | ~/scripts/aero-snap.sh BR 67 | 68 | 69 | 70 | 71 | ~/scripts/aero-snap.sh SHIFT-TL 72 | 73 | 74 | 75 | 76 | ~/scripts/aero-snap.sh SHIFT-BL 77 | 78 | 79 | 80 | 81 | ~/scripts/aero-snap.sh SHIFT-TR 82 | 83 | 84 | 85 | 86 | ~/scripts/aero-snap.sh SHIFT-BR 87 | 88 | 89 | 90 | 91 | 92 | 93 | -------------------------------------------------------------------------------- /rsync-delete-before.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | __usage() { 4 | echo "usage: ${0##*/} DIR DIR" 5 | echo " ${0##*/} DIR [[USER@]SERVER:]DIR" 6 | echo " ${0##*/} [[USER@]SERVER:]DIR DIR" 7 | echo 8 | echo "examples: ${0##*/} backup user@host:remote" 9 | echo " ${0##*/} backup /storage/backup" 10 | echo 11 | exit 1 12 | } 13 | 14 | __slash() { 15 | echo "${@}/" 16 | } 17 | 18 | case ${#} in 19 | (2) 20 | which rsync 1> /dev/null 2> /dev/null || { 21 | echo "ER: rsync not in \${PATH}" 22 | echo 23 | exit 1 24 | } 25 | echo "${1}" | grep : 1> /dev/null 2> /dev/null && SSH='-e "ssh -C"' 26 | echo "${2}" | grep : 1> /dev/null 2> /dev/null && SSH='-e "ssh -C"' 27 | eval rsync ${SSH} --modify-window=1 -l -t -r -D -v -S -H -p --stats \ 28 | --force --info=progress2 --no-whole-file \ 29 | --numeric-ids --human-readable --no-inc-recursive \ 30 | --delete-before \ 31 | --exclude=.cache \ 32 | "$( __slash ${1} )" "$( __slash ${2} )" 33 | ;; 34 | 35 | (*) 36 | __usage 37 | ;; 38 | esac 39 | 40 | # REMOV # --progress 41 | # NOTES # --archive --hard-links --sparse --xattrs --numeric-ids --inplace 42 | 43 | # NEW / NOTES # 44 | # --no-inc-recursive 45 | # --info=progress2 46 | # --human-readable 47 | # --stats 48 | -------------------------------------------------------------------------------- /rsync-delete-checksum.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | __usage() { 4 | echo "usage: ${0##*/} DIR DIR" 5 | echo " ${0##*/} DIR [[USER@]SERVER:]DIR" 6 | echo " ${0##*/} [[USER@]SERVER:]DIR DIR" 7 | echo 8 | echo "examples: ${0##*/} backup user@host:remote" 9 | echo " ${0##*/} backup /storage/backup" 10 | echo 11 | exit 1 12 | } 13 | 14 | __slash() { 15 | echo "${@}/" 16 | } 17 | 18 | case ${#} in 19 | (2) 20 | which rsync 1> /dev/null 2> /dev/null || { 21 | echo "ER: rsync not in \${PATH}" 22 | echo 23 | exit 1 24 | } 25 | echo "${1}" | grep : 1> /dev/null 2> /dev/null && SSH='-e "ssh -C"' 26 | echo "${2}" | grep : 1> /dev/null 2> /dev/null && SSH='-e "ssh -C"' 27 | eval rsync ${SSH} --modify-window=1 -l -t -r -D -v -S -H -p --stats \ 28 | --force --info=progress2 --no-whole-file \ 29 | --numeric-ids --human-readable --no-inc-recursive \ 30 | -c \ 31 | --delete-after \ 32 | --exclude=.cache \ 33 | "$( __slash ${1} )" "$( __slash ${2} )" 34 | ;; 35 | 36 | (*) 37 | __usage 38 | ;; 39 | esac 40 | 41 | # REMOV # --progress 42 | # NOTES # --archive --hard-links --sparse --xattrs --numeric-ids --inplace 43 | 44 | # NEW / NOTES # 45 | # --no-inc-recursive 46 | # --info=progress2 47 | # --human-readable 48 | # --stats 49 | -------------------------------------------------------------------------------- /rsync-delete-nocompress.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | __usage() { 4 | echo "usage: ${0##*/} DIR DIR" 5 | echo " ${0##*/} DIR [[USER@]SERVER:]DIR" 6 | echo " ${0##*/} [[USER@]SERVER:]DIR DIR" 7 | echo 8 | echo "examples: ${0##*/} backup user@host:remote" 9 | echo " ${0##*/} backup /storage/backup" 10 | echo 11 | exit 1 12 | } 13 | 14 | __slash() { 15 | echo "${@}/" 16 | } 17 | 18 | case ${#} in 19 | (2) 20 | which rsync 1> /dev/null 2> /dev/null || { 21 | echo "ER: rsync not in \${PATH}" 22 | echo 23 | exit 1 24 | } 25 | echo "${1}" | grep : 1> /dev/null 2> /dev/null && SSH='-e "ssh"' 26 | echo "${2}" | grep : 1> /dev/null 2> /dev/null && SSH='-e "ssh"' 27 | eval rsync ${SSH} --modify-window=1 -l -t -r -D -v -S -H -p --stats \ 28 | --force --info=progress2 --no-whole-file \ 29 | --numeric-ids --human-readable --no-inc-recursive \ 30 | --delete-after \ 31 | --exclude=.cache \ 32 | "$( __slash ${1} )" "$( __slash ${2} )" 33 | ;; 34 | 35 | (*) 36 | __usage 37 | ;; 38 | esac 39 | 40 | # REMOV # --progress 41 | # NOTES # --archive --hard-links --sparse --xattrs --numeric-ids --inplace 42 | 43 | # NEW / NOTES # 44 | # --no-inc-recursive 45 | # --info=progress2 46 | # --human-readable 47 | # --stats 48 | -------------------------------------------------------------------------------- /rsync-delete-permissions.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | __usage() { 4 | echo "usage: ${0##*/} DIR DIR" 5 | echo " ${0##*/} DIR [[USER@]SERVER:]DIR" 6 | echo " ${0##*/} [[USER@]SERVER:]DIR DIR" 7 | echo 8 | echo "examples: ${0##*/} backup user@host:remote" 9 | echo " ${0##*/} backup /storage/backup" 10 | echo 11 | exit 1 12 | } 13 | 14 | __slash() { 15 | echo "${@}/" 16 | } 17 | 18 | case ${#} in 19 | (2) 20 | which rsync 1> /dev/null 2> /dev/null || { 21 | echo "ER: rsync not in \${PATH}" 22 | echo 23 | exit 1 24 | } 25 | echo "${1}" | grep : 1> /dev/null 2> /dev/null && SSH='-e "ssh -C"' 26 | echo "${2}" | grep : 1> /dev/null 2> /dev/null && SSH='-e "ssh -C"' 27 | eval rsync ${SSH} --modify-window=1 -l -t -r -D -v -S -H -p --stats \ 28 | --force --info=progress2 --no-whole-file \ 29 | --numeric-ids --human-readable --no-inc-recursive \ 30 | -p \ 31 | --delete-after \ 32 | --exclude=.cache \ 33 | "$( __slash ${1} )" "$( __slash ${2} )" 34 | ;; 35 | 36 | (*) 37 | __usage 38 | ;; 39 | esac 40 | 41 | # REMOV # --progress 42 | # NOTES # --archive --hard-links --sparse --xattrs --numeric-ids --inplace 43 | 44 | # NEW / NOTES # 45 | # --no-inc-recursive 46 | # --info=progress2 47 | # --human-readable 48 | # --stats 49 | -------------------------------------------------------------------------------- /rsync-delete.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | __usage() { 4 | echo "usage: ${0##*/} DIR DIR" 5 | echo " ${0##*/} DIR [[USER@]SERVER:]DIR" 6 | echo " ${0##*/} [[USER@]SERVER:]DIR DIR" 7 | echo 8 | echo "examples: ${0##*/} backup user@host:remote" 9 | echo " ${0##*/} backup /storage/backup" 10 | echo 11 | exit 1 12 | } 13 | 14 | __slash() { 15 | echo "${@}/" 16 | } 17 | 18 | case ${#} in 19 | (2) 20 | which rsync 1> /dev/null 2> /dev/null || { 21 | echo "ER: rsync not in \${PATH}" 22 | echo 23 | exit 1 24 | } 25 | echo "${1}" | grep : 1> /dev/null 2> /dev/null && SSH='-e "ssh -C"' 26 | echo "${2}" | grep : 1> /dev/null 2> /dev/null && SSH='-e "ssh -C"' 27 | eval rsync ${SSH} --modify-window=1 -l -t -r -D -v -S -H -p --stats \ 28 | --force --info=progress2 --no-whole-file \ 29 | --numeric-ids --human-readable --no-inc-recursive \ 30 | --delete-after \ 31 | --exclude=.cache \ 32 | "$( __slash ${1} )" "$( __slash ${2} )" 33 | ;; 34 | 35 | (*) 36 | __usage 37 | ;; 38 | esac 39 | 40 | # REMOV # --progress 41 | # NOTES # --archive --hard-links --sparse --xattrs --numeric-ids --inplace 42 | 43 | # NEW / NOTES # 44 | # --no-inc-recursive 45 | # --info=progress2 46 | # --human-readable 47 | # --stats 48 | -------------------------------------------------------------------------------- /rsync.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | __usage() { 4 | echo "usage: ${0##*/} DIR DIR" 5 | echo " ${0##*/} DIR [[USER@]SERVER:]DIR" 6 | echo " ${0##*/} [[USER@]SERVER:]DIR DIR" 7 | echo 8 | echo "examples: ${0##*/} backup user@host:remote" 9 | echo " ${0##*/} backup /storage/backup" 10 | echo 11 | exit 1 12 | } 13 | 14 | __slash() { 15 | [ $( echo "${@}" | grep -o -E ".$" ) = / ] && echo "${@}" || echo "${@}/" 16 | } 17 | 18 | case ${#} in 19 | (2) 20 | which rsync 1> /dev/null 2> /dev/null || { 21 | echo "ER: rsync not in \${PATH}" 22 | echo 23 | exit 1 24 | } 25 | echo "${1}" | grep : 1> /dev/null 2> /dev/null && SSH='-e "ssh -C"' 26 | echo "${2}" | grep : 1> /dev/null 2> /dev/null && SSH='-e "ssh -C"' 27 | eval rsync ${SSH} --modify-window=1 -l -t -r -D -v -S -H -p \ 28 | --force --progress --rsync-path=/usr/local/bin/rsync \ 29 | --no-whole-file --numeric-ids \ 30 | --exclude=.cache \ 31 | "$( __slash ${1} )" "$( __slash ${2} )" 32 | # --inplace 33 | ;; 34 | 35 | (*) 36 | __usage 37 | ;; 38 | esac 39 | 40 | # --archive --hard-links --sparse --xattrs --numeric-ids 41 | -------------------------------------------------------------------------------- /see-pipe-open.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Copyright (c) 2022 Slawomir Wojciech Wojtczak (vermaden) 4 | # All rights reserved. 5 | # 6 | # THIS SOFTWARE USES FREEBSD LICENSE (ALSO KNOWN AS 2-CLAUSE BSD LICENSE) 7 | # https://www.freebsd.org/copyright/freebsd-license.html 8 | # 9 | # Redistribution and use in source and binary forms, with or without 10 | # modification, are permitted provided that following conditions are met: 11 | # 1. Redistributions of source code must retain the above copyright 12 | # notice, this list of conditions and the following disclaimer. 13 | # 2. Redistributions in binary form must reproduce the above copyright 14 | # notice, this list of conditions and the following disclaimer in the 15 | # documentation and/or other materials provided with the distribution. 16 | # 17 | # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS 'AS IS' AND ANY 18 | # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20 | # DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY 21 | # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 | # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 | # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 | # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 | # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # 28 | # ------------------------------ 29 | # open files from stdin with see 30 | # ------------------------------ 31 | # vermaden [AT] interia [DOT] pl 32 | # https://vermaden.wordpress.com 33 | 34 | while read FILE 35 | do 36 | see.sh "${FILE}" 1> /dev/null 2> /dev/null & 37 | done 38 | -------------------------------------------------------------------------------- /shot.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Copyright (c) 2018 Slawomir Wojciech Wojtczak (vermaden) 4 | # All rights reserved. 5 | # 6 | # THIS SOFTWARE USES FREEBSD LICENSE (ALSO KNOWN AS 2-CLAUSE BSD LICENSE) 7 | # https://www.freebsd.org/copyright/freebsd-license.html 8 | # 9 | # Redistribution and use in source and binary forms, with or without 10 | # modification, are permitted provided that following conditions are met: 11 | # 1. Redistributions of source code must retain the above copyright 12 | # notice, this list of conditions and the following disclaimer. 13 | # 2. Redistributions in binary form must reproduce the above copyright 14 | # notice, this list of conditions and the following disclaimer in the 15 | # documentation and/or other materials provided with the distribution. 16 | # 17 | # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS 'AS IS' AND ANY 18 | # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20 | # DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY 21 | # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 | # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 | # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 | # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 | # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # 28 | # ------------------------------ 29 | # SCREENSHOT FreeBSD/SunOS/Linux 30 | # ------------------------------ 31 | # vermaden [AT] interia [DOT] pl 32 | # https://vermaden.wordpress.com 33 | 34 | DATE=$( date +%Y-%m-%d_%H-%M-%S ) 35 | DIR=~/gfx/screenshots 36 | FILE=${DIR}/${USER}_${DATE}.png 37 | 38 | mkdir -p ${DIR} || { 39 | echo "ER: cannot create ${DIR} dir" 40 | exit 1 41 | } 42 | 43 | case ${#} in 44 | (1) [ ${1} = "-s" ] && OPTS="-s" ;; 45 | esac 46 | 47 | scrot ${OPTS} ${FILE} 48 | -------------------------------------------------------------------------------- /storage-wipe-clean-end.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # CHECK USER WITH whoami(1) 4 | [ "$( whoami )" = "root" ] || echo "NOPE: run '$( basename ${0} )' as root user" || exit 1 5 | 6 | # CHECK ARGUMENTS 7 | if [ ${#} -eq 0 ] 8 | then 9 | echo "usage: $( basename ${0} ) DEVICE" 10 | echo 11 | exit 1 12 | fi 13 | 14 | # CHECK DEVICE EXISTS 15 | [ -e /dev/${1} ] && DEV=/dev/${1} 16 | [ -e ${1} ] && DEV=${1} 17 | if [ -z ${DEV} ] 18 | then 19 | echo "NOPE: disk '${1}' does not exists" 20 | echo 21 | exit 1 22 | fi 23 | 24 | # ASK USER FOR DESRUPTIVE ACTIONS 25 | echo "INFO: wipe clean disk '${DEV}' along with all data on it?" 26 | echo -n "READ: are you OK with that? (y/n): " 27 | read YESNO 28 | 29 | # CHECK YES/NO ANSWER AND ACT ACCORDINGLY 30 | case ${YESNO} in 31 | (y|yes|ok) ;; 32 | (*) 33 | echo "NOPE: user did not wanted to continue" 34 | echo 35 | exit 1 36 | ;; 37 | esac 38 | 39 | # WIPE CLEAN MBR/GPT HEADER 40 | echo 41 | echo "# gpart destroy -F ${DEV}" 42 | gpart destroy -F ${DEV} 43 | 44 | # WIPE CLEAN ZFS LABEL 45 | echo 46 | echo "# zpool labelclear -f ${DEV}" 47 | zpool labelclear -f ${DEV} 48 | 49 | # WIPE CLEAN DISK AT BEGIN 50 | echo 51 | echo "# dd bs=1m count=20 if=/dev/zero of=${DEV} status=progress" 52 | dd bs=1m count=20 if=/dev/zero of=${DEV} status=progress 53 | 54 | # WIPE CLEAN DISK AT END 55 | DISKINFO=$( diskinfo -v ${DEV} ) 56 | MED_SIZE=$( echo "${DISKINFO}" | awk '/# mediasize in sectors/ {print $1}' ) 57 | SEC_SIZE=$( echo "${DISKINFO}" | awk '/# sectorsize/ {print $1}' ) 58 | DD_OSEEK=$(( ${MED_SIZE} - ( ${SEC_SIZE} * 40 ) )) 59 | echo 60 | echo "# dd bs=${SEC_SIZE} if=/dev/zero of=${DEV} oseek=${DD_OSEEK} status=progress" 61 | dd bs=${SEC_SIZE} if=/dev/zero of=${DEV} oseek=${DD_OSEEK} status=progress 62 | 63 | echo 64 | 65 | -------------------------------------------------------------------------------- /storage-wipe-clean.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # CHECK USER WITH whoami(1) 4 | [ "$( whoami )" = "root" ] || echo "NOPE: run '$( basename ${0} )' as root user" || exit 1 5 | 6 | # CHECK ARGUMENTS 7 | if [ ${#} -eq 0 ] 8 | then 9 | echo "usage: $( basename ${0} ) DEVICE" 10 | echo 11 | exit 1 12 | fi 13 | 14 | # CHECK DEVICE EXISTS 15 | [ -e /dev/${1} ] && DEV=/dev/${1} 16 | [ -e ${1} ] && DEV=${1} 17 | if [ -z ${DEV} ] 18 | then 19 | echo "NOPE: disk '${1}' does not exists" 20 | echo 21 | exit 1 22 | fi 23 | 24 | # ASK USER FOR DESRUPTIVE ACTIONS 25 | echo "INFO: wipe clean disk '${DEV}' along with all data on it?" 26 | echo -n "READ: are you OK with that? (y/n): " 27 | read YESNO 28 | 29 | # CHECK YES/NO ANSWER AND ACT ACCORDINGLY 30 | case ${YESNO} in 31 | (y|yes|ok) ;; 32 | (*) 33 | echo "NOPE: user did not wanted to continue" 34 | echo 35 | exit 1 36 | ;; 37 | esac 38 | 39 | # WIPE CLEAN MBR/GPT HEADER 40 | echo 41 | echo "# gpart destroy -F ${DEV}" 42 | gpart destroy -F ${DEV} 43 | 44 | # WIPE CLEAN ZFS LABEL 45 | echo 46 | echo "# zpool labelclear -f ${DEV}" 47 | zpool labelclear -f ${DEV} 48 | 49 | # WIPE CLEAN DISK AT BEGIN 50 | echo 51 | echo "# dd bs=1m count=20 if=/dev/zero of=${DEV} status=progress" 52 | dd bs=1m count=20 if=/dev/zero of=${DEV} status=progress 53 | 54 | # WIPE CLEAN DISK AT END 55 | # DISKINFO=$( diskinfo -v ${DEV} ) 56 | # MED_SIZE=$( echo "${DISKINFO}" | awk '/# mediasize in sectors/ {print $1}' ) 57 | # SEC_SIZE=$( echo "${DISKINFO}" | awk '/# sectorsize/ {print $1}' ) 58 | # DD_OSEEK=$(( ${MED_SIZE} - ( ${SEC_SIZE} * 40 ) )) 59 | # echo 60 | # echo "# dd bs=${SEC_SIZE} if=/dev/zero of=${DEV} oseek=${DD_OSEEK} status=progress" 61 | # dd bs=${SEC_SIZE} if=/dev/zero of=${DEV} oseek=${DD_OSEEK} status=progress 62 | 63 | echo 64 | 65 | -------------------------------------------------------------------------------- /sumatra.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | if [ ${#} -eq 0 ] 4 | then 5 | echo "usage: ${0##*/} FILE" 6 | echo 7 | exit 1 8 | fi 9 | 10 | WINE=none 11 | 12 | if which wine 1> /dev/null 2> /dev/null 13 | then 14 | WINE=wine 15 | fi 16 | 17 | if [ "${WINE}" != "none" ] 18 | then 19 | wine ~/win32/bin/sumatrapdf.exe "${@}" & 20 | else 21 | if which zenity 1> /dev/null 2> /dev/null 22 | then 23 | zenity --title 'Sumatra PDF' --info --text 'WINE not available in \${PATH}.\n\nInstall WINE.' 24 | fi 25 | fi 26 | -------------------------------------------------------------------------------- /urxvt.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Copyright (c) 2018 Slawomir Wojciech Wojtczak (vermaden) 4 | # All rights reserved. 5 | # 6 | # THIS SOFTWARE USES FREEBSD LICENSE (ALSO KNOWN AS 2-CLAUSE BSD LICENSE) 7 | # https://www.freebsd.org/copyright/freebsd-license.html 8 | # 9 | # Redistribution and use in source and binary forms, with or without 10 | # modification, are permitted provided that following conditions are met: 11 | # 1. Redistributions of source code must retain the above copyright 12 | # notice, this list of conditions and the following disclaimer. 13 | # 2. Redistributions in binary form must reproduce the above copyright 14 | # notice, this list of conditions and the following disclaimer in the 15 | # documentation and/or other materials provided with the distribution. 16 | # 17 | # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS 'AS IS' AND ANY 18 | # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20 | # DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY 21 | # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 | # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 | # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 | # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 | # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # 28 | # ------------------------------ 29 | # RANDOM urxvt(1) THEME HANDLER 30 | # ------------------------------ 31 | # vermaden [AT] interia [DOT] pl 32 | # https://vermaden.wordpress.com 33 | 34 | THEME=$( find ~/.config/Xdefaults/themes -type f | xargs basename | sort -R | head -1 ) 35 | TITLE=$( echo ${THEME} | awk -F. '{print $4}' ) 36 | SHADE=$( echo ${THEME} | awk -F. '{print $3}' ) 37 | 38 | xrdb -load ~/.Xdefaults 39 | xrdb -merge ~/.config/Xdefaults/themes/${THEME} 40 | 41 | case ${SHADE} in 42 | (DARK) THEME=$( find ~/.config/Xdefaults/urxvt -name DARK.\*.Xdefaults -type f | sort -R | head -1 ) ;; 43 | (LIGHT) THEME=$( find ~/.config/Xdefaults/urxvt -name LIGHT.\*.Xdefaults -type f | sort -R | head -1 ) ;; 44 | esac 45 | 46 | xrdb -merge ${THEME} 47 | 48 | cd ~ && urxvt -title "urxvt | ${TITLE}" ${@} & 49 | -------------------------------------------------------------------------------- /winscp.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | WINE=none 4 | 5 | if which wine 1> /dev/null 2> /dev/null 6 | then 7 | WINE=wine 8 | fi 9 | 10 | if [ "${WINE}" != "none" ] 11 | then 12 | wine ~/win32/bin/winscp.exe & 13 | else 14 | if which zenity 1> /dev/null 2> /dev/null 15 | then 16 | zenity --title 'WinSCP' --info --text 'WINE not available in \${PATH}.\n\nInstall WINE.' 17 | fi 18 | fi 19 | -------------------------------------------------------------------------------- /xdotool.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Copyright (c) 2018 Slawomir Wojciech Wojtczak (vermaden) 4 | # All rights reserved. 5 | # 6 | # THIS SOFTWARE USES FREEBSD LICENSE (ALSO KNOWN AS 2-CLAUSE BSD LICENSE) 7 | # https://www.freebsd.org/copyright/freebsd-license.html 8 | # 9 | # Redistribution and use in source and binary forms, with or without 10 | # modification, are permitted provided that following conditions are met: 11 | # 1. Redistributions of source code must retain the above copyright 12 | # notice, this list of conditions and the following disclaimer. 13 | # 2. Redistributions in binary form must reproduce the above copyright 14 | # notice, this list of conditions and the following disclaimer in the 15 | # documentation and/or other materials provided with the distribution. 16 | # 17 | # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS 'AS IS' AND ANY 18 | # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20 | # DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY 21 | # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 | # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 | # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 | # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 | # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # 28 | # ------------------------------ 29 | # openbox(1) WRAPPER WITH xdotool(1) FOR dzen2(1) 30 | # ------------------------------ 31 | # vermaden [AT] interia [DOT] pl 32 | # https://vermaden.wordpress.com 33 | 34 | __usage() { 35 | echo "usage: ${0##*/} ACTION" 36 | exit 1 37 | } 38 | 39 | COUNT=$( xdotool get_num_desktops ) 40 | DESKTOP=$( xdotool get_desktop ) 41 | DESKTOP=$(( ${DESKTOP} + 1 )) 42 | 43 | case ${1} in 44 | 45 | (up) 46 | if [ ${DESKTOP} -eq ${COUNT} ] 47 | then 48 | NEW=1 49 | else 50 | NEW=$(( ${DESKTOP} + 1 )) 51 | fi 52 | xdotool key Alt+F${NEW} 53 | ;; 54 | 55 | (down) 56 | if [ ${DESKTOP} -eq 1 ] 57 | then 58 | NEW=${COUNT} 59 | else 60 | NEW=$(( ${DESKTOP} - 1 )) 61 | fi 62 | xdotool key Alt+F${NEW} 63 | ;; 64 | 65 | (menu) 66 | xdotool key Super+space 67 | ;; 68 | 69 | (workmenu) 70 | xdotool key Super+Alt+space 71 | ;; 72 | 73 | esac 74 | -------------------------------------------------------------------------------- /xlock.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vermaden/scripts/4ff086eb6fa38baebf2e7ae3b5590bdcd4adf984/xlock.png -------------------------------------------------------------------------------- /xnview.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | WINE=none 4 | 5 | if which wine 1> /dev/null 2> /dev/null 6 | then 7 | WINE=wine 8 | fi 9 | 10 | if [ "${WINE}" != "none" ] 11 | then 12 | wine ~/win32/bin/xnview-2.37xnview.exe & 13 | else 14 | if which zenity 1> /dev/null 2> /dev/null 15 | then 16 | zenity --title 'XnView' --info --text 'WINE not available in \${PATH}.\n\nInstall WINE.' 17 | fi 18 | fi 19 | -------------------------------------------------------------------------------- /xterm.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # Copyright (c) 2018 Slawomir Wojciech Wojtczak (vermaden) 4 | # All rights reserved. 5 | # 6 | # THIS SOFTWARE USES FREEBSD LICENSE (ALSO KNOWN AS 2-CLAUSE BSD LICENSE) 7 | # https://www.freebsd.org/copyright/freebsd-license.html 8 | # 9 | # Redistribution and use in source and binary forms, with or without 10 | # modification, are permitted provided that following conditions are met: 11 | # 1. Redistributions of source code must retain the above copyright 12 | # notice, this list of conditions and the following disclaimer. 13 | # 2. Redistributions in binary form must reproduce the above copyright 14 | # notice, this list of conditions and the following disclaimer in the 15 | # documentation and/or other materials provided with the distribution. 16 | # 17 | # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS 'AS IS' AND ANY 18 | # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20 | # DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY 21 | # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 | # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 | # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 | # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 | # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | # 28 | # ------------------------------ 29 | # RANDOM xterm(1) THEME HANDLER 30 | # ------------------------------ 31 | # vermaden [AT] interia [DOT] pl 32 | # https://vermaden.wordpress.com 33 | 34 | THEME=$( find ~/.config/Xdefaults/themes -type f | xargs basename | sort -R | head -1 ) 35 | TITLE=$( echo ${THEME} | awk -F. '{print $4}' ) 36 | 37 | xrdb -load ~/.Xdefaults 38 | xrdb -merge ~/.config/Xdefaults/themes/${THEME} 39 | 40 | cd ~ && xterm -title "xterm | ${TITLE}" ${@} & 41 | --------------------------------------------------------------------------------