46 lines
4.6 KiB
HTML
Executable File
46 lines
4.6 KiB
HTML
Executable File
<meta name="fediverse:creator" content="@DeaDvey@mastodon.social">
|
|
<!DOCTYPE html>
|
|
<head>
|
|
<meta charset="UTF-8"/>
|
|
<title>DeaDveys Domain</title>
|
|
<link rel="icon" href="/images/favicon.png">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
</head>
|
|
<div id="header"><head>
|
|
<style>
|
|
@media (prefers-color-scheme: dark) {
|
|
body {
|
|
background-color: black;
|
|
color: white;
|
|
}
|
|
a:visited {
|
|
color: violet;
|
|
}
|
|
}
|
|
</style>WELCOME TO DEADVEY'S DOMAIN!!!<br/>
|
|
<a href="/" onclick="history.back()"><img src="/images/return.png" width="20" />Return</a> / <a href="/">Home page</a> / <a href="/blogs/index.html">Blogs</a> <a href="/blogs/feed.xml"><img width="16" src="/images/feedIcon.png" class="feedicon" alt="Feed image"/></a> / <a href="/board/index.html">Boards</a><hr/></div><!--header-->
|
|
<div id="main">
|
|
<body>
|
|
<div id="main">
|
|
<h3 class="blog-date">a857 15d/7e8</h3>
|
|
<h1 class="blog-title">Waybar theme switcher for home manager</h1>
|
|
<p class="blog-content">I made this basic script for changing my home manager theme and mode settings:<br><div class="indent code">echo theme = $1<br>echo mode = $2<br>sed -i "s/THEME\ =\ ".*";/THEME\ =\ \"${1}\";/" $HOME/.config/home-manager/home.nix<br>sed -i "s/MODE\ =\ ".*";/MODE\ =\ \"${2}\";/" $HOME/.config/home-manager/home.nix<br>home-manager switch</div> which I can run like <div class="code">./theme-switcher.sh gruvbox dark</div> then it writes the theme to my home manager configuration and reloads home manager. I can then have several waybar modules like such:<br><div class="code indent"><br>"custom/gruvbox" = {<br> on-click = "$HOME/scripts/theme-switcher.sh gruvbox ${MODE}";<br> format = "";<br>};<br></div><br>Which I can easily click to change themes<br>Pretty basic, but I thought I'd share, also it takes about 10 seconds to change theme so it's not quite instant gratification.<br/>Fly You High - DeaDvey</p>
|
|
<div class="blog-images">
|
|
<img class="blog-image" height="200" src="/images/rice.png" alt="rice.png" />
|
|
</div><br/>
|
|
<sub><i><small>ricing,nixos,theme changer,guide,bash scripting,nix</small></i></sub><hr/>
|
|
<h3>Comments section:</h3><br/>
|
|
<form action="/blog/submit-comment" id="commentForm" method="post">
|
|
<input name="name" class="form-control" id="name" placeholder="Enter your name"><br/>
|
|
<textarea height="40px" name="comment" class="form-control input-comment" id="comment" placeholder="Enter your Comment..."></textarea>
|
|
<input type="hidden" name="pageID" value="77">
|
|
<button type="submit">Submit</button>
|
|
</form>
|
|
|
|
<div class="77" id="comments"></div></div><p class="previous"><a href="76.html"><-- Previous</a></p><p class="next"><a href="78.html">Next --></a></p>
|
|
<div id="links">
|
|
</div><script src="/blogs/comments.js"></script><script src="/blogs/displayComments.js"></script></body>
|
|
</div>
|
|
<div id="footer"><hr/><ul> Internal pages: <li><a href="/experiments" >Experiments <img height="30" src="/images/experience-green-liquid.gif" /></a></li> <li><a href="/isthistheyearofthelinuxdesktop" >Is this the year of the Linux Desktop? <img src="/images/penguin-dance-pengu.gif" height="20" alt="penguin dancing" /></a></li> <li><a href="/theunderland" >theunderland wiki <img src="/images/flashlight.gif" alt="torch scanning" height="30" class="rotate" /></a></li><li><a href="/maths">Maths Quiz</a> </li> <li><a href="http://deadvey.com:3000">Invidious <img src="/images/invidious.png" height="15"/></a></li> <li><a href="http://deadvey.com:8096">Jellyfin <img src="/images/jellyfin.png" height="15"/></a></li><a href="http://deadvey.com:7993">Monkeytype</a> <img src="/images/monkeytype.png" height="15"></li><li><a href="/search">Search blogs</a></li><br/><br/>External sites: <li><a href="https://git.javalsai.dynv6.net/deadvey" >Gitea</a></li><li><a href="https://javalsai.dynv6.net">Javlsai</a></li><li><a rel="me" href="https://mastodon.social/@DeaDvey">Mastodon</a></li> </ul><br/> <small width="300px">© DeaDvey 2023 - 2024<br/>This work is licensed under the terms of the <a href="/LICENSE">GNU General Public License, version 3.0</a>. You are free to copy, distribute, and modify this work under the terms of the <a href="/LICENSE">GPL 3.0 License</a>. Please see the full license text for details.</small></div><!--footer-->
|
|
</body>
|
|
</html> |