]> gitweb @ CieloNegro.org - sugar.git/commitdiff
Auto commit by The Sugar System.
authorPHO <pho@cielonegro.org>
Fri, 17 Sep 2021 10:23:14 +0000 (19:23 +0900)
committerPHO <pho@cielonegro.org>
Fri, 17 Sep 2021 10:23:14 +0000 (19:23 +0900)
IGNORE
dot-files/_angband/Hengband/pickpref_prf [moved from dot-files/_angband/Hengband/pickpref-PHO_prf with 88% similarity]
dot-files/_angband/Hengband/pref_prf [moved from dot-files/_angband/Hengband/PHO_prf with 100% similarity]
dot-files/_config/picom_conf [new file with mode: 0644]
dot-files/_cshrc [new file with mode: 0644]
dot-files/_login [new file with mode: 0644]
dot-files/_logout [new file with mode: 0644]
dot-files/_profile [new file with mode: 0644]
dot-files/_shrc [new file with mode: 0644]
dot-files/_zfunc/_pass [new file with mode: 0644]

diff --git a/IGNORE b/IGNORE
index 27fa865eb8558f4e6b7bf5866a3d129faa2f9199..2b1a31acadd17058aed853444781e1e3b3f95005 100644 (file)
--- a/IGNORE
+++ b/IGNORE
 .acrorc
 .acrobat
 .adobe
-.angband/Hengband/playrec-*.txt
+.angband/Hengband/*.txt
+.anyproxy
 .arcrc
 .aspell.*
+.basilisk_ii_*
 .btpd
 .bup
 .cabal
 .cabal-upload
 .cairo-clockrc
+.cargo
 .cddbslave
 .config/Ciobi/Mp3Diags.conf
+.config/GIMP
 .config/Trolltech*
 .config/configstore/update-notifier-*
+.config/dconf
 .config/easytag
 .config/enchant
 .config/fontconfig
-.config/hexchat/scrollback
+.config/hexchat
 .config/inkscape
 .config/gmpc
 .config/gtk-2.0/gtkfilechooser.ini
@@ -42,6 +47,7 @@
 .config/mimeapps.list
 .config/pavucontrol.ini
 .config/pulse
+.config/xfce4/terminal
 .config/wireshark
 .covers
 .cpan
@@ -83,6 +89,7 @@
 .forward
 .gconf*
 .gegl-*
+.ghc/*/environments
 .gimmix*
 .gimp*
 .gitk
 .gnome2*
 .gnucash
 .gnupg
+.gpg-agent-info
 .gqview
 .gstreamer-0.10
 .gtk-bookmarks
+.hoogle
 .htpasswd
 .hubrc
 .ido.last*
 .macromedia
 .metacity/sessions
 .mozilla
+.mlterm/challenge
 .mpd
 .mplayer/DVDKeys
 .mplayer/config
 .navi2ch/list.info
 .navi2ch/tmp
 .navi2ch/unifile.db
+.net.rc
 .netrc
 .node-gyp
 .nh-todo
 .pulse
 .pulse-cookie
 .qt
+.racket
 .recently-used*
 .riece/log
 .rnd
 .ssh
 .subversion
 .synfig
