Revert "Add dot_local/share/chezmoi/dot_git/COMMIT_EDITMSG"
This reverts commit ffb5d42783
.
This commit is contained in:
parent
ffb5d42783
commit
3800a22234
234 changed files with 1 additions and 11973 deletions
|
@ -1,21 +0,0 @@
|
|||
Update dot_config/polybar/custom_modules.ini
|
||||
Add dot_config/polybar/scripts/executable_beep.sh
|
||||
Add dot_config/polybar/scripts/executable_colors.sh
|
||||
Add dot_config/polybar/scripts/executable_colors.sh.base
|
||||
Add dot_config/polybar/scripts/executable_launch_polybar
|
||||
Add dot_config/polybar/scripts/executable_michurin
|
||||
Add dot_config/polybar/scripts/executable_polybar_bluetooth_speaker.sh
|
||||
Add dot_config/polybar/scripts/executable_polybar_custom_time.sh
|
||||
Add dot_config/polybar/scripts/executable_polybar_dunst_indicator.sh
|
||||
Add dot_config/polybar/scripts/executable_polybar_healthbar.sh
|
||||
Add dot_config/polybar/scripts/executable_polybar_michurin.py
|
||||
Add dot_config/polybar/scripts/executable_polybar_net_indicator.sh
|
||||
Add dot_config/polybar/scripts/executable_polybar_net_speed.sh
|
||||
Add dot_config/polybar/scripts/executable_polybar_redshift_indicator.sh
|
||||
Add dot_config/polybar/scripts/executable_polybar_wifibar.sh
|
||||
Add dot_config/polybar/scripts/executable_refresh_wpg_wallpapers
|
||||
Add dot_config/polybar/scripts/executable_regkernel
|
||||
Add dot_config/polybar/scripts/executable_setbg
|
||||
Add dot_config/polybar/scripts/executable_theme.sh
|
||||
Add dot_config/polybar/scripts/executable_transmission_indicator.sh
|
||||
Add dot_config/polybar/scripts/executable_tresorit_indicator.sh
|
|
@ -1 +0,0 @@
|
|||
ref: refs/heads/master
|
|
@ -1,13 +0,0 @@
|
|||
[core]
|
||||
repositoryformatversion = 0
|
||||
filemode = true
|
||||
bare = false
|
||||
logallrefupdates = true
|
||||
[submodule]
|
||||
active = .
|
||||
[remote "origin"]
|
||||
url = git@github.com:mrdev023/dotfiles.git
|
||||
fetch = +refs/heads/*:refs/remotes/origin/*
|
||||
[branch "master"]
|
||||
remote = origin
|
||||
merge = refs/heads/master
|
|
@ -1 +0,0 @@
|
|||
Unnamed repository; edit this file 'description' to name the repository.
|
|
@ -1,15 +0,0 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# An example hook script to check the commit log message taken by
|
||||
# applypatch from an e-mail message.
|
||||
#
|
||||
# The hook should exit with non-zero status after issuing an
|
||||
# appropriate message if it wants to stop the commit. The hook is
|
||||
# allowed to edit the commit message file.
|
||||
#
|
||||
# To enable this hook, rename this file to "applypatch-msg".
|
||||
|
||||
. git-sh-setup
|
||||
commitmsg="$(git rev-parse --git-path hooks/commit-msg)"
|
||||
test -x "$commitmsg" && exec "$commitmsg" ${1+"$@"}
|
||||
:
|
|
@ -1,24 +0,0 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# An example hook script to check the commit log message.
|
||||
# Called by "git commit" with one argument, the name of the file
|
||||
# that has the commit message. The hook should exit with non-zero
|
||||
# status after issuing an appropriate message if it wants to stop the
|
||||
# commit. The hook is allowed to edit the commit message file.
|
||||
#
|
||||
# To enable this hook, rename this file to "commit-msg".
|
||||
|
||||
# Uncomment the below to add a Signed-off-by line to the message.
|
||||
# Doing this in a hook is a bad idea in general, but the prepare-commit-msg
|
||||
# hook is more suited to it.
|
||||
#
|
||||
# SOB=$(git var GIT_AUTHOR_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p')
|
||||
# grep -qs "^$SOB" "$1" || echo "$SOB" >> "$1"
|
||||
|
||||
# This example catches duplicate Signed-off-by lines.
|
||||
|
||||
test "" = "$(grep '^Signed-off-by: ' "$1" |
|
||||
sort | uniq -c | sed -e '/^[ ]*1[ ]/d')" || {
|
||||
echo >&2 Duplicate Signed-off-by lines.
|
||||
exit 1
|
||||
}
|
|
@ -1,173 +0,0 @@
|
|||
#!/usr/bin/perl
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
use IPC::Open2;
|
||||
|
||||
# An example hook script to integrate Watchman
|
||||
# (https://facebook.github.io/watchman/) with git to speed up detecting
|
||||
# new and modified files.
|
||||
#
|
||||
# The hook is passed a version (currently 2) and last update token
|
||||
# formatted as a string and outputs to stdout a new update token and
|
||||
# all files that have been modified since the update token. Paths must
|
||||
# be relative to the root of the working tree and separated by a single NUL.
|
||||
#
|
||||
# To enable this hook, rename this file to "query-watchman" and set
|
||||
# 'git config core.fsmonitor .git/hooks/query-watchman'
|
||||
#
|
||||
my ($version, $last_update_token) = @ARGV;
|
||||
|
||||
# Uncomment for debugging
|
||||
# print STDERR "$0 $version $last_update_token\n";
|
||||
|
||||
# Check the hook interface version
|
||||
if ($version ne 2) {
|
||||
die "Unsupported query-fsmonitor hook version '$version'.\n" .
|
||||
"Falling back to scanning...\n";
|
||||
}
|
||||
|
||||
my $git_work_tree = get_working_dir();
|
||||
|
||||
my $retry = 1;
|
||||
|
||||
my $json_pkg;
|
||||
eval {
|
||||
require JSON::XS;
|
||||
$json_pkg = "JSON::XS";
|
||||
1;
|
||||
} or do {
|
||||
require JSON::PP;
|
||||
$json_pkg = "JSON::PP";
|
||||
};
|
||||
|
||||
launch_watchman();
|
||||
|
||||
sub launch_watchman {
|
||||
my $o = watchman_query();
|
||||
if (is_work_tree_watched($o)) {
|
||||
output_result($o->{clock}, @{$o->{files}});
|
||||
}
|
||||
}
|
||||
|
||||
sub output_result {
|
||||
my ($clockid, @files) = @_;
|
||||
|
||||
# Uncomment for debugging watchman output
|
||||
# open (my $fh, ">", ".git/watchman-output.out");
|
||||
# binmode $fh, ":utf8";
|
||||
# print $fh "$clockid\n@files\n";
|
||||
# close $fh;
|
||||
|
||||
binmode STDOUT, ":utf8";
|
||||
print $clockid;
|
||||
print "\0";
|
||||
local $, = "\0";
|
||||
print @files;
|
||||
}
|
||||
|
||||
sub watchman_clock {
|
||||
my $response = qx/watchman clock "$git_work_tree"/;
|
||||
die "Failed to get clock id on '$git_work_tree'.\n" .
|
||||
"Falling back to scanning...\n" if $? != 0;
|
||||
|
||||
return $json_pkg->new->utf8->decode($response);
|
||||
}
|
||||
|
||||
sub watchman_query {
|
||||
my $pid = open2(\*CHLD_OUT, \*CHLD_IN, 'watchman -j --no-pretty')
|
||||
or die "open2() failed: $!\n" .
|
||||
"Falling back to scanning...\n";
|
||||
|
||||
# In the query expression below we're asking for names of files that
|
||||
# changed since $last_update_token but not from the .git folder.
|
||||
#
|
||||
# To accomplish this, we're using the "since" generator to use the
|
||||
# recency index to select candidate nodes and "fields" to limit the
|
||||
# output to file names only. Then we're using the "expression" term to
|
||||
# further constrain the results.
|
||||
if (substr($last_update_token, 0, 1) eq "c") {
|
||||
$last_update_token = "\"$last_update_token\"";
|
||||
}
|
||||
my $query = <<" END";
|
||||
["query", "$git_work_tree", {
|
||||
"since": $last_update_token,
|
||||
"fields": ["name"],
|
||||
"expression": ["not", ["dirname", ".git"]]
|
||||
}]
|
||||
END
|
||||
|
||||
# Uncomment for debugging the watchman query
|
||||
# open (my $fh, ">", ".git/watchman-query.json");
|
||||
# print $fh $query;
|
||||
# close $fh;
|
||||
|
||||
print CHLD_IN $query;
|
||||
close CHLD_IN;
|
||||
my $response = do {local $/; <CHLD_OUT>};
|
||||
|
||||
# Uncomment for debugging the watch response
|
||||
# open ($fh, ">", ".git/watchman-response.json");
|
||||
# print $fh $response;
|
||||
# close $fh;
|
||||
|
||||
die "Watchman: command returned no output.\n" .
|
||||
"Falling back to scanning...\n" if $response eq "";
|
||||
die "Watchman: command returned invalid output: $response\n" .
|
||||
"Falling back to scanning...\n" unless $response =~ /^\{/;
|
||||
|
||||
return $json_pkg->new->utf8->decode($response);
|
||||
}
|
||||
|
||||
sub is_work_tree_watched {
|
||||
my ($output) = @_;
|
||||
my $error = $output->{error};
|
||||
if ($retry > 0 and $error and $error =~ m/unable to resolve root .* directory (.*) is not watched/) {
|
||||
$retry--;
|
||||
my $response = qx/watchman watch "$git_work_tree"/;
|
||||
die "Failed to make watchman watch '$git_work_tree'.\n" .
|
||||
"Falling back to scanning...\n" if $? != 0;
|
||||
$output = $json_pkg->new->utf8->decode($response);
|
||||
$error = $output->{error};
|
||||
die "Watchman: $error.\n" .
|
||||
"Falling back to scanning...\n" if $error;
|
||||
|
||||
# Uncomment for debugging watchman output
|
||||
# open (my $fh, ">", ".git/watchman-output.out");
|
||||
# close $fh;
|
||||
|
||||
# Watchman will always return all files on the first query so
|
||||
# return the fast "everything is dirty" flag to git and do the
|
||||
# Watchman query just to get it over with now so we won't pay
|
||||
# the cost in git to look up each individual file.
|
||||
my $o = watchman_clock();
|
||||
$error = $output->{error};
|
||||
|
||||
die "Watchman: $error.\n" .
|
||||
"Falling back to scanning...\n" if $error;
|
||||
|
||||
output_result($o->{clock}, ("/"));
|
||||
$last_update_token = $o->{clock};
|
||||
|
||||
eval { launch_watchman() };
|
||||
return 0;
|
||||
}
|
||||
|
||||
die "Watchman: $error.\n" .
|
||||
"Falling back to scanning...\n" if $error;
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
sub get_working_dir {
|
||||
my $working_dir;
|
||||
if ($^O =~ 'msys' || $^O =~ 'cygwin') {
|
||||
$working_dir = Win32::GetCwd();
|
||||
$working_dir =~ tr/\\/\//;
|
||||
} else {
|
||||
require Cwd;
|
||||
$working_dir = Cwd::cwd();
|
||||
}
|
||||
|
||||
return $working_dir;
|
||||
}
|
|
@ -1,8 +0,0 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# An example hook script to prepare a packed repository for use over
|
||||
# dumb transports.
|
||||
#
|
||||
# To enable this hook, rename this file to "post-update".
|
||||
|
||||
exec git update-server-info
|
|
@ -1,14 +0,0 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# An example hook script to verify what is about to be committed
|
||||
# by applypatch from an e-mail message.
|
||||
#
|
||||
# The hook should exit with non-zero status after issuing an
|
||||
# appropriate message if it wants to stop the commit.
|
||||
#
|
||||
# To enable this hook, rename this file to "pre-applypatch".
|
||||
|
||||
. git-sh-setup
|
||||
precommit="$(git rev-parse --git-path hooks/pre-commit)"
|
||||
test -x "$precommit" && exec "$precommit" ${1+"$@"}
|
||||
:
|
|
@ -1,49 +0,0 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# An example hook script to verify what is about to be committed.
|
||||
# Called by "git commit" with no arguments. The hook should
|
||||
# exit with non-zero status after issuing an appropriate message if
|
||||
# it wants to stop the commit.
|
||||
#
|
||||
# To enable this hook, rename this file to "pre-commit".
|
||||
|
||||
if git rev-parse --verify HEAD >/dev/null 2>&1
|
||||
then
|
||||
against=HEAD
|
||||
else
|
||||
# Initial commit: diff against an empty tree object
|
||||
against=$(git hash-object -t tree /dev/null)
|
||||
fi
|
||||
|
||||
# If you want to allow non-ASCII filenames set this variable to true.
|
||||
allownonascii=$(git config --type=bool hooks.allownonascii)
|
||||
|
||||
# Redirect output to stderr.
|
||||
exec 1>&2
|
||||
|
||||
# Cross platform projects tend to avoid non-ASCII filenames; prevent
|
||||
# them from being added to the repository. We exploit the fact that the
|
||||
# printable range starts at the space character and ends with tilde.
|
||||
if [ "$allownonascii" != "true" ] &&
|
||||
# Note that the use of brackets around a tr range is ok here, (it's
|
||||
# even required, for portability to Solaris 10's /usr/bin/tr), since
|
||||
# the square bracket bytes happen to fall in the designated range.
|
||||
test $(git diff --cached --name-only --diff-filter=A -z $against |
|
||||
LC_ALL=C tr -d '[ -~]\0' | wc -c) != 0
|
||||
then
|
||||
cat <<\EOF
|
||||
Error: Attempt to add a non-ASCII file name.
|
||||
|
||||
This can cause problems if you want to work with people on other platforms.
|
||||
|
||||
To be portable it is advisable to rename the file.
|
||||
|
||||
If you know what you are doing you can disable this check using:
|
||||
|
||||
git config hooks.allownonascii true
|
||||
EOF
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# If there are whitespace errors, print the offending file names and fail.
|
||||
exec git diff-index --check --cached $against --
|
|
@ -1,13 +0,0 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# An example hook script to verify what is about to be committed.
|
||||
# Called by "git merge" with no arguments. The hook should
|
||||
# exit with non-zero status after issuing an appropriate message to
|
||||
# stderr if it wants to stop the merge commit.
|
||||
#
|
||||
# To enable this hook, rename this file to "pre-merge-commit".
|
||||
|
||||
. git-sh-setup
|
||||
test -x "$GIT_DIR/hooks/pre-commit" &&
|
||||
exec "$GIT_DIR/hooks/pre-commit"
|
||||
:
|
|
@ -1,53 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
# An example hook script to verify what is about to be pushed. Called by "git
|
||||
# push" after it has checked the remote status, but before anything has been
|
||||
# pushed. If this script exits with a non-zero status nothing will be pushed.
|
||||
#
|
||||
# This hook is called with the following parameters:
|
||||
#
|
||||
# $1 -- Name of the remote to which the push is being done
|
||||
# $2 -- URL to which the push is being done
|
||||
#
|
||||
# If pushing without using a named remote those arguments will be equal.
|
||||
#
|
||||
# Information about the commits which are being pushed is supplied as lines to
|
||||
# the standard input in the form:
|
||||
#
|
||||
# <local ref> <local oid> <remote ref> <remote oid>
|
||||
#
|
||||
# This sample shows how to prevent push of commits where the log message starts
|
||||
# with "WIP" (work in progress).
|
||||
|
||||
remote="$1"
|
||||
url="$2"
|
||||
|
||||
zero=$(git hash-object --stdin </dev/null | tr '[0-9a-f]' '0')
|
||||
|
||||
while read local_ref local_oid remote_ref remote_oid
|
||||
do
|
||||
if test "$local_oid" = "$zero"
|
||||
then
|
||||
# Handle delete
|
||||
:
|
||||
else
|
||||
if test "$remote_oid" = "$zero"
|
||||
then
|
||||
# New branch, examine all commits
|
||||
range="$local_oid"
|
||||
else
|
||||
# Update to existing branch, examine new commits
|
||||
range="$remote_oid..$local_oid"
|
||||
fi
|
||||
|
||||
# Check for WIP commit
|
||||
commit=$(git rev-list -n 1 --grep '^WIP' "$range")
|
||||
if test -n "$commit"
|
||||
then
|
||||
echo >&2 "Found WIP commit in $local_ref, not pushing"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
exit 0
|
|
@ -1,169 +0,0 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# Copyright (c) 2006, 2008 Junio C Hamano
|
||||
#
|
||||
# The "pre-rebase" hook is run just before "git rebase" starts doing
|
||||
# its job, and can prevent the command from running by exiting with
|
||||
# non-zero status.
|
||||
#
|
||||
# The hook is called with the following parameters:
|
||||
#
|
||||
# $1 -- the upstream the series was forked from.
|
||||
# $2 -- the branch being rebased (or empty when rebasing the current branch).
|
||||
#
|
||||
# This sample shows how to prevent topic branches that are already
|
||||
# merged to 'next' branch from getting rebased, because allowing it
|
||||
# would result in rebasing already published history.
|
||||
|
||||
publish=next
|
||||
basebranch="$1"
|
||||
if test "$#" = 2
|
||||
then
|
||||
topic="refs/heads/$2"
|
||||
else
|
||||
topic=`git symbolic-ref HEAD` ||
|
||||
exit 0 ;# we do not interrupt rebasing detached HEAD
|
||||
fi
|
||||
|
||||
case "$topic" in
|
||||
refs/heads/??/*)
|
||||
;;
|
||||
*)
|
||||
exit 0 ;# we do not interrupt others.
|
||||
;;
|
||||
esac
|
||||
|
||||
# Now we are dealing with a topic branch being rebased
|
||||
# on top of master. Is it OK to rebase it?
|
||||
|
||||
# Does the topic really exist?
|
||||
git show-ref -q "$topic" || {
|
||||
echo >&2 "No such branch $topic"
|
||||
exit 1
|
||||
}
|
||||
|
||||
# Is topic fully merged to master?
|
||||
not_in_master=`git rev-list --pretty=oneline ^master "$topic"`
|
||||
if test -z "$not_in_master"
|
||||
then
|
||||
echo >&2 "$topic is fully merged to master; better remove it."
|
||||
exit 1 ;# we could allow it, but there is no point.
|
||||
fi
|
||||
|
||||
# Is topic ever merged to next? If so you should not be rebasing it.
|
||||
only_next_1=`git rev-list ^master "^$topic" ${publish} | sort`
|
||||
only_next_2=`git rev-list ^master ${publish} | sort`
|
||||
if test "$only_next_1" = "$only_next_2"
|
||||
then
|
||||
not_in_topic=`git rev-list "^$topic" master`
|
||||
if test -z "$not_in_topic"
|
||||
then
|
||||
echo >&2 "$topic is already up to date with master"
|
||||
exit 1 ;# we could allow it, but there is no point.
|
||||
else
|
||||
exit 0
|
||||
fi
|
||||
else
|
||||
not_in_next=`git rev-list --pretty=oneline ^${publish} "$topic"`
|
||||
/usr/bin/perl -e '
|
||||
my $topic = $ARGV[0];
|
||||
my $msg = "* $topic has commits already merged to public branch:\n";
|
||||
my (%not_in_next) = map {
|
||||
/^([0-9a-f]+) /;
|
||||
($1 => 1);
|
||||
} split(/\n/, $ARGV[1]);
|
||||
for my $elem (map {
|
||||
/^([0-9a-f]+) (.*)$/;
|
||||
[$1 => $2];
|
||||
} split(/\n/, $ARGV[2])) {
|
||||
if (!exists $not_in_next{$elem->[0]}) {
|
||||
if ($msg) {
|
||||
print STDERR $msg;
|
||||
undef $msg;
|
||||
}
|
||||
print STDERR " $elem->[1]\n";
|
||||
}
|
||||
}
|
||||
' "$topic" "$not_in_next" "$not_in_master"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
<<\DOC_END
|
||||
|
||||
This sample hook safeguards topic branches that have been
|
||||
published from being rewound.
|
||||
|
||||
The workflow assumed here is:
|
||||
|
||||
* Once a topic branch forks from "master", "master" is never
|
||||
merged into it again (either directly or indirectly).
|
||||
|
||||
* Once a topic branch is fully cooked and merged into "master",
|
||||
it is deleted. If you need to build on top of it to correct
|
||||
earlier mistakes, a new topic branch is created by forking at
|
||||
the tip of the "master". This is not strictly necessary, but
|
||||
it makes it easier to keep your history simple.
|
||||
|
||||
* Whenever you need to test or publish your changes to topic
|
||||
branches, merge them into "next" branch.
|
||||
|
||||
The script, being an example, hardcodes the publish branch name
|
||||
to be "next", but it is trivial to make it configurable via
|
||||
$GIT_DIR/config mechanism.
|
||||
|
||||
With this workflow, you would want to know:
|
||||
|
||||
(1) ... if a topic branch has ever been merged to "next". Young
|
||||
topic branches can have stupid mistakes you would rather
|
||||
clean up before publishing, and things that have not been
|
||||
merged into other branches can be easily rebased without
|
||||
affecting other people. But once it is published, you would
|
||||
not want to rewind it.
|
||||
|
||||
(2) ... if a topic branch has been fully merged to "master".
|
||||
Then you can delete it. More importantly, you should not
|
||||
build on top of it -- other people may already want to
|
||||
change things related to the topic as patches against your
|
||||
"master", so if you need further changes, it is better to
|
||||
fork the topic (perhaps with the same name) afresh from the
|
||||
tip of "master".
|
||||
|
||||
Let's look at this example:
|
||||
|
||||
o---o---o---o---o---o---o---o---o---o "next"
|
||||
/ / / /
|
||||
/ a---a---b A / /
|
||||
/ / / /
|
||||
/ / c---c---c---c B /
|
||||
/ / / \ /
|
||||
/ / / b---b C \ /
|
||||
/ / / / \ /
|
||||
---o---o---o---o---o---o---o---o---o---o---o "master"
|
||||
|
||||
|
||||
A, B and C are topic branches.
|
||||
|
||||
* A has one fix since it was merged up to "next".
|
||||
|
||||
* B has finished. It has been fully merged up to "master" and "next",
|
||||
and is ready to be deleted.
|
||||
|
||||
* C has not merged to "next" at all.
|
||||
|
||||
We would want to allow C to be rebased, refuse A, and encourage
|
||||
B to be deleted.
|
||||
|
||||
To compute (1):
|
||||
|
||||
git rev-list ^master ^topic next
|
||||
git rev-list ^master next
|
||||
|
||||
if these match, topic has not merged in next at all.
|
||||
|
||||
To compute (2):
|
||||
|
||||
git rev-list master..topic
|
||||
|
||||
if this is empty, it is fully merged to "master".
|
||||
|
||||
DOC_END
|
|
@ -1,24 +0,0 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# An example hook script to make use of push options.
|
||||
# The example simply echoes all push options that start with 'echoback='
|
||||
# and rejects all pushes when the "reject" push option is used.
|
||||
#
|
||||
# To enable this hook, rename this file to "pre-receive".
|
||||
|
||||
if test -n "$GIT_PUSH_OPTION_COUNT"
|
||||
then
|
||||
i=0
|
||||
while test "$i" -lt "$GIT_PUSH_OPTION_COUNT"
|
||||
do
|
||||
eval "value=\$GIT_PUSH_OPTION_$i"
|
||||
case "$value" in
|
||||
echoback=*)
|
||||
echo "echo from the pre-receive-hook: ${value#*=}" >&2
|
||||
;;
|
||||
reject)
|
||||
exit 1
|
||||
esac
|
||||
i=$((i + 1))
|
||||
done
|
||||
fi
|
|
@ -1,42 +0,0 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# An example hook script to prepare the commit log message.
|
||||
# Called by "git commit" with the name of the file that has the
|
||||
# commit message, followed by the description of the commit
|
||||
# message's source. The hook's purpose is to edit the commit
|
||||
# message file. If the hook fails with a non-zero status,
|
||||
# the commit is aborted.
|
||||
#
|
||||
# To enable this hook, rename this file to "prepare-commit-msg".
|
||||
|
||||
# This hook includes three examples. The first one removes the
|
||||
# "# Please enter the commit message..." help message.
|
||||
#
|
||||
# The second includes the output of "git diff --name-status -r"
|
||||
# into the message, just before the "git status" output. It is
|
||||
# commented because it doesn't cope with --amend or with squashed
|
||||
# commits.
|
||||
#
|
||||
# The third example adds a Signed-off-by line to the message, that can
|
||||
# still be edited. This is rarely a good idea.
|
||||
|
||||
COMMIT_MSG_FILE=$1
|
||||
COMMIT_SOURCE=$2
|
||||
SHA1=$3
|
||||
|
||||
/usr/bin/perl -i.bak -ne 'print unless(m/^. Please enter the commit message/..m/^#$/)' "$COMMIT_MSG_FILE"
|
||||
|
||||
# case "$COMMIT_SOURCE,$SHA1" in
|
||||
# ,|template,)
|
||||
# /usr/bin/perl -i.bak -pe '
|
||||
# print "\n" . `git diff --cached --name-status -r`
|
||||
# if /^#/ && $first++ == 0' "$COMMIT_MSG_FILE" ;;
|
||||
# *) ;;
|
||||
# esac
|
||||
|
||||
# SOB=$(git var GIT_COMMITTER_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p')
|
||||
# git interpret-trailers --in-place --trailer "$SOB" "$COMMIT_MSG_FILE"
|
||||
# if test -z "$COMMIT_SOURCE"
|
||||
# then
|
||||
# /usr/bin/perl -i.bak -pe 'print "\n" if !$first_line++' "$COMMIT_MSG_FILE"
|
||||
# fi
|
|
@ -1,78 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
# An example hook script to update a checked-out tree on a git push.
|
||||
#
|
||||
# This hook is invoked by git-receive-pack(1) when it reacts to git
|
||||
# push and updates reference(s) in its repository, and when the push
|
||||
# tries to update the branch that is currently checked out and the
|
||||
# receive.denyCurrentBranch configuration variable is set to
|
||||
# updateInstead.
|
||||
#
|
||||
# By default, such a push is refused if the working tree and the index
|
||||
# of the remote repository has any difference from the currently
|
||||
# checked out commit; when both the working tree and the index match
|
||||
# the current commit, they are updated to match the newly pushed tip
|
||||
# of the branch. This hook is to be used to override the default
|
||||
# behaviour; however the code below reimplements the default behaviour
|
||||
# as a starting point for convenient modification.
|
||||
#
|
||||
# The hook receives the commit with which the tip of the current
|
||||
# branch is going to be updated:
|
||||
commit=$1
|
||||
|
||||
# It can exit with a non-zero status to refuse the push (when it does
|
||||
# so, it must not modify the index or the working tree).
|
||||
die () {
|
||||
echo >&2 "$*"
|
||||
exit 1
|
||||
}
|
||||
|
||||
# Or it can make any necessary changes to the working tree and to the
|
||||
# index to bring them to the desired state when the tip of the current
|
||||
# branch is updated to the new commit, and exit with a zero status.
|
||||
#
|
||||
# For example, the hook can simply run git read-tree -u -m HEAD "$1"
|
||||
# in order to emulate git fetch that is run in the reverse direction
|
||||
# with git push, as the two-tree form of git read-tree -u -m is
|
||||
# essentially the same as git switch or git checkout that switches
|
||||
# branches while keeping the local changes in the working tree that do
|
||||
# not interfere with the difference between the branches.
|
||||
|
||||
# The below is a more-or-less exact translation to shell of the C code
|
||||
# for the default behaviour for git's push-to-checkout hook defined in
|
||||
# the push_to_deploy() function in builtin/receive-pack.c.
|
||||
#
|
||||
# Note that the hook will be executed from the repository directory,
|
||||
# not from the working tree, so if you want to perform operations on
|
||||
# the working tree, you will have to adapt your code accordingly, e.g.
|
||||
# by adding "cd .." or using relative paths.
|
||||
|
||||
if ! git update-index -q --ignore-submodules --refresh
|
||||
then
|
||||
die "Up-to-date check failed"
|
||||
fi
|
||||
|
||||
if ! git diff-files --quiet --ignore-submodules --
|
||||
then
|
||||
die "Working directory has unstaged changes"
|
||||
fi
|
||||
|
||||
# This is a rough translation of:
|
||||
#
|
||||
# head_has_history() ? "HEAD" : EMPTY_TREE_SHA1_HEX
|
||||
if git cat-file -e HEAD 2>/dev/null
|
||||
then
|
||||
head=HEAD
|
||||
else
|
||||
head=$(git hash-object -t tree --stdin </dev/null)
|
||||
fi
|
||||
|
||||
if ! git diff-index --quiet --cached --ignore-submodules $head --
|
||||
then
|
||||
die "Working directory has staged changes"
|
||||
fi
|
||||
|
||||
if ! git read-tree -u -m "$commit"
|
||||
then
|
||||
die "Could not update working tree to new HEAD"
|
||||
fi
|
|
@ -1,128 +0,0 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# An example hook script to block unannotated tags from entering.
|
||||
# Called by "git receive-pack" with arguments: refname sha1-old sha1-new
|
||||
#
|
||||
# To enable this hook, rename this file to "update".
|
||||
#
|
||||
# Config
|
||||
# ------
|
||||
# hooks.allowunannotated
|
||||
# This boolean sets whether unannotated tags will be allowed into the
|
||||
# repository. By default they won't be.
|
||||
# hooks.allowdeletetag
|
||||
# This boolean sets whether deleting tags will be allowed in the
|
||||
# repository. By default they won't be.
|
||||
# hooks.allowmodifytag
|
||||
# This boolean sets whether a tag may be modified after creation. By default
|
||||
# it won't be.
|
||||
# hooks.allowdeletebranch
|
||||
# This boolean sets whether deleting branches will be allowed in the
|
||||
# repository. By default they won't be.
|
||||
# hooks.denycreatebranch
|
||||
# This boolean sets whether remotely creating branches will be denied
|
||||
# in the repository. By default this is allowed.
|
||||
#
|
||||
|
||||
# --- Command line
|
||||
refname="$1"
|
||||
oldrev="$2"
|
||||
newrev="$3"
|
||||
|
||||
# --- Safety check
|
||||
if [ -z "$GIT_DIR" ]; then
|
||||
echo "Don't run this script from the command line." >&2
|
||||
echo " (if you want, you could supply GIT_DIR then run" >&2
|
||||
echo " $0 <ref> <oldrev> <newrev>)" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ -z "$refname" -o -z "$oldrev" -o -z "$newrev" ]; then
|
||||
echo "usage: $0 <ref> <oldrev> <newrev>" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# --- Config
|
||||
allowunannotated=$(git config --type=bool hooks.allowunannotated)
|
||||
allowdeletebranch=$(git config --type=bool hooks.allowdeletebranch)
|
||||
denycreatebranch=$(git config --type=bool hooks.denycreatebranch)
|
||||
allowdeletetag=$(git config --type=bool hooks.allowdeletetag)
|
||||
allowmodifytag=$(git config --type=bool hooks.allowmodifytag)
|
||||
|
||||
# check for no description
|
||||
projectdesc=$(sed -e '1q' "$GIT_DIR/description")
|
||||
case "$projectdesc" in
|
||||
"Unnamed repository"* | "")
|
||||
echo "*** Project description file hasn't been set" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
# --- Check types
|
||||
# if $newrev is 0000...0000, it's a commit to delete a ref.
|
||||
zero=$(git hash-object --stdin </dev/null | tr '[0-9a-f]' '0')
|
||||
if [ "$newrev" = "$zero" ]; then
|
||||
newrev_type=delete
|
||||
else
|
||||
newrev_type=$(git cat-file -t $newrev)
|
||||
fi
|
||||
|
||||
case "$refname","$newrev_type" in
|
||||
refs/tags/*,commit)
|
||||
# un-annotated tag
|
||||
short_refname=${refname##refs/tags/}
|
||||
if [ "$allowunannotated" != "true" ]; then
|
||||
echo "*** The un-annotated tag, $short_refname, is not allowed in this repository" >&2
|
||||
echo "*** Use 'git tag [ -a | -s ]' for tags you want to propagate." >&2
|
||||
exit 1
|
||||
fi
|
||||
;;
|
||||
refs/tags/*,delete)
|
||||
# delete tag
|
||||
if [ "$allowdeletetag" != "true" ]; then
|
||||
echo "*** Deleting a tag is not allowed in this repository" >&2
|
||||
exit 1
|
||||
fi
|
||||
;;
|
||||
refs/tags/*,tag)
|
||||
# annotated tag
|
||||
if [ "$allowmodifytag" != "true" ] && git rev-parse $refname > /dev/null 2>&1
|
||||
then
|
||||
echo "*** Tag '$refname' already exists." >&2
|
||||
echo "*** Modifying a tag is not allowed in this repository." >&2
|
||||
exit 1
|
||||
fi
|
||||
;;
|
||||
refs/heads/*,commit)
|
||||
# branch
|
||||
if [ "$oldrev" = "$zero" -a "$denycreatebranch" = "true" ]; then
|
||||
echo "*** Creating a branch is not allowed in this repository" >&2
|
||||
exit 1
|
||||
fi
|
||||
;;
|
||||
refs/heads/*,delete)
|
||||
# delete branch
|
||||
if [ "$allowdeletebranch" != "true" ]; then
|
||||
echo "*** Deleting a branch is not allowed in this repository" >&2
|
||||
exit 1
|
||||
fi
|
||||
;;
|
||||
refs/remotes/*,commit)
|
||||
# tracking branch
|
||||
;;
|
||||
refs/remotes/*,delete)
|
||||
# delete tracking branch
|
||||
if [ "$allowdeletebranch" != "true" ]; then
|
||||
echo "*** Deleting a tracking branch is not allowed in this repository" >&2
|
||||
exit 1
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
# Anything else (is there anything else?)
|
||||
echo "*** Update hook: unknown type of update to ref $refname of type $newrev_type" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
# --- Finished
|
||||
exit 0
|
Binary file not shown.
|
@ -1,6 +0,0 @@
|
|||
# git ls-files --others --exclude-from=.git/info/exclude
|
||||
# Lines that start with '#' are comments.
|
||||
# For a project mostly in C, the following would be a good set of
|
||||
# exclude patterns (uncomment them if you want to use them):
|
||||
# *.[oa]
|
||||
# *~
|
|
@ -1,8 +0,0 @@
|
|||
0000000000000000000000000000000000000000 7bb1eeb272c6b2db9b18cebf55a430a28e4740c7 Florian RICHER <florian@florian-ms7b09.(none)> 1651319621 +0200 clone: from https://github.com/mrdev023/dotfiles.git
|
||||
7bb1eeb272c6b2db9b18cebf55a430a28e4740c7 8ff142bc1f3d033da41e5ce965327331c2d888a5 Florian RICHER <florian.richer.97@outlook.com> 1651867774 +0200 commit: Update dot_doom.d/config.el
|
||||
8ff142bc1f3d033da41e5ce965327331c2d888a5 2e78190d74d3d4bd6e5b1fab1df49761b14b0415 Florian RICHER <florian.richer.97@outlook.com> 1651868221 +0200 commit: Begin implement arch autoconf
|
||||
2e78190d74d3d4bd6e5b1fab1df49761b14b0415 b9eb849018bc01b971b69c5bc621a0aa4083f826 Florian RICHER <florian.richer.97@outlook.com> 1651868810 +0200 commit: Add dot_config/dunst/dunstrc
|
||||
b9eb849018bc01b971b69c5bc621a0aa4083f826 0e0387e99b4212b1e056a4eae1f9f0b2973ce1af Florian RICHER <florian.richer.97@outlook.com> 1651869325 +0200 commit: Update dot_config/i3/config
|
||||
0e0387e99b4212b1e056a4eae1f9f0b2973ce1af 4ac586098b5bef99a583875f334cef3cc83f2514 Florian RICHER <florian.richer.97@outlook.com> 1651869419 +0200 commit: Remove dot_config/i3/i3blocks.conf
|
||||
4ac586098b5bef99a583875f334cef3cc83f2514 134cd852d406b2976d4525b5f90427ffdbf26fcf Florian RICHER <florian.richer.97@outlook.com> 1651869596 +0200 commit: Add dot_config/polybar/colors.ini
|
||||
134cd852d406b2976d4525b5f90427ffdbf26fcf 3ff2e6e742ef911e8930f41d42956c3f74ad8b90 Florian RICHER <florian.richer.97@outlook.com> 1651870524 +0200 commit: Update dot_config/polybar/custom_modules.ini
|
|
@ -1,8 +0,0 @@
|
|||
0000000000000000000000000000000000000000 7bb1eeb272c6b2db9b18cebf55a430a28e4740c7 Florian RICHER <florian@florian-ms7b09.(none)> 1651319621 +0200 clone: from https://github.com/mrdev023/dotfiles.git
|
||||
7bb1eeb272c6b2db9b18cebf55a430a28e4740c7 8ff142bc1f3d033da41e5ce965327331c2d888a5 Florian RICHER <florian.richer.97@outlook.com> 1651867774 +0200 commit: Update dot_doom.d/config.el
|
||||
8ff142bc1f3d033da41e5ce965327331c2d888a5 2e78190d74d3d4bd6e5b1fab1df49761b14b0415 Florian RICHER <florian.richer.97@outlook.com> 1651868221 +0200 commit: Begin implement arch autoconf
|
||||
2e78190d74d3d4bd6e5b1fab1df49761b14b0415 b9eb849018bc01b971b69c5bc621a0aa4083f826 Florian RICHER <florian.richer.97@outlook.com> 1651868810 +0200 commit: Add dot_config/dunst/dunstrc
|
||||
b9eb849018bc01b971b69c5bc621a0aa4083f826 0e0387e99b4212b1e056a4eae1f9f0b2973ce1af Florian RICHER <florian.richer.97@outlook.com> 1651869325 +0200 commit: Update dot_config/i3/config
|
||||
0e0387e99b4212b1e056a4eae1f9f0b2973ce1af 4ac586098b5bef99a583875f334cef3cc83f2514 Florian RICHER <florian.richer.97@outlook.com> 1651869419 +0200 commit: Remove dot_config/i3/i3blocks.conf
|
||||
4ac586098b5bef99a583875f334cef3cc83f2514 134cd852d406b2976d4525b5f90427ffdbf26fcf Florian RICHER <florian.richer.97@outlook.com> 1651869596 +0200 commit: Add dot_config/polybar/colors.ini
|
||||
134cd852d406b2976d4525b5f90427ffdbf26fcf 3ff2e6e742ef911e8930f41d42956c3f74ad8b90 Florian RICHER <florian.richer.97@outlook.com> 1651870524 +0200 commit: Update dot_config/polybar/custom_modules.ini
|
|
@ -1 +0,0 @@
|
|||
0000000000000000000000000000000000000000 7bb1eeb272c6b2db9b18cebf55a430a28e4740c7 Florian RICHER <florian@florian-ms7b09.(none)> 1651319621 +0200 clone: from https://github.com/mrdev023/dotfiles.git
|
|
@ -1,7 +0,0 @@
|
|||
7bb1eeb272c6b2db9b18cebf55a430a28e4740c7 8ff142bc1f3d033da41e5ce965327331c2d888a5 Florian RICHER <florian.richer.97@outlook.com> 1651867819 +0200 update by push
|
||||
8ff142bc1f3d033da41e5ce965327331c2d888a5 2e78190d74d3d4bd6e5b1fab1df49761b14b0415 Florian RICHER <florian.richer.97@outlook.com> 1651868227 +0200 update by push
|
||||
2e78190d74d3d4bd6e5b1fab1df49761b14b0415 b9eb849018bc01b971b69c5bc621a0aa4083f826 Florian RICHER <florian.richer.97@outlook.com> 1651868812 +0200 update by push
|
||||
b9eb849018bc01b971b69c5bc621a0aa4083f826 0e0387e99b4212b1e056a4eae1f9f0b2973ce1af Florian RICHER <florian.richer.97@outlook.com> 1651869328 +0200 update by push
|
||||
0e0387e99b4212b1e056a4eae1f9f0b2973ce1af 4ac586098b5bef99a583875f334cef3cc83f2514 Florian RICHER <florian.richer.97@outlook.com> 1651869421 +0200 update by push
|
||||
4ac586098b5bef99a583875f334cef3cc83f2514 134cd852d406b2976d4525b5f90427ffdbf26fcf Florian RICHER <florian.richer.97@outlook.com> 1651869598 +0200 update by push
|
||||
134cd852d406b2976d4525b5f90427ffdbf26fcf 3ff2e6e742ef911e8930f41d42956c3f74ad8b90 Florian RICHER <florian.richer.97@outlook.com> 1651870525 +0200 update by push
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1 +0,0 @@
|
|||
x¥<>AjÃ0E»Ö)f0M4–!”’ÒÐnsy$Å"–„rÿ¸ô]þ·ø¼'µ”ÜÁŒú·AÏÉøä½AFÍhqÔ³d™Xd2³„™…Ô÷¸up)áq‡˜(h¢à<C2A2>ĉ-™‘Å眷Ê?ûR\ÖÚ²ßàúóùýu…SúÛC˲Ä6LãG}öµÖû µ¼²EÇ΄ƒ6Z«<5A>î¾=þÿI<C3BF>ã-o<>Ëc<C38B>å7Å7Y`׬R·¤^ƒÇV9
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1 +0,0 @@
|
|||
x}<7D>ΝJ1…έN<CEAD>β:°]ΨYΈΡΚ,D¥…ι<E280A6><CEB9>HΙΟMH“’dRϊ*Ίρω|†ΖZ<CE96>‚ΈΈ‹Λ9ί½η0γ<18><><EFBFBD>τK¦mΙhP¤
<0A> ΄<C2A0> Π<C2AD>FηA¦Y:σΒ¨’^ς΄Χ7SΈ<53>ΤΣρQ—χMS<4D>Ϋ»Gx<47>4·[ύΆ‹Κω,(W}£b\†QYΞu4”
Ή[”ί2 ®σ<1C>;γ|¦ Dt6Δ™uQΛΟΪΩΠΐ<>d_ZΚ<0C><>θow
θpΌ¤]@1 ™–πyρΛ›CUA.© <09>Γσ9D…–d»{ϋ¶U^¬$(fs<66>hΧο―Ε<E28095>©§u»ΞI† ώ<>ρ(ρφƒ<CF86>:Q\9Ψ…Ω?"λΏ:’
|¤<>c
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1,2 +0,0 @@
|
|||
xUŽÁjÃ0D{õ~ÅÖ– ¦`…öfèÁ4†–’Kc(9I–#S9$™Jÿ½N(˜\ßμYåHáÓúñ.»j8
|
||||
%ƒ…2|™B¤µ#ý%´tæØI<C398>=y<‘;+é‹k¬š¢%_â(µ•ÆOa®ÚO¡â0D'U¡iËM^Ôäȇb^}<7D>jã0šUŽ?<3F>|Öõû¦Ú?³U'£Á^å<>4oÛz!¯%ß–|7óMÕ,<å¹B¾Os€ÄhK˜27l\·<>úˆìß<C3AC>¬—<C2AC>éÚ³qŽ¾‘]ìx›¼ˆ‘}Ô»ºIá÷æMø“%^M
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1,2 +0,0 @@
|
|||
x]ĎQ‚0€aźw
|
||||
Ž@<‰1dsŚŤ<C59A>1ĆěîNÝJĆëצű§Đެ¨ŠÍůjŃŇxBKşçu'Ig§ěýăÜm3±VNŕí¦Ő2ěŘ“ő<E2809C>ŤÔF×d–˱%c|zůeí“˝<E2809C>®p6¬eÔ~¦÷!˙ĺ0KŢŢ;ˇčŰť„YÓđë«đía’Ô€Źľęź&I”îť ‹&
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1,2 +0,0 @@
|
|||
x<01>RMk1íÙ¿â… =fLr4<>@i-ôØÒãâkgDmÙõÇn÷Òß^Ov³¤ä”ܤg==ÉO£#n?ܾë.tÍI<C38D>,šd‡¼(Õuøh-ÊÂ%àjÂÞ#“J<E2809C>ز£¡Uá;%Ïb
|
||||
Á¸DÆ<1E>ªËŒÑ$°4‚L”UüÅÎ!whøJüi¸ Ja×D1…V–)c1;ÂH$mŽZ`Ã^T·_š âœ(¢¯¸üñõ3ú?Oýð -í´TçîÙQ«»^c!uÊ”Jºø¨OS\<5C>ŽS;|3U¦e]àFìܨÓ;ú>‘Æ¢ŸðWS<>-ÏO-õ1XÞ°à½r‚>ÿ§»ñ¿+U./Žð3õ¾„ø*¥ÍJ þí‚G¾ê^³ÞÆáÒææ¹nóô[ztóØõñÆ,mMueÀ'#ÍÙvOóìÈbÏe<C38F>i6‡T¦Z†³S4-“·wËÚðáå7<C3A5>¦þPœðú
|
|
@ -1,6 +0,0 @@
|
|||
xµ’AJÃ@†ÝvNñL#MÀvš
|
||||
]¨ÍJ¨ÅV\ˆ„I2iB§™83±HèÂ<C3A8>ðâ /äô
|
||||
Ž5E
|
||||
ºpñx‹ÿŸ÷ýoxãì9îF}i†"TGu8*¤â3Ȩšs1…ˆÏ3ÆI„‹ü£<C3BC>Ì)<29> Í¢4$ŠˆuåœÝD´–ï
|
||||
•pÑ<EFBFBD> BE!õÌD©\v0ž¤Š‘ òþ–‘ä…)„œq![:Òp ²l(Qílè¼ñhèyýži‘ùe[̱Ë\¤™ŠÁØÚm9±±
–鴛̵±Óvw@™¤%sz¦Ûæö´Ø],°oMÍaÎHÖœb<>Ľ¶µ&Õ¢Ó…µ&Õú'çƒ?¤r›:í¿‡ª
†1mû’Ç
|
||||
.ÀŒID#Ÿ\äíöÌÊwÂñ!–æ©7òÆðéÓ[ÓìåîÌ•«ÖÊüKÕ~B+Hx}|^Ï\¥‚6?ýŽk Ò—õu)èèâ¼
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1,2 +0,0 @@
|
|||
xEоMnб0├А╝}┼H╫@ЭЛE@й%╙
|
||||
MЛ@X≤╒╙╥/F╡}ТiЭzJyЙТ ъ╬BN╧э╬┘┬PнЩЧ%vщ╩TрJъП√И^Qy-uИt8ч≈)B▄╛╪█:└`Aд╦/Ь<╨uoьЯR╞z3▄vщ√≤RЧ╜╪5ч╤Я■f╛Ь╧шXъ7╪нЕ ·<*╜▄n?3тМZ9╧еTj.')0▌Яух╧гcm╩D7;W║е╨d=ЧГы╧╜В▌ЧЬ÷q
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1,2 +0,0 @@
|
|||
# pack-refs with: peeled fully-peeled sorted
|
||||
7bb1eeb272c6b2db9b18cebf55a430a28e4740c7 refs/remotes/origin/master
|
|
@ -1 +0,0 @@
|
|||
3ff2e6e742ef911e8930f41d42956c3f74ad8b90
|
|
@ -1 +0,0 @@
|
|||
ref: refs/remotes/origin/master
|
|
@ -1 +0,0 @@
|
|||
3ff2e6e742ef911e8930f41d42956c3f74ad8b90
|
|
@ -1,7 +0,0 @@
|
|||
shell:
|
||||
program: tmux
|
||||
font:
|
||||
normal:
|
||||
family: FiraCode NF
|
||||
window:
|
||||
opacity: 0.5 # Require `picom -f &` in .xinitrc
|
|
@ -1,39 +0,0 @@
|
|||
-- Notification library
|
||||
local naughty = require("naughty")
|
||||
|
||||
local function init(awesome)
|
||||
-- {{{ Error handling
|
||||
-- Check if awesome encountered an error during startup and fell back to
|
||||
-- another config (This code will only ever execute for the fallback config)
|
||||
if awesome.startup_errors then
|
||||
naughty.notify({
|
||||
preset = naughty.config.presets.critical,
|
||||
title = "Oops, there were errors during startup!",
|
||||
text = awesome.startup_errors
|
||||
})
|
||||
end
|
||||
|
||||
-- Handle runtime errors after startup
|
||||
do
|
||||
local in_error = false
|
||||
awesome.connect_signal("debug::error", function(err)
|
||||
-- Make sure we don't go into an endless error loop
|
||||
if in_error then
|
||||
return
|
||||
end
|
||||
in_error = true
|
||||
|
||||
naughty.notify({
|
||||
preset = naughty.config.presets.critical,
|
||||
title = "Oops, an error happened!",
|
||||
text = tostring(err)
|
||||
})
|
||||
in_error = false
|
||||
end)
|
||||
end
|
||||
-- }}}
|
||||
end
|
||||
|
||||
return {
|
||||
init = init
|
||||
}
|
|
@ -1,10 +0,0 @@
|
|||
local function bind(globalkeys, clientkeys, clientbuttons)
|
||||
-- Media Control
|
||||
globalkeys, clientkeys, clientbuttons = require('keymapping.mediacontrol').bind(globalkeys, clientkeys, clientbuttons)
|
||||
|
||||
return globalkeys, clientkeys, clientbuttons
|
||||
end
|
||||
|
||||
return {
|
||||
bind = bind
|
||||
}
|
|
@ -1,19 +0,0 @@
|
|||
local awful = require("awful")
|
||||
local gears = require("gears")
|
||||
|
||||
local function bind(globalkeys, clientkeys, clientbuttons)
|
||||
globalkeys = gears.table.join(globalkeys,
|
||||
awful.key({ }, "XF86AudioPlay", function () awful.util.spawn_with_shell("playerctl play-pause") end),
|
||||
awful.key({ }, "XF86AudioNext", function () awful.util.spawn_with_shell("playerctl next") end),
|
||||
awful.key({ }, "XF86AudioPrev", function () awful.util.spawn_with_shell("playerctl previous") end),
|
||||
awful.key({ }, "XF86AudioRaiseVolume", function () awful.util.spawn_with_shell("amixer -c 0 set Master 1dB+") end),
|
||||
awful.key({ }, "XF86AudioLowerVolume", function () awful.util.spawn_with_shell("amixer -c 0 set Master 1dB-") end),
|
||||
awful.key({ }, "XF86AudioMute", function () awful.util.spawn_with_shell("amixer -c 0 set Master toggle") end)
|
||||
)
|
||||
|
||||
return globalkeys, clientkeys, clientbuttons
|
||||
end
|
||||
|
||||
return {
|
||||
bind = bind
|
||||
}
|
|
@ -1,602 +0,0 @@
|
|||
-- If LuaRocks is installed, make sure that packages installed through it are
|
||||
-- found (e.g. lgi). If LuaRocks is not installed, do nothing.
|
||||
pcall(require, "luarocks.loader")
|
||||
|
||||
-- Standard awesome library
|
||||
local gears = require("gears")
|
||||
local awful = require("awful")
|
||||
require("awful.autofocus")
|
||||
-- Widget and layout library
|
||||
local wibox = require("wibox")
|
||||
-- Theme handling library
|
||||
local beautiful = require("beautiful")
|
||||
local menubar = require("menubar")
|
||||
local hotkeys_popup = require("awful.hotkeys_popup")
|
||||
-- Enable hotkeys help widget for VIM and other apps
|
||||
-- when client with a matching name is opened:
|
||||
require("awful.hotkeys_popup.keys")
|
||||
require("error_handling").init(awesome)
|
||||
|
||||
-- {{{ Variable definitions
|
||||
-- Themes define colours, icons, font and wallpapers.
|
||||
beautiful.init(string.format("%s/.config/awesome/theme/theme.lua", os.getenv("HOME")))
|
||||
|
||||
-- This is used later as the default terminal and editor to run.
|
||||
terminal = "alacritty"
|
||||
editor = os.getenv("EDITOR") or "vim"
|
||||
editor_cmd = terminal .. " -e " .. editor
|
||||
|
||||
-- Default modkey.
|
||||
-- Usually, Mod4 is the key with a logo between Control and Alt.
|
||||
-- If you do not like this or do not have such a key,
|
||||
-- I suggest you to remap Mod4 to another key using xmodmap or other tools.
|
||||
-- However, you can use another modifier like Mod1, but it may interact with others.
|
||||
modkey = "Mod4"
|
||||
|
||||
-- Table of layouts to cover with awful.layout.inc, order matters.
|
||||
awful.layout.layouts = {awful.layout.suit.floating, awful.layout.suit.tile, awful.layout.suit.tile.left,
|
||||
awful.layout.suit.tile.bottom, awful.layout.suit.tile.top, awful.layout.suit.fair,
|
||||
awful.layout.suit.fair.horizontal, awful.layout.suit.spiral, awful.layout.suit.spiral.dwindle,
|
||||
awful.layout.suit.max, awful.layout.suit.max.fullscreen, awful.layout.suit.magnifier,
|
||||
awful.layout.suit.corner.nw -- awful.layout.suit.corner.ne,
|
||||
-- awful.layout.suit.corner.sw,
|
||||
-- awful.layout.suit.corner.se,
|
||||
}
|
||||
-- }}}
|
||||
|
||||
-- {{{ Menu
|
||||
-- Create a launcher widget and a main menu
|
||||
myawesomemenu = {{"hotkeys", function()
|
||||
hotkeys_popup.show_help(nil, awful.screen.focused())
|
||||
end}, {"manual", terminal .. " -e man awesome"}, {"edit config", editor_cmd .. " " .. awesome.conffile},
|
||||
{"restart", awesome.restart}, {"quit", function()
|
||||
awesome.quit()
|
||||
end}}
|
||||
|
||||
mymainmenu = awful.menu({
|
||||
items = {{"awesome", myawesomemenu, beautiful.awesome_icon}, {"open terminal", terminal}}
|
||||
})
|
||||
|
||||
mylauncher = awful.widget.launcher({
|
||||
image = beautiful.awesome_icon,
|
||||
menu = mymainmenu
|
||||
})
|
||||
|
||||
-- Menubar configuration
|
||||
menubar.utils.terminal = terminal -- Set the terminal for applications that require it
|
||||
-- }}}
|
||||
|
||||
-- Keyboard map indicator and switcher
|
||||
mykeyboardlayout = awful.widget.keyboardlayout()
|
||||
|
||||
-- {{{ Wibar
|
||||
-- Create a textclock widget
|
||||
mytextclock = wibox.widget.textclock()
|
||||
|
||||
local volume_widget = require('awesome-wm-widgets.volume-widget.volume')
|
||||
local cpu_widget = require("awesome-wm-widgets.cpu-widget.cpu-widget")
|
||||
local ram_widget = require("awesome-wm-widgets.ram-widget.ram-widget")
|
||||
local net_speed_widget = require("awesome-wm-widgets.net-speed-widget.net-speed")
|
||||
local mpris_widget = require("awesome-wm-widgets.mpris-widget")
|
||||
|
||||
-- Create a wibox for each screen and add it
|
||||
local taglist_buttons = gears.table.join(awful.button({}, 1, function(t)
|
||||
t:view_only()
|
||||
end), awful.button({modkey}, 1, function(t)
|
||||
if client.focus then
|
||||
client.focus:move_to_tag(t)
|
||||
end
|
||||
end), awful.button({}, 3, awful.tag.viewtoggle), awful.button({modkey}, 3, function(t)
|
||||
if client.focus then
|
||||
client.focus:toggle_tag(t)
|
||||
end
|
||||
end), awful.button({}, 4, function(t)
|
||||
awful.tag.viewnext(t.screen)
|
||||
end), awful.button({}, 5, function(t)
|
||||
awful.tag.viewprev(t.screen)
|
||||
end))
|
||||
|
||||
local tasklist_buttons = gears.table.join(awful.button({}, 1, function(c)
|
||||
if c == client.focus then
|
||||
c.minimized = true
|
||||
else
|
||||
c:emit_signal("request::activate", "tasklist", {
|
||||
raise = true
|
||||
})
|
||||
end
|
||||
end), awful.button({}, 3, function()
|
||||
awful.menu.client_list({
|
||||
theme = {
|
||||
width = 250
|
||||
}
|
||||
})
|
||||
end), awful.button({}, 4, function()
|
||||
awful.client.focus.byidx(1)
|
||||
end), awful.button({}, 5, function()
|
||||
awful.client.focus.byidx(-1)
|
||||
end))
|
||||
|
||||
local function set_wallpaper(s)
|
||||
-- Wallpaper
|
||||
if beautiful.wallpaper then
|
||||
local wallpaper = beautiful.wallpaper
|
||||
-- If wallpaper is a function, call it with the screen
|
||||
if type(wallpaper) == "function" then
|
||||
wallpaper = wallpaper(s)
|
||||
end
|
||||
gears.wallpaper.maximized(wallpaper, s, true)
|
||||
end
|
||||
end
|
||||
|
||||
-- Re-set wallpaper when a screen's geometry changes (e.g. different resolution)
|
||||
screen.connect_signal("property::geometry", set_wallpaper)
|
||||
|
||||
awful.screen.connect_for_each_screen(function(s)
|
||||
-- Wallpaper
|
||||
set_wallpaper(s)
|
||||
|
||||
-- Each screen has its own tag table.
|
||||
awful.tag({"1", "2", "3", "4", "5", "6", "7", "8", "9"}, s, awful.layout.layouts[1])
|
||||
|
||||
-- Create a promptbox for each screen
|
||||
s.mypromptbox = awful.widget.prompt()
|
||||
-- Create an imagebox widget which will contain an icon indicating which layout we're using.
|
||||
-- We need one layoutbox per screen.
|
||||
s.mylayoutbox = awful.widget.layoutbox(s)
|
||||
s.mylayoutbox:buttons(gears.table.join(awful.button({}, 1, function()
|
||||
awful.layout.inc(1)
|
||||
end), awful.button({}, 3, function()
|
||||
awful.layout.inc(-1)
|
||||
end), awful.button({}, 4, function()
|
||||
awful.layout.inc(1)
|
||||
end), awful.button({}, 5, function()
|
||||
awful.layout.inc(-1)
|
||||
end)))
|
||||
-- Create a taglist widget
|
||||
s.mytaglist = awful.widget.taglist {
|
||||
screen = s,
|
||||
filter = awful.widget.taglist.filter.all,
|
||||
buttons = taglist_buttons
|
||||
}
|
||||
|
||||
-- Create a tasklist widget
|
||||
s.mytasklist = awful.widget.tasklist {
|
||||
screen = s,
|
||||
filter = awful.widget.tasklist.filter.currenttags,
|
||||
buttons = tasklist_buttons
|
||||
}
|
||||
|
||||
-- Create the wibox
|
||||
s.mywibox = awful.wibar({
|
||||
position = "top",
|
||||
screen = s
|
||||
})
|
||||
|
||||
-- Add widgets to the wibox
|
||||
s.mywibox:setup{
|
||||
layout = wibox.layout.align.horizontal,
|
||||
{ -- Left widgets
|
||||
layout = wibox.layout.fixed.horizontal,
|
||||
mylauncher,
|
||||
s.mytaglist,
|
||||
s.mypromptbox
|
||||
},
|
||||
s.mytasklist, -- Middle widget
|
||||
{ -- Right widgets
|
||||
layout = wibox.layout.fixed.horizontal,
|
||||
mpris_widget(),
|
||||
volume_widget({ widget_type = 'arc' }),
|
||||
cpu_widget({ width = 40 }),
|
||||
ram_widget(),
|
||||
net_speed_widget(),
|
||||
mykeyboardlayout,
|
||||
wibox.widget.systray(),
|
||||
mytextclock,
|
||||
s.mylayoutbox
|
||||
}
|
||||
}
|
||||
end)
|
||||
-- }}}
|
||||
|
||||
-- {{{ Mouse bindings
|
||||
root.buttons(gears.table.join(awful.button({}, 3, function()
|
||||
mymainmenu:toggle()
|
||||
end), awful.button({}, 4, awful.tag.viewnext), awful.button({}, 5, awful.tag.viewprev)))
|
||||
-- }}}
|
||||
|
||||
-- {{{ Key bindings
|
||||
globalkeys = gears.table.join(awful.key({modkey}, "s", hotkeys_popup.show_help, {
|
||||
escription = "show help",
|
||||
group = "awesome"
|
||||
}), awful.key({modkey}, "Left", awful.tag.viewprev, {
|
||||
description = "view previous",
|
||||
group = "tag"
|
||||
}), awful.key({modkey}, "Right", awful.tag.viewnext, {
|
||||
description = "view next",
|
||||
group = "tag"
|
||||
}), awful.key({modkey}, "Escape", awful.tag.history.restore, {
|
||||
description = "go back",
|
||||
group = "tag"
|
||||
}), awful.key({modkey}, "j", function()
|
||||
awful.client.focus.byidx(1)
|
||||
end, {
|
||||
description = "focus next by index",
|
||||
group = "client"
|
||||
}), awful.key({modkey}, "k", function()
|
||||
awful.client.focus.byidx(-1)
|
||||
end, {
|
||||
description = "focus previous by index",
|
||||
group = "client"
|
||||
}), awful.key({modkey}, "w", function()
|
||||
mymainmenu:show()
|
||||
end, {
|
||||
description = "show main menu",
|
||||
group = "awesome"
|
||||
}), -- Layout manipulation
|
||||
awful.key({modkey, "Shift"}, "j", function()
|
||||
awful.client.swap.byidx(1)
|
||||
end, {
|
||||
description = "swap with next client by index",
|
||||
group = "client"
|
||||
}), awful.key({modkey, "Shift"}, "k", function()
|
||||
awful.client.swap.byidx(-1)
|
||||
end, {
|
||||
description = "swap with previous client by index",
|
||||
group = "client"
|
||||
}), awful.key({modkey, "Control"}, "j", function()
|
||||
awful.screen.focus_relative(1)
|
||||
end, {
|
||||
description = "focus the next screen",
|
||||
group = "screen"
|
||||
}), awful.key({modkey, "Control"}, "k", function()
|
||||
awful.screen.focus_relative(-1)
|
||||
end, {
|
||||
description = "focus the previous screen",
|
||||
group = "screen"
|
||||
}), awful.key({modkey}, "u", awful.client.urgent.jumpto, {
|
||||
description = "jump to urgent client",
|
||||
group = "client"
|
||||
}), awful.key({modkey}, "Tab", function()
|
||||
awful.client.focus.history.previous()
|
||||
if client.focus then
|
||||
client.focus:raise()
|
||||
end
|
||||
end, {
|
||||
description = "go back",
|
||||
group = "client"
|
||||
}), -- Standard program
|
||||
awful.key({modkey}, "Return", function()
|
||||
awful.spawn(terminal)
|
||||
end, {
|
||||
description = "open a terminal",
|
||||
group = "launcher"
|
||||
}), awful.key({modkey, "Control"}, "r", awesome.restart, {
|
||||
description = "reload awesome",
|
||||
group = "awesome"
|
||||
}), awful.key({modkey, "Shift"}, "q", awesome.quit, {
|
||||
description = "quit awesome",
|
||||
group = "awesome"
|
||||
}), awful.key({modkey}, "l", function()
|
||||
awful.tag.incmwfact(0.05)
|
||||
end, {
|
||||
description = "increase master width factor",
|
||||
group = "layout"
|
||||
}), awful.key({modkey}, "h", function()
|
||||
awful.tag.incmwfact(-0.05)
|
||||
end, {
|
||||
description = "decrease master width factor",
|
||||
group = "layout"
|
||||
}), awful.key({modkey, "Shift"}, "h", function()
|
||||
awful.tag.incnmaster(1, nil, true)
|
||||
end, {
|
||||
description = "increase the number of master clients",
|
||||
group = "layout"
|
||||
}), awful.key({modkey, "Shift"}, "l", function()
|
||||
awful.tag.incnmaster(-1, nil, true)
|
||||
end, {
|
||||
description = "decrease the number of master clients",
|
||||
group = "layout"
|
||||
}), awful.key({modkey, "Control"}, "h", function()
|
||||
awful.tag.incncol(1, nil, true)
|
||||
end, {
|
||||
description = "increase the number of columns",
|
||||
group = "layout"
|
||||
}), awful.key({modkey, "Control"}, "l", function()
|
||||
awful.tag.incncol(-1, nil, true)
|
||||
end, {
|
||||
description = "decrease the number of columns",
|
||||
group = "layout"
|
||||
}), awful.key({modkey}, "space", function()
|
||||
awful.layout.inc(1)
|
||||
end, {
|
||||
description = "select next",
|
||||
group = "layout"
|
||||
}), awful.key({modkey, "Shift"}, "space", function()
|
||||
awful.layout.inc(-1)
|
||||
end, {
|
||||
description = "select previous",
|
||||
group = "layout"
|
||||
}), awful.key({modkey, "Control"}, "n", function()
|
||||
local c = awful.client.restore()
|
||||
-- Focus restored client
|
||||
if c then
|
||||
c:emit_signal("request::activate", "key.unminimize", {
|
||||
raise = true
|
||||
})
|
||||
end
|
||||
end, {
|
||||
description = "restore minimized",
|
||||
group = "client"
|
||||
}), -- Prompt
|
||||
awful.key({modkey}, "r", function()
|
||||
awful.screen.focused().mypromptbox:run()
|
||||
end, {
|
||||
description = "run prompt",
|
||||
group = "launcher"
|
||||
}), awful.key({modkey}, "x", function()
|
||||
awful.prompt.run {
|
||||
prompt = "Run Lua code: ",
|
||||
textbox = awful.screen.focused().mypromptbox.widget,
|
||||
exe_callback = awful.util.eval,
|
||||
history_path = awful.util.get_cache_dir() .. "/history_eval"
|
||||
}
|
||||
end, {
|
||||
description = "lua execute prompt",
|
||||
group = "awesome"
|
||||
}), -- Menubar
|
||||
awful.key({modkey}, "p", function()
|
||||
awful.spawn.with_shell("rofi -show drun &>> /tmp/rofi.log")
|
||||
-- menubar.show()
|
||||
end, {
|
||||
description = "show the menubar",
|
||||
group = "launcher"
|
||||
}))
|
||||
|
||||
clientkeys = gears.table.join(awful.key({modkey}, "f", function(c)
|
||||
c.fullscreen = not c.fullscreen
|
||||
c:raise()
|
||||
end, {
|
||||
description = "toggle fullscreen",
|
||||
group = "client"
|
||||
}), awful.key({modkey, "Shift"}, "c", function(c)
|
||||
c:kill()
|
||||
end, {
|
||||
description = "close",
|
||||
group = "client"
|
||||
}), awful.key({modkey, "Control"}, "space", awful.client.floating.toggle, {
|
||||
description = "toggle floating",
|
||||
group = "client"
|
||||
}), awful.key({modkey, "Control"}, "Return", function(c)
|
||||
c:swap(awful.client.getmaster())
|
||||
end, {
|
||||
description = "move to master",
|
||||
group = "client"
|
||||
}), awful.key({modkey}, "o", function(c)
|
||||
c:move_to_screen()
|
||||
end, {
|
||||
description = "move to screen",
|
||||
group = "client"
|
||||
}), awful.key({modkey}, "t", function(c)
|
||||
c.ontop = not c.ontop
|
||||
end, {
|
||||
description = "toggle keep on top",
|
||||
group = "client"
|
||||
}), awful.key({modkey}, "n", function(c)
|
||||
-- The client currently has the input focus, so it cannot be
|
||||
-- minimized, since minimized clients can't have the focus.
|
||||
c.minimized = true
|
||||
end, {
|
||||
description = "minimize",
|
||||
group = "client"
|
||||
}), awful.key({modkey}, "m", function(c)
|
||||
c.maximized = not c.maximized
|
||||
c:raise()
|
||||
end, {
|
||||
description = "(un)maximize",
|
||||
group = "client"
|
||||
}), awful.key({modkey, "Control"}, "m", function(c)
|
||||
c.maximized_vertical = not c.maximized_vertical
|
||||
c:raise()
|
||||
end, {
|
||||
description = "(un)maximize vertically",
|
||||
group = "client"
|
||||
}), awful.key({modkey, "Shift"}, "m", function(c)
|
||||
c.maximized_horizontal = not c.maximized_horizontal
|
||||
c:raise()
|
||||
end, {
|
||||
description = "(un)maximize horizontally",
|
||||
group = "client"
|
||||
}))
|
||||
|
||||
-- Bind all key numbers to tags.
|
||||
-- Be careful: we use keycodes to make it work on any keyboard layout.
|
||||
-- This should map on the top row of your keyboard, usually 1 to 9.
|
||||
for i = 1, 9 do
|
||||
globalkeys = gears.table.join(globalkeys, -- View tag only.
|
||||
awful.key({modkey}, "#" .. i + 9, function()
|
||||
local screen = awful.screen.focused()
|
||||
local tag = screen.tags[i]
|
||||
if tag then
|
||||
tag:view_only()
|
||||
end
|
||||
end, {
|
||||
description = "view tag #" .. i,
|
||||
group = "tag"
|
||||
}), -- Toggle tag display.
|
||||
awful.key({modkey, "Control"}, "#" .. i + 9, function()
|
||||
local screen = awful.screen.focused()
|
||||
local tag = screen.tags[i]
|
||||
if tag then
|
||||
awful.tag.viewtoggle(tag)
|
||||
end
|
||||
end, {
|
||||
description = "toggle tag #" .. i,
|
||||
group = "tag"
|
||||
}), -- Move client to tag.
|
||||
awful.key({modkey, "Shift"}, "#" .. i + 9, function()
|
||||
if client.focus then
|
||||
local tag = client.focus.screen.tags[i]
|
||||
if tag then
|
||||
client.focus:move_to_tag(tag)
|
||||
end
|
||||
end
|
||||
end, {
|
||||
description = "move focused client to tag #" .. i,
|
||||
group = "tag"
|
||||
}), -- Toggle tag on focused client.
|
||||
awful.key({modkey, "Control", "Shift"}, "#" .. i + 9, function()
|
||||
if client.focus then
|
||||
local tag = client.focus.screen.tags[i]
|
||||
if tag then
|
||||
client.focus:toggle_tag(tag)
|
||||
end
|
||||
end
|
||||
end, {
|
||||
description = "toggle focused client on tag #" .. i,
|
||||
group = "tag"
|
||||
}))
|
||||
end
|
||||
|
||||
clientbuttons = gears.table.join(awful.button({}, 1, function(c)
|
||||
c:emit_signal("request::activate", "mouse_click", {
|
||||
raise = true
|
||||
})
|
||||
end), awful.button({modkey}, 1, function(c)
|
||||
c:emit_signal("request::activate", "mouse_click", {
|
||||
raise = true
|
||||
})
|
||||
awful.mouse.client.move(c)
|
||||
end), awful.button({modkey}, 3, function(c)
|
||||
c:emit_signal("request::activate", "mouse_click", {
|
||||
raise = true
|
||||
})
|
||||
awful.mouse.client.resize(c)
|
||||
end))
|
||||
|
||||
globalkeys, clientkeys, clientbuttons = require('keymapping').bind(globalkeys, clientkeys, clientbuttons)
|
||||
|
||||
-- Set keys
|
||||
root.keys(globalkeys)
|
||||
-- }}}
|
||||
|
||||
-- {{{ Rules
|
||||
-- Rules to apply to new clients (through the "manage" signal).
|
||||
awful.rules.rules = { -- All clients will match this rule.
|
||||
{
|
||||
rule = {},
|
||||
properties = {
|
||||
border_width = beautiful.border_width,
|
||||
border_color = beautiful.border_normal,
|
||||
focus = awful.client.focus.filter,
|
||||
raise = true,
|
||||
keys = clientkeys,
|
||||
buttons = clientbuttons,
|
||||
screen = awful.screen.preferred,
|
||||
placement = awful.placement.no_overlap + awful.placement.no_offscreen
|
||||
}
|
||||
}, -- Floating clients.
|
||||
{
|
||||
rule_any = {
|
||||
instance = {"DTA", -- Firefox addon DownThemAll.
|
||||
"copyq", -- Includes session name in class.
|
||||
"pinentry"},
|
||||
class = {"Arandr", "Blueman-manager", "Gpick", "Kruler", "MessageWin", -- kalarm.
|
||||
"Sxiv", "Tor Browser", -- Needs a fixed window size to avoid fingerprinting by screen size.
|
||||
"Wpa_gui", "veromix", "xtightvncviewer"},
|
||||
|
||||
-- Note that the name property shown in xprop might be set slightly after creation of the client
|
||||
-- and the name shown there might not match defined rules here.
|
||||
name = {"Event Tester" -- xev.
|
||||
},
|
||||
role = {"AlarmWindow", -- Thunderbird's calendar.
|
||||
"ConfigManager", -- Thunderbird's about:config.
|
||||
"pop-up" -- e.g. Google Chrome's (detached) Developer Tools.
|
||||
}
|
||||
},
|
||||
properties = {
|
||||
floating = true
|
||||
}
|
||||
}, -- Add titlebars to normal clients and dialogs
|
||||
{
|
||||
rule_any = {
|
||||
type = {"normal", "dialog"}
|
||||
},
|
||||
properties = {
|
||||
titlebars_enabled = true
|
||||
}
|
||||
} -- Set Firefox to always map on the tag named "2" on screen 1.
|
||||
-- { rule = { class = "Firefox" },
|
||||
-- properties = { screen = 1, tag = "2" } },
|
||||
}
|
||||
-- }}}
|
||||
|
||||
-- {{{ Signals
|
||||
-- Signal function to execute when a new client appears.
|
||||
client.connect_signal("manage", function(c)
|
||||
-- Set the windows at the slave,
|
||||
-- i.e. put it at the end of others instead of setting it master.
|
||||
-- if not awesome.startup then awful.client.setslave(c) end
|
||||
|
||||
if awesome.startup and not c.size_hints.user_position and not c.size_hints.program_position then
|
||||
-- Prevent clients from being unreachable after screen count changes.
|
||||
awful.placement.no_offscreen(c)
|
||||
end
|
||||
end)
|
||||
|
||||
-- Add a titlebar if titlebars_enabled is set to true in the rules.
|
||||
client.connect_signal("request::titlebars", function(c)
|
||||
-- buttons for the titlebar
|
||||
local buttons = gears.table.join(awful.button({}, 1, function()
|
||||
c:emit_signal("request::activate", "titlebar", {
|
||||
raise = true
|
||||
})
|
||||
awful.mouse.client.move(c)
|
||||
end), awful.button({}, 3, function()
|
||||
c:emit_signal("request::activate", "titlebar", {
|
||||
raise = true
|
||||
})
|
||||
awful.mouse.client.resize(c)
|
||||
end))
|
||||
|
||||
awful.titlebar(c):setup{
|
||||
{ -- Left
|
||||
awful.titlebar.widget.iconwidget(c),
|
||||
buttons = buttons,
|
||||
layout = wibox.layout.fixed.horizontal
|
||||
},
|
||||
{ -- Middle
|
||||
{ -- Title
|
||||
align = "center",
|
||||
widget = awful.titlebar.widget.titlewidget(c)
|
||||
},
|
||||
buttons = buttons,
|
||||
layout = wibox.layout.flex.horizontal
|
||||
},
|
||||
{ -- Right
|
||||
awful.titlebar.widget.floatingbutton(c),
|
||||
awful.titlebar.widget.maximizedbutton(c),
|
||||
awful.titlebar.widget.stickybutton(c),
|
||||
awful.titlebar.widget.ontopbutton(c),
|
||||
awful.titlebar.widget.closebutton(c),
|
||||
layout = wibox.layout.fixed.horizontal()
|
||||
},
|
||||
layout = wibox.layout.align.horizontal
|
||||
}
|
||||
end)
|
||||
|
||||
-- Enable sloppy focus, so that focus follows mouse.
|
||||
client.connect_signal("mouse::enter", function(c)
|
||||
c:emit_signal("request::activate", "mouse_enter", {
|
||||
raise = false
|
||||
})
|
||||
end)
|
||||
|
||||
client.connect_signal("focus", function(c)
|
||||
c.border_color = beautiful.border_focus
|
||||
end)
|
||||
client.connect_signal("unfocus", function(c)
|
||||
c.border_color = beautiful.border_normal
|
||||
end)
|
||||
-- }}}
|
||||
|
||||
os.execute('picom -f &')
|
|
@ -1,3 +0,0 @@
|
|||
Background images:
|
||||
Mikael Eriksson <mikael_eriksson@miffe.org>
|
||||
Licensed under CC-BY-SA-3.0
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue