Skip to content

Instantly share code, notes, and snippets.

View Dobbie03's full-sized avatar
💭
\m/ Metal

Matt Dobbie03

💭
\m/ Metal
  • New Zealand
View GitHub Profile
<application class="Work">
<position force="no">
<monitor>1</monitor>
</position>
<fullscreen>yes</fullscreen>
</application>
<position force="no">
<x>-28</x>
<y>-26</y>
</position>
#!/usr/bin/env bash
# Daemon tool to mount/unmount drives
# Written by Nathaniel Maia, December 2017
# List of UUIDs
DRIVES=(
DEBC8E9CBC8E6EB9
)
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a device; this may
# be used with UUID= as a more robust way to name devices that works even if
# disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
UUID=deb6263e-55d9-4b33-9eb4-25d96b23158d / ext4 defaults,noatime,discard 0 1
UUID=f50f1d01-cc71-4d72-acb6-f3d7d70c2e30 /home ext4 defaults,noatime 0 2
@Dobbie03
Dobbie03 / scr
Created January 13, 2018 21:12
#!/usr/bin/env bash
#
# Take a screenshot and display a notification.
#
# Created by Dylan Araps.
#
# Depends on: imagemagick, libnotify (patched with id support)
# Screenshot directory
scr_dir="${HOME}/Screenshots/ArchLabs"
ape.write_apev2 1
artwork.cache.period 0
artwork.cache_reset_time 1492394363
artwork.enable_albumartorg 1
artwork.enable_embedded 0
artwork.enable_lastfm 1
artwork.enable_localfolder 1
artwork.enable_musicbrainz 1
artwork.enable_wos 0
artwork.filemask *cover*.jpg;*front*.jpg;*folder*.jpg;*cover*.png;*front*.png;*folder*.png
#!/usr/bin/env bash
#
# Take a screenshot and display a notification.
#
# Created by Dylan Araps.
#
# Depends on: imagemagick, libnotify (patched with id support)
# Screenshot directory
scr_dir="${HOME}/Screenshots/ArchLabs"
#---- Generated by tint2conf adf9 ----
# See https://gitlab.com/o9000/tint2/wikis/Configure for
# full documentation of the configuration options.
#-------------------------------------
# Gradients
# Gradient 1
gradient = vertical
start_color = #000000 0
end_color = #000000 0
[module/wired-network]
type = custom/script
;label-background = ${colors.background}
exec = ~/.config/polybar/network.sh
click-left = networkmanager_dmenu
click-right = networkmanager_dmenu
label-padding = 1
interval = 1
tail = true
#!/usr/bin/env bash
online=$(ip addr | grep "state UP" | cut -d ":" -f2)
#connected=""
#offline=""
connected=""
offline=""
if [[ "$online" ]]; then
echo " %{F#23EFDC}${connected} "
[module/eth]
type = internal/network
interface = enp2s0
interval = 3.0
format-connected = <label-connected>
format-connected-prefix = "  "
format-connected-prefix-foreground = ${colors.foreground}
format-disconnected = <label-disconnected>
label-connected = %{A1:networkmanager_dmenu:}%downspeed%%{A}
label-connected-foreground = ${colors.foreground}