This file contains 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
-- 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 |
This file contains 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 | |
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 |
This file contains 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/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 |
This file contains 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
#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" |
This file contains 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
-- 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 |
This file contains 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
<!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 |