This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| swaybg -i ~/.wallpapers/ArchLinuxNord.png & | |
| # replace sed first argument for your own resolution i.e 1366x768 to widthxHeigt of your device | |
| urlpath=$( \ | |
| curl "https://www.bing.com/HPImageArchive.aspx?format=rss&idx=0&n=1&mkt=en-US" \ | |
| | xmllint --xpath "/rss/channel/item/link/text()" - \ | |
| | sed 's/1366x768/1920x1080/g' \ | |
| ) | |
| curl "https://www.bing.com$urlpath" -o ~/.wallpapers/wall.jpg | |
| killall swaybg |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/fish | |
| # Kill swaybg if active | |
| if pgrep swaybg > /dev/null | |
| killall swaybg | |
| end | |
| # remove the file else wget gives warning | |
| rm wall | |
| # get json of the subreddit | |
| # use jq to get the list of urls | |
| # egrep to only select jpeg|jpg files |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.Scanner; | |
| public class Main { | |
| public static void main(String[] args) { | |
| Scanner sc = new Scanner(System.in); | |
| Game game = new Game(); | |
| game.playGame(); | |
| sc.close(); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl -fsSL -o ~/.termux/font.ttf https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Regular.ttf | |
| termux-reload-settings |