aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--brave/Makefile14
-rwxr-xr-xbrave/brave3
l---------python@australis1
l---------python@borealis1
l---------python@east1
l---------python@hades1
l---------python@heaven1
l---------python@hyperion1
l---------python@miniaurora1
l---------python@nadir1
l---------python@north1
l---------python@selene1
l---------python@south1
l---------python@west1
-rwxr-xr-xxorg-xrandr/resolution-changed14
-rwxr-xr-xxorg-xrandr/setres/__main__.py.gpp17
-rw-r--r--xpybar/config/xmonad-monitor.gpp4
17 files changed, 59 insertions, 5 deletions
diff --git a/brave/Makefile b/brave/Makefile
new file mode 100644
index 0000000..dc5f0c2
--- /dev/null
+++ b/brave/Makefile
@@ -0,0 +1,14 @@
+.POSIX:
+
+XINITRC_ORDER = 20
+
+install:
+ ../check-installed-shebang brave
+ mkdir -p -- ~/.local/bin
+ test ! -e ~/.local/bin/brave || test -L ~/.local/bin/brave
+ ln -sf -- ~/.dotfiles/brave/brave ~/.local/bin/brave
+
+uninstall:
+ +! ../check-installed brave
+ +! ../check-installed brave-bin
+ -unlink -- ~/.local/bin/brave
diff --git a/brave/brave b/brave/brave
new file mode 100755
index 0000000..9971967
--- /dev/null
+++ b/brave/brave
@@ -0,0 +1,3 @@
+#!/bin/dash
+
+exec /usr/bin/brave --password-store=none "$@"
diff --git a/python@australis b/python@australis
new file mode 120000
index 0000000..ffded53
--- /dev/null
+++ b/python@australis
@@ -0,0 +1 @@
+python@zenith \ No newline at end of file
diff --git a/python@borealis b/python@borealis
new file mode 120000
index 0000000..ffded53
--- /dev/null
+++ b/python@borealis
@@ -0,0 +1 @@
+python@zenith \ No newline at end of file
diff --git a/python@east b/python@east
new file mode 120000
index 0000000..ffded53
--- /dev/null
+++ b/python@east
@@ -0,0 +1 @@
+python@zenith \ No newline at end of file
diff --git a/python@hades b/python@hades
new file mode 120000
index 0000000..ffded53
--- /dev/null
+++ b/python@hades
@@ -0,0 +1 @@
+python@zenith \ No newline at end of file
diff --git a/python@heaven b/python@heaven
new file mode 120000
index 0000000..ffded53
--- /dev/null
+++ b/python@heaven
@@ -0,0 +1 @@
+python@zenith \ No newline at end of file
diff --git a/python@hyperion b/python@hyperion
new file mode 120000
index 0000000..ffded53
--- /dev/null
+++ b/python@hyperion
@@ -0,0 +1 @@
+python@zenith \ No newline at end of file
diff --git a/python@miniaurora b/python@miniaurora
new file mode 120000
index 0000000..ffded53
--- /dev/null
+++ b/python@miniaurora
@@ -0,0 +1 @@
+python@zenith \ No newline at end of file
diff --git a/python@nadir b/python@nadir
new file mode 120000
index 0000000..ffded53
--- /dev/null
+++ b/python@nadir
@@ -0,0 +1 @@
+python@zenith \ No newline at end of file
diff --git a/python@north b/python@north
new file mode 120000
index 0000000..ffded53
--- /dev/null
+++ b/python@north
@@ -0,0 +1 @@
+python@zenith \ No newline at end of file
diff --git a/python@selene b/python@selene
new file mode 120000
index 0000000..ffded53
--- /dev/null
+++ b/python@selene
@@ -0,0 +1 @@
+python@zenith \ No newline at end of file
diff --git a/python@south b/python@south
new file mode 120000
index 0000000..ffded53
--- /dev/null
+++ b/python@south
@@ -0,0 +1 @@
+python@zenith \ No newline at end of file
diff --git a/python@west b/python@west
new file mode 120000
index 0000000..ffded53
--- /dev/null
+++ b/python@west
@@ -0,0 +1 @@
+python@zenith \ No newline at end of file
diff --git a/xorg-xrandr/resolution-changed b/xorg-xrandr/resolution-changed
index e1457ce..4e8856f 100755
--- a/xorg-xrandr/resolution-changed
+++ b/xorg-xrandr/resolution-changed
@@ -1,15 +1,23 @@
#!/bin/dash
reset_wallpaper_twice=0
+hostname="$(hostname | tr 'A-Z' 'a-z')"
-if ! test "$(hostname | tr '[A-Z]' '[a-z]')" = zenith; then
+if ! test "${hostname}" = zenith; then ## TODO how about the other east,north,hades,hyperion?
# Reset rat size in case DPI change modified scaling
xsetroot -cursor_name left_ptr || :
# Reset rat speed in case DPI changed
if test "${DESKTOP_SESSION}" = xmonad && test ! "${NO_MATE}" = y; then
- msd=/usr/lib/mate-settings-daemon/mate-settings-daemon
- if ! test -x "$msd"; then
+ if test -x /usr/lib/mate-settings-daemon/mate-settings-daemon; then
+ msd=/usr/lib/mate-settings-daemon/mate-settings-daemon
+ elif test -x /usr/bin/mate-settings-daemon; then
+ msd=/usr/bin/mate-settings-daemon
+ elif test -x /usr/libexec/mate-settings-daemon; then
+ msd=/usr/libexec/mate-settings-daemon
+ elif test -x /usr/libexec/mate-settings-daemon/mate-settings-daemon; then
+ msd=/usr/libexec/mate-settings-daemon/mate-settings-daemon
+ else
msd=mate-settings-daemon
fi
(exec $msd --replace &) || :
diff --git a/xorg-xrandr/setres/__main__.py.gpp b/xorg-xrandr/setres/__main__.py.gpp
index 9c0f1eb..b25f9d6 100755
--- a/xorg-xrandr/setres/__main__.py.gpp
+++ b/xorg-xrandr/setres/__main__.py.gpp
@@ -51,10 +51,25 @@ if hostname == 'zenith':
sec_position = 'left'
elif hostname == 'hades':
- prime, sec = None, None
+ prime = None
+ sec = None
embed = screen['eDP1']
+
+ prime_alt = None
+ sec_alt = None
+
embed.want_mode = '1920x1280'
+elif hostname == 'north':
+ prime = None
+ sec = None
+ embed = screen['eDP1']
+
+ prime_alt = None
+ sec_alt = None
+
+ embed.want_mode = '1920x1080'
+
%%>hostname="$(hostname | tr '[A-Z]' '[a-z]')"
%%>file="${HOME}/.dotfiles/.private/setres/${hostname}"
%%>if test -r "${file}"; then
diff --git a/xpybar/config/xmonad-monitor.gpp b/xpybar/config/xmonad-monitor.gpp
index df42701..92843bb 100644
--- a/xpybar/config/xmonad-monitor.gpp
+++ b/xpybar/config/xmonad-monitor.gpp
@@ -89,6 +89,8 @@ with open('/proc/cpuinfo', 'r') as f:
isvm = [line.replace('\n', ' ').replace('\t', ' ').split(':') for line in isvm if line]
isvm = any('hypervisor' in ':'.join(line[1:]).split(' ') for line in isvm if line[0].strip().startswith('flags'))
card1 = 'Ensoniq AudioPCI' if isvm else 'HDA Intel PCH'
+%%>elif test $hostname = hades; then
+card1 = 'HDA Intel PCH'
%%>else
card1 = 'HD-Audio Generic'
%%>fi
@@ -194,7 +196,7 @@ functions = [ [ myxmonad
#, myii
, None
, MyStat (lambda f : Clocked(f, 10))
-%%>if test ! "$hostname" = zenith; then
+%%>if test ! "$hostname" = zenith && test ! "$hostname" = north; then ## TODO how about east and hyperion?
, MyCGNegative()
%%>fi
, MyBrilliance(None)