Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
## Grimshot: a helper for screenshots within sway
## Requirements:
## - `grim`: screenshot utility for wayland
## - `slurp`: to select an area
## - `swaymsg`: to read properties of current window
## - `wl-copy`: clipboard utility
## - `jq`: json utility to parse swaymsg output
## - `notify-send`: to show notifications
#!/usr/bin/bash
menu1=" Fullscreen\n Area\n Window (sway / wayfire)\n Cancel"
selected1=$(echo -e $menu1 | wofi -W 15% --dmenu --line 4 --cache-file /dev/null -p "Wofi Screenshot" | awk '{print tolower ($2)}')
# shot_to_clip : fullscreen, area, & window.
shot_to_clip () {
grimshot-next save $1 | wl-copy
}
# Set default Xft(3) font
fontname "sans-serif:pixelsize=14:bold"
gap 30 6 6 6
borderwidth 3
color activeborder brown
color inactiveborder pastel
# Turn on sticky-group mode
sticky yes
# Any entry here is shown in the appli
@lidgnulinux
lidgnulinux / Reviewcrux.txt
Created October 2, 2022 00:01
Review crux.
#crux #source_based #distro
Halo,
Kebetulan sedang pengen mencoba distro yg tergolong "source based" dan dari beberapa distro yg ada kami mencoba distro Crux. Perangkat yg kami pakai adalah Laptop Asus Pro 36S.
Berikut ulasan singkatnya.
- Instaler dengan TUI dan CLI.
- Perlu melakukan kompilasi kernel sendiri.
- Durasi kompilasi kernel tergantung spesifikasi perangkat yg dipakai (untuk kami sekitar 20-30 menit).
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 6.0.0-rc7 Kernel Configuration
#
CONFIG_CC_VERSION_TEXT="gcc (Debian 12.2.0-3) 12.2.0"
CONFIG_CC_IS_GCC=y
CONFIG_GCC_VERSION=120200
CONFIG_CLANG_VERSION=0
CONFIG_AS_IS_GNU=y
CONFIG_AS_VERSION=23900
--- config.def.h.orig 2022-11-01 12:59:11.582373763 +0700
+++ config.def.h 2022-11-01 12:47:54.465483948 +0700
@@ -12,11 +12,12 @@
static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
static const Rule rules[] = {
- /* app_id title tags mask isfloating monitor */
+ /* app_id title tags mask isfloating monitor x y width height */
/* examples:
{ "Gimp", NULL, 0, 1, -1 },
<?xml version="1.0"?>
<!--
This file contains all supported config elements & attributes with
default values.
-->
<labwc_config>
<core>
/* This stylesheet is generated, DO NOT EDIT */
/* Copyright 2009, 2015 Red Hat, Inc.
*
* Portions adapted from Mx's data/style/default.css
* Copyright 2009 Intel Corporation
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU Lesser General Public License,
* version 2.1, as published by the Free Software Foundation.
*
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 6.1.0-rc6 Kernel Configuration
#
CONFIG_CC_VERSION_TEXT="gcc (Debian 12.2.0-9) 12.2.0"
CONFIG_CC_IS_GCC=y
CONFIG_GCC_VERSION=120200
CONFIG_CLANG_VERSION=0
CONFIG_AS_IS_GNU=y
CONFIG_AS_VERSION=23900
@lidgnulinux
lidgnulinux / toggle-desktop-sway
Created January 6, 2023 23:06
Toggle desktop for sway.
#!/usr/bin/bash
unminimize () {
swaymsg [app_id='.*'] focus
}
minimize () {