+.terminfo
 .texmf-var
 .themes/*.qtcurve
 .thumbnails
 .trackballs
 .uim.d
 .unison
+.v8flags.*
 .vboxclient-clipboard.pid
 .vim/.netrwhist
 .viminfo
 .w3m/w3mtmp*
 .w3m/.textarea
 .wget-hsts
+.whohas
 .wine
 .wireshark
 .wmncach.el
 .z
 .z.*
 .zcomp*
-.zfunc
+.zenmap
similarity index 88%
rename from dot-files/_angband/Hengband/pickpref-PHO_prf
rename to dot-files/_angband/Hengband/pickpref_prf
index 39bcea25d8a29e07df27680f6635ed8084ad765c..12f5a0e5254b56a8c5e4b66cac2265fea957ad19 100644 (file)
@@ -130,17 +130,25 @@ scroll of reset recall#!*
 #============================
 #  Wands
 #============================
+!wand of wonder
+
 wand of stone to mud#!k!s
 wand of teleport other#!k!s
 wand of disintegrate#!k!s
 wand of rockets#!k!s
+wand of dragon's flame#!k!s
+wand of dragon's frost#!k!s
 
-~wand of dragon's flame#!k!s
-~wand of dragon's frost#!k!s
-~wand of drain life#!k!s
+# Magic-eaters should pick every wand except for useless ones.
+?:[EQU $CLASS Magic-Eater]
+magical devices:wand
 
+# Otherwise leave these wands on the floor.
+?:[NOT [EQU $CLASS Magic-Eater]]
+~wand of drain life#!k!s
 ~wand of confuse monster
 ~wand of sleep monster
+?:1
 
 #============================
 #  Staffs
@@ -148,22 +156,35 @@ wand of rockets#!k!s
 staff of healing#!k!s!d
 staff of power#!k!s!d
 
+# Magic-eaters should pick every staff.
+?:[EQU $CLASS Magic-Eater]
+magical devices:staff
+?:1
+
 #============================
 #  Rods
 #============================
 rod of stone to mud#!k!s
-~rod of confuse monster#!k!s
 
-~rod of sleep monster
-~rod of acid bolts
 rod of acid balls
-~rod of fire bolts
 rod of fire balls
-~rod of frost bolts
 rod of cold balls
-~rod of lightning bolts
 rod of lightning balls
 
+# Magic-eaters should pick every rod.
+?:[EQU $CLASS Magic-Eater]
+magical devices:rod
+
+# Otherwise leave these wands on the floor.
+?:[NOT [EQU $CLASS Magic-Eater]]
+~rod of acid bolts
+~rod of fire bolts
+~rod of frost bolts
+~rod of lightning bolts
+
+~rod of confuse monster#!k!s
+~rod of sleep monster
+?:1
 
 #============================
 #  Chest
@@ -217,6 +238,37 @@ amulet of anti-magic#!w!k!s
 !amulet of adornment
 !amulet of teleportation
 
+#============================
+#  Class: Magic-Eater
+#============================
+?:[EQU $CLASS Magic-Eater]
+
+# Staff of Perception
+A:\e\e\e\\mAf
+P:^o
+
+# Rod of Trap Location
+A:\e\e\e\\mCa
+P:^t
+
+# Rod of Illumination
+A:\e\e\e\\mCe
+P:Q
+
+# Wand of Magic Missile
+A:\e\e\e\\mBp*t*\e
+P:X
+
+# Wand of Stinking Cloud
+A:\e\e\e\\mBo*t*\e
+P:^c
+
+# Wand of Stone to Mud
+A:\e\e\e\\mBg
+P:S
+
+?:1
+
 #============================
 #  Class: Ninja
 #============================
@@ -383,7 +435,6 @@ amulets
 lights
 poison needle
 gold statue
-!wand of wonder
 !statue
 
 armors:dragon#%all
@@ -392,15 +443,16 @@ blade of chaos
 !unreadable second spellbooks
 
 ?:[AND [GEQ $LEVEL 10] [NOT [EQU $CLASS Weaponsmith]]]
-!{average}
-!(+0,+0)
-!,+0]
+average weapons
+average armors
 
 ?:[AND [GEQ $LEVEL 25] [NOT [EQU $CLASS Weaponsmith]]]
-!{good}
+good weapons
+good armors
 
 ?:[AND [GEQ $LEVEL 49] [NOT [EQU $CLASS Weaponsmith]]]
-!{excellent}
+ego weapons
+ego armors
 ?:1
 
 ~unreadable third spellbooks
diff --git a/dot-files/_config/picom_conf b/dot-files/_config/picom_conf
new file mode 100644 (file)
index 0000000..aa93f4c
--- /dev/null
@@ -0,0 +1,87 @@
+# Shadow
+shadow = true;
+shadow-radius = 7;
+shadow-offset-x = -7;
+shadow-offset-y = -7;
+# shadow-opacity = 0.7;
+# shadow-red = 0.0;
+# shadow-green = 0.0;
+# shadow-blue = 0.0;
+shadow-exclude = [
+       "name = 'Notification'",
+       "class_g = 'Conky'",
+       "class_g ?= 'Notify-osd'",
+       "class_g = 'Cairo-clock'",
+       "_GTK_FRAME_EXTENTS@:c"
+];
+# shadow-exclude = "n:e:Notification";
+# shadow-exclude-reg = "x10+0+0";
+# xinerama-shadow-crop = true;
+
+# Opacity
+inactive-opacity = 1.0;
+active-opacity = 1.0;
+frame-opacity = 0.8;
+inactive-opacity-override = false;
+# inactive-dim = 0.2;
+# inactive-dim-fixed = true;
+# blur-background = true;
+# blur-background-frame = true;
+blur-kern = "3x3box"
+# blur-kern = "5,5,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1"
+# blur-background-fixed = true;
+blur-background-exclude = [
+       "window_type = 'dock'",
+       "window_type = 'desktop'",
+       "_GTK_FRAME_EXTENTS@:c"
+];
+# opacity-rule = [ "80:class_g = 'URxvt'" ];
+
+# Fading
+fading = true;
+# fade-delta = 30;
+fade-in-step = 0.13;
+fade-out-step = 0.13;
+# no-fading-openclose = true;
+# no-fading-destroyed-argb = true;
+fade-exclude = [ ];
+
+# Other
+backend = "xrender"
+mark-wmwin-focused = true;
+mark-ovredir-focused = true;
+# use-ewmh-active-win = true;
+detect-rounded-corners = true;
+detect-client-opacity = true;
+refresh-rate = 0;
+vsync = false;
+dbe = false;
+# sw-opti = true;
+# unredir-if-possible = true;
+# unredir-if-possible-delay = 5000;
+# unredir-if-possible-exclude = [ ];
+focus-exclude = [ "class_g = 'Cairo-clock'" ];
+detect-transient = true;
+detect-client-leader = true;
+invert-color-include = [ ];
+# resize-damage = 1;
+
+# GLX backend
+# glx-no-stencil = true;
+glx-copy-from-front = false;
+# glx-use-copysubbuffermesa = true;
+# glx-no-rebind-pixmap = true;
+use-damage = true;
+# glx-use-gpushader4 = true;
+# xrender-sync = true;
+# xrender-sync-fence = true;
+
+# Window type settings
+wintypes:
+{
+  tooltip = { fade = true; shadow = true; opacity = 0.75; focus = true; };
+  popup_menu = { fade = true; shadow = true; opacity = 0.9; focus = true; };
+  dropdown_menu = { fade = true; shadow = true; opacity = 0.9; focus = true; };
+  dnd = { fade = false; shadow = false; };
+  dock = { fade = false; shadow = false; };
+};
diff --git a/dot-files/_cshrc b/dot-files/_cshrc
new file mode 100644 (file)
index 0000000..a1b69d1
--- /dev/null
@@ -0,0 +1,57 @@
+#      $NetBSD: dot.cshrc,v 1.7 2011/10/19 14:42:37 christos Exp $
+#
+# This is the default .cshrc file.
+# Users are expected to edit it to meet their own needs.
+#
+# The commands in this file are executed each time a new csh shell
+# is started.
+#
+# See csh(1) for details.
+#
+
+# Set your editor. Default to explicitly setting vi, as otherwise some
+# software will run ed and other software will fail. Can be set to
+# emacs or nano or whatever other editor you may prefer, but of course
+# those editors must be installed before you can use them.
+setenv EDITOR  vi
+
+# vi settings: set show-match auto-indent always-redraw shift-width=4
+#setenv        EXINIT  "se sm ai redraw sw=4"
+
+# VISUAL sets the "visual" editor, i.e., vi rather than ed, which if
+# set will be run by preference to $EDITOR by some software. It is
+# mostly historical and usually does not need to be set.
+#setenv        VISUAL  ${EDITOR}
+
+# Set the pager. This is used by, among other things, man(1) for
+# showing man pages. The default is "more". Another reasonable choice
+# (included with the system by default) is "less".
+#setenv        PAGER   more
+
+# Set your default printer, if desired.
+#setenv        PRINTER change-this-to-a-printer
+
+# Set the search path for programs.
+set path = (~/bin /bin /sbin /usr/{bin,sbin,X11R7/bin,X11R6/bin,pkg/{,s}bin,games} \
+           /usr/local/{,s}bin)
+
+if ($?prompt) then
+       # An interactive shell -- set some stuff up
+
+       # Filename completion.
+       set filec
+
+       # Size of the history buffer.
+       set history = 1000
+
+       # Do not exit on EOF condition (e.g. ^D typed)
+       # (disabled by default, not default behavior)
+       #set ignoreeof
+
+       # Set the location of your incoming email for mail notification.
+       set mail = (/var/mail/$USER)
+
+       # Set the prompt to include the hostname.
+       set mch = `hostname -s`
+       set prompt = "${mch:q}: {\!} "
+endif
diff --git a/dot-files/_login b/dot-files/_login
new file mode 100644 (file)
index 0000000..c65b0be
--- /dev/null
@@ -0,0 +1,21 @@
+#      $NetBSD: dot.login,v 1.3 2003/04/24 01:02:26 perry Exp $
+#
+# This is the default .login file.
+# Users are expected to edit it to meet their own needs.
+#
+# The commands in this file are executed when a csh user first
+# logs in.  This file is processed after .cshrc.
+#
+# See csh(1) for details.
+#
+
+if ( ! $?SHELL ) then
+  setenv SHELL /bin/csh
+endif
+
+set noglob
+eval `tset -s -m 'network:?xterm'`
+unset noglob
+stty status '^T' crt -tostop
+
+if ( -x /usr/games/fortune ) /usr/games/fortune
diff --git a/dot-files/_logout b/dot-files/_logout
new file mode 100644 (file)
index 0000000..2c87831
--- /dev/null
@@ -0,0 +1,10 @@
+#      $NetBSD: dot.logout,v 1.1 2003/04/24 01:01:39 perry Exp $
+#
+# This is the default .logout file.
+# Users are expected to edit it to meet their own needs.
+#
+# The commands in this file are executed when a csh login shell
+# terminates.
+#
+# See csh(1) for details.
+#
diff --git a/dot-files/_profile b/dot-files/_profile
new file mode 100644 (file)
index 0000000..ad8a20e
--- /dev/null
@@ -0,0 +1,41 @@
+#      $NetBSD: dot.profile,v 1.9 2012/04/10 19:02:30 dholland Exp $
+#
+# This is the default .profile file.
+# Users are expected to edit it to meet their own needs.
+#
+# The commands in this file are executed when an sh user first
+# logs in.
+#
+# See sh(1) for details.
+#
+
+# Set your editor. Default to explicitly setting vi, as otherwise some
+# software will run ed and other software will fail. Can be set to
+# emacs or nano or whatever other editor you may prefer, but of course
+# those editors must be installed before you can use them.
+export EDITOR=vi
+
+# vi settings: set show-match auto-indent always-redraw shift-width=4
+#export EXINIT="se sm ai redraw sw=4"
+
+# VISUAL sets the "visual" editor, i.e., vi rather than ed, which if
+# set will be run by preference to $EDITOR by some software. It is
+# mostly historical and usually does not need to be set.
+#export VISUAL=${EDITOR}
+
+# Set the pager. This is used by, among other things, man(1) for
+# showing man pages. The default is "more". Another reasonable choice
+# (included with the system by default) is "less".
+#export PAGER=more
+
+# Set your default printer, if desired.
+#export PRINTER=change-this-to-a-printer
+
+# Set the search path for programs.
+PATH=$HOME/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R7/bin:/usr/X11R6/bin:/usr/pkg/bin
+PATH=${PATH}:/usr/pkg/sbin:/usr/games:/usr/local/bin:/usr/local/sbin
+export PATH
+
+# Configure the shell to load .shrc at startup time.
+# This will happen for every shell started, not just login shells.
+export ENV=$HOME/.shrc
diff --git a/dot-files/_shrc b/dot-files/_shrc
new file mode 100644 (file)
index 0000000..2743f72
--- /dev/null
@@ -0,0 +1,10 @@
+#      $NetBSD: dot.shrc,v 1.3 2007/11/24 11:14:42 pavel Exp $
+
+if [ -f /etc/shrc ]; then
+       . /etc/shrc
+fi
+
+case "$-" in *i*)
+       # interactive mode settings go here
+       ;;
+esac
diff --git a/dot-files/_zfunc/_pass b/dot-files/_zfunc/_pass
new file mode 100644 (file)
index 0000000..9bb3f97
--- /dev/null
@@ -0,0 +1,134 @@
+#compdef pass
+#autoload
+
+# Copyright (C) 2012 - 2014:
+#    Johan Venant <jvenant@invicem.pro>
+#    Brian Mattern <rephorm@rephorm.com>
+#    Jason A. Donenfeld <Jason@zx2c4.com>.
+# All Rights Reserved.
+# This file is licensed under the GPLv2+. Please see COPYING for more information.
+
+
+_pass () {
+       local cmd
+       if (( CURRENT > 2)); then
+               cmd=${words[2]}
+               # Set the context for the subcommand.
+               curcontext="${curcontext%:*:*}:pass-$cmd"
+               # Narrow the range of words we are looking at to exclude `pass'
+               (( CURRENT-- ))
+               shift words
+               # Run the completion for the subcommand
+               case "${cmd}" in
+                       init)
+                               _arguments : \
+                                       "-p[gpg-id will only be applied to this subfolder]" \
+                                       "--path[gpg-id will only be applied to this subfolder]"
+                               _pass_complete_keys
+                               ;;
+                       ls|list|edit)
+                               _pass_complete_entries_with_subdirs
+                               ;;
+                       insert)
+                               _arguments : \
+                                       "-e[echo password to console]" \
+                                       "--echo[echo password to console]" \
+                                       "-m[multiline]" \
+                                       "--multiline[multiline]"
+                               _pass_complete_entries_with_subdirs
+                               ;;
+                       generate)
+                               _arguments : \
+                                       "-n[don't include symbols in password]" \
+                                       "--no-symbols[don't include symbols in password]" \
+                                       "-c[copy password to the clipboard]" \
+                                       "--clip[copy password to the clipboard]" \
+                                       "-f[force overwrite]" \
+                                       "--force[force overwrite]" \
+                                       "-i[replace first line]" \
+                                       "--in-place[replace first line]"
+                               _pass_complete_entries_with_subdirs
+                               ;;
+                       cp|copy|mv|rename)
+                               _arguments : \
+                                       "-f[force rename]" \
+                                       "--force[force rename]"
+                                       _pass_complete_entries_with_subdirs
+                               ;;
+                       rm)
+                               _arguments : \
+                                       "-f[force deletion]" \
+                                       "--force[force deletion]" \
+                                       "-r[recursively delete]" \
+                                       "--recursive[recursively delete]"
+                                       _pass_complete_entries_with_subdirs
+                               ;;
+                       git)
+                               local -a subcommands
+                               subcommands=(
+                                       "init:Initialize git repository"
+                                       "push:Push to remote repository"
+                                       "pull:Pull from remote repository"
+                                       "config:Show git config"
+                                       "log:Show git log"
+                                       "reflog:Show git reflog"
+                               )
+                               _describe -t commands 'pass git' subcommands
+                               ;;
+                       show|*)
+                               _pass_cmd_show
+                               ;;
+               esac
+       else
+               local -a subcommands
+               subcommands=(
+                       "init:Initialize new password storage"
+                       "ls:List passwords"
+                       "find:Find password files or directories based on pattern"
+                       "grep:Search inside decrypted password files for matching pattern"
+                       "show:Decrypt and print a password"
+                       "insert:Insert a new password"
+                       "generate:Generate a new password using pwgen"
+                       "edit:Edit a password with \$EDITOR"
+                       "mv:Rename the password"
+                       "cp:Copy the password"
+                       "rm:Remove the password"
+                       "git:Call git on the password store"
+                       "version:Output version information"
+                       "help:Output help message"
+               )
+               _describe -t commands 'pass' subcommands
+               _arguments : \
+                       "--version[Output version information]" \
+                       "--help[Output help message]"
+               _pass_cmd_show
+       fi
+}
+
+_pass_cmd_show () {
+       _arguments : \
+               "-c[put it on the clipboard]" \
+               "--clip[put it on the clipboard]"
+       _pass_complete_entries
+}
+_pass_complete_entries_helper () {
+       local IFS=$'\n'
+       local prefix="${PASSWORD_STORE_DIR:-$HOME/.password-store}"
+       _values -C 'passwords' ${$(find -L "$prefix" \( -name .git -o -name .gpg-id \) -prune -o $@ -print 2>/dev/null | sed -e "s#${prefix}/\{0,1\}##" -e 's#\.gpg##' | sort):-""}
+}
+
+_pass_complete_entries_with_subdirs () {
+       _pass_complete_entries_helper
+}
+
+_pass_complete_entries () {
+       _pass_complete_entries_helper -type f
+}
+
+_pass_complete_keys () {
+       local IFS=$'\n'
+       # Extract names and email addresses from gpg --list-keys
+       _values 'gpg keys' $(gpg2 --list-secret-keys --with-colons | cut -d : -f 10 | sort -u | sed '/^$/d')
+}
+
+_pass