mirror of
https://github.com/elkowar/dots-of-war.git
synced 2024-12-25 13:42:23 +00:00
asdf
This commit is contained in:
parent
867c6ffb6c
commit
7d6343e415
8 changed files with 42 additions and 15 deletions
|
@ -1,4 +1,10 @@
|
||||||
{
|
{
|
||||||
"optOut": false,
|
"optOut": false,
|
||||||
"lastUpdateCheck": 1607799387166
|
"lastUpdateCheck": 1609704527220,
|
||||||
|
"update": {
|
||||||
|
"latest": "6.14.10",
|
||||||
|
"current": "6.14.9",
|
||||||
|
"type": "patch",
|
||||||
|
"name": "npm"
|
||||||
|
}
|
||||||
}
|
}
|
|
@ -85,3 +85,11 @@ scale trough {
|
||||||
.fuck {
|
.fuck {
|
||||||
border-radius: 100px;
|
border-radius: 100px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.whatever {
|
||||||
|
border: 2px solid green;
|
||||||
|
}
|
||||||
|
|
||||||
|
.lol {
|
||||||
|
color: red;
|
||||||
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<eww>
|
<eww>
|
||||||
<definitions>
|
<definitions>
|
||||||
|
|
||||||
<def name="test">
|
<def name="test">
|
||||||
<box class="{{some_var}}" space-evenly="false" spacing="10">
|
<box class="{{some_var}}" space-evenly="false" spacing="10">
|
||||||
testing {{shit}}
|
testing {{shit}}
|
||||||
<scale value="50" orientation="v" min="0" max="100" flipped="true" />
|
<scale value="50" orientation="v" min="0" max="100" flipped="true" />
|
||||||
|
@ -11,18 +11,19 @@
|
||||||
<calendar show-heading="false" show-day-names="false" day="2" onclick="notify-send 'asdf' '{}'" />
|
<calendar show-heading="false" show-day-names="false" day="2" onclick="notify-send 'asdf' '{}'" />
|
||||||
notify-send 'ree' 'this is {{shit}}'
|
notify-send 'ree' 'this is {{shit}}'
|
||||||
<multiple text="{{shit}}" />
|
<multiple text="{{shit}}" />
|
||||||
|
|
||||||
</box>
|
</box>
|
||||||
</def>
|
</def>
|
||||||
|
|
||||||
<def name="multiple">
|
<def name="multiple">
|
||||||
<box orientation="v" space-evenly="false">
|
<box orientation="v" space-evenly="false">
|
||||||
<box>{{text}}</box>
|
<box>{{text}}test</box>
|
||||||
<box>{{text}}</box>
|
<box class="whatever lol">{{text}}</box>
|
||||||
<box>{{text}}</box>
|
<box style="color: blue;">{{text}}</box>
|
||||||
<box>{{text}}</box>
|
<box>{{text}}</box>
|
||||||
<box>{{text}}</box>
|
<box>{{text}}</box>
|
||||||
|
|
||||||
<label text="reeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" limit-width="5" wrap="true" />
|
<label onscroll="notify-send '{{shit}}' {}" text="reeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" limit-width="5" wrap="true" />
|
||||||
<input onchange="notify-send 'ree' '{}'" />
|
<input onchange="notify-send 'ree' '{}'" />
|
||||||
{{date}}
|
{{date}}
|
||||||
</box>
|
</box>
|
||||||
|
@ -76,6 +77,7 @@
|
||||||
</var>
|
</var>
|
||||||
<var name="some_var"></var>
|
<var name="some_var"></var>
|
||||||
|
|
||||||
|
|
||||||
<var name="song-image"></var>
|
<var name="song-image"></var>
|
||||||
<var name="song-image-visible">true</var>
|
<var name="song-image-visible">true</var>
|
||||||
<var name="song-name"></var>
|
<var name="song-name"></var>
|
||||||
|
@ -93,6 +95,7 @@
|
||||||
date
|
date
|
||||||
done
|
done
|
||||||
</script-var>
|
</script-var>
|
||||||
|
|
||||||
<!--<script-var name="xyz">-->
|
<!--<script-var name="xyz">-->
|
||||||
<!--tail -F /home/leon/test | while read -r _; do notify-send "Hi"; done-->
|
<!--tail -F /home/leon/test | while read -r _; do notify-send "Hi"; done-->
|
||||||
<!--</script-var>-->
|
<!--</script-var>-->
|
||||||
|
@ -104,14 +107,14 @@
|
||||||
|
|
||||||
|
|
||||||
<windows>
|
<windows>
|
||||||
<window screen="0" name="main_window" stacking="fg">
|
<window screen="DisplayPort-0" name="mw" stacking="fg" focusable="false">
|
||||||
<!--<struts top="250" top_end_x="1920"/>-->
|
<!--<struts top="250" top_end_x="1920"/>-->
|
||||||
<geometry anchor="top center"/>
|
<geometry anchor="center" width="200px" height="200px" x="0px" y="0px"/>
|
||||||
<widget>
|
<widget>
|
||||||
<test ree="test" />
|
<test ree="test" />
|
||||||
</widget>
|
</widget>
|
||||||
</window>
|
</window>
|
||||||
<window screen="0" name="main_window2" stacking="fg">
|
<window screen="0" name="mw2" stacking="fg">
|
||||||
<geometry anchor="bottom right"/>
|
<geometry anchor="bottom right"/>
|
||||||
<widget>
|
<widget>
|
||||||
<test ree="test" />
|
<test ree="test" />
|
||||||
|
|
|
@ -7,7 +7,7 @@ echo "---" | tee -a /tmp/polybar1.log /tmp/polybar2.log
|
||||||
outputs=$(xrandr --query | grep " connected" | cut -d" " -f1)
|
outputs=$(xrandr --query | grep " connected" | cut -d" " -f1)
|
||||||
tray_output=HDMI-A-0
|
tray_output=HDMI-A-0
|
||||||
for m in $outputs; do
|
for m in $outputs; do
|
||||||
if [[ $m != "DisplayPort-1" ]]; then
|
if [[ $m != "DP-1" ]]; then
|
||||||
tray_output=$m
|
tray_output=$m
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
|
@ -601,16 +601,23 @@ activateWindowEventHook (ClientMessageEvent { ev_message_type = messageType, ev_
|
||||||
activateWindowAtom <- getAtom "_NET_ACTIVE_WINDOW"
|
activateWindowAtom <- getAtom "_NET_ACTIVE_WINDOW"
|
||||||
|
|
||||||
when (messageType == activateWindowAtom) $
|
when (messageType == activateWindowAtom) $
|
||||||
if window `elem` W.allWindows ws
|
if window `elem` (W.integrate' $ W.stack $ W.workspace $ W.current ws)
|
||||||
then windows (W.focusWindow window)
|
then windows (W.focusWindow window)
|
||||||
else do
|
else do
|
||||||
shouldRaise <- runQuery (className =? "discord" <||> className =? "web.whatsapp.com") window
|
shouldRaise <- runQuery (className =? "discord" <||> className =? "web.whatsapp.com") window
|
||||||
if shouldRaise
|
if shouldRaise
|
||||||
then windows (W.shiftWin (W.currentTag ws) window)
|
then windows (W.shiftWin (W.currentTag ws) window)
|
||||||
else windows (IS.focusWindow' window)
|
else windows (focusWindow' window)
|
||||||
return $ All True
|
return $ All True
|
||||||
activateWindowEventHook _ = return $ All True
|
activateWindowEventHook _ = return $ All True
|
||||||
|
|
||||||
|
-- | Focus a window, switching workspace on the correct Xinerama screen if neccessary.
|
||||||
|
focusWindow' :: Window -> WindowSet -> WindowSet
|
||||||
|
focusWindow' window ws
|
||||||
|
| Just window == W.peek ws = ws
|
||||||
|
| otherwise = case W.findTag window ws of
|
||||||
|
Just tag -> IS.focusScreen (IS.unmarshallS tag) ws
|
||||||
|
Nothing -> ws
|
||||||
|
|
||||||
|
|
||||||
-- | Fixes fullscreen behaviour of chromium based apps by quickly applying and undoing a resize.
|
-- | Fixes fullscreen behaviour of chromium based apps by quickly applying and undoing a resize.
|
||||||
|
|
|
@ -38,6 +38,8 @@ in
|
||||||
gc = "git commit -m ";
|
gc = "git commit -m ";
|
||||||
gp = "git push";
|
gp = "git push";
|
||||||
gst = "git status";
|
gst = "git status";
|
||||||
|
g = "git fuzzy";
|
||||||
|
cr = "cargo run --";
|
||||||
};
|
};
|
||||||
|
|
||||||
home.packages = with pkgs; lib.mkMerge [
|
home.packages = with pkgs; lib.mkMerge [
|
||||||
|
|
|
@ -26,6 +26,7 @@ in
|
||||||
espanso
|
espanso
|
||||||
barrier
|
barrier
|
||||||
#hyper-haskell
|
#hyper-haskell
|
||||||
|
font-manager
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -20,9 +20,9 @@ git_status() {
|
||||||
local BRANCH=$(git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/*\s*\(.*\)/\1/')
|
local BRANCH=$(git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/*\s*\(.*\)/\1/')
|
||||||
|
|
||||||
if [ ! -z $BRANCH ]; then
|
if [ ! -z $BRANCH ]; then
|
||||||
echo -n "(%F{$__bright_cyan}$BRANCH"
|
echo -n "(%F{$__bright_cyan}$BRANCH%F{$__bright_white}"
|
||||||
[ ! -z "$(git status --short)" ] && echo -n "%F{$__bright_white}*%f"
|
[ ! -z "$(git status --short)" ] && echo -n "*"
|
||||||
echo -n ")"
|
echo -n ")%f"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue