Skip to content

Instantly share code, notes, and snippets.

View appuchias's full-sized avatar
💻
Maybe programming

Appuchia appuchias

💻
Maybe programming
View GitHub Profile
@appuchias
appuchias / rc.lua
Last active June 25, 2022 23:03
AwesomeWM hotkey to move client to next/prev tag
-- Original post: https://www.reddit.com/r/awesomewm/comments/7cfef6/comment/dt0c0c3/?utm_source=share&utm_medium=web2x&context=3
-- This should be included in globalkeys (or the variable used in root.keys(variable))
-- Win+Alt+Left/Right: move client to prev/next tag and switch to it
awful.key({ modkey, "Mod1" }, "Left",
function ()
-- get current tag
local t = client.focus and client.focus.first_tag or nil
if t == nil then
@appuchias
appuchias / iDRAC6.sh
Last active January 14, 2024 22:19
iDRAC6 Virtual Console launcher from JNLP file (Tested in Arch)
#!/bin/sh
sudo archlinux-java set java-8-openjdk/jre
echo "Connecting to iDRAC6"
mv ~/Downloads/viewer.jnlp /tmp/viewer.jnlp
javaws /tmp/viewer.jnlp >> /var/log/iDRAC6.log 2>&1
@appuchias
appuchias / lock.sh
Last active June 29, 2022 17:44
Blurred screen locking using i3lock/betterlockscreen.
#!/usr/bin/sh
# This script enables a lock screen for a dual monitor setup with a blurred background.
# It usually takes 3 seconds to render blur and lock the screen.
# scrot /tmp/sshot_src.png
flameshot full -p /tmp/sshot.png
# convert /tmp/sshot_src.png -blur 0x9 /tmp/sshot.png
# rm /tmp/sshot_src.png
@appuchias
appuchias / btop-tomorrow-night.theme
Last active June 28, 2022 18:26
Tomorrow Night theme for btop
#Nord theme but using the Tomorrow Night palette
#by Appuchia <contact@appu.ltd>
# Place this in ~/.config/btop/themes and choose it from btop config (pressing ESC)
# Main background, empty for terminal default, need to be empty if you want transparent background
theme[main_bg]="#1d1f21"
# Main text color
theme[main_fg]="#c5c8c6"
@appuchias
appuchias / center-awesome-floating.lua
Created June 30, 2022 01:31
Center AwesomeWM floating windows when created and toggled.
-- This file includes both changes that need to be made, but they likely won't be placed like this in your files.
-- You will need to find the place to include those lines. You can ask me if you can't figure it out.
-- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- Key to toggle between floating and tiled
clientkeys = gears.table.join( -- Find by this line
awful.key({modkey, "Control"}, "space", function(c) -- Center and raise floating windows if there is more than one
awful.client.floating.toggle(c)
local num_tiled_clients = 0
@appuchias
appuchias / index.html
Created May 20, 2024 23:58
Coordinates JS API base sample file
<!DOCTYPE html>
<html lang="en">
<head>
<title>Geolocation API</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script>
// Check if Geolocation is supported
if ("geolocation" in navigator) {
// Request the user's permission to access their location