Skip to content

Instantly share code, notes, and snippets.

View Walcriz's full-sized avatar
💬

Walcriz Walcriz

💬
View GitHub Profile
[Unit]
Description=PolicyKit Authentication Agent for KDE
After=graphical-session.target
[Service]
ExecStart=/usr/lib/polkit-kde-authentication-agent-1
Restart=on-failure
[Install]
WantedBy=default.target
######
# Script to attach an already running xdisplay when connected over ssh. (Only works when using sddm)
#
# To attach in your shell of choice
# > source attach_display.sh
######
# Find authority at /run/sddm/auth_#####
AUTHORITY=$(sudo find /run/sddm/ -name "xauth_*" | head -n 1)
@Walcriz
Walcriz / unified-tab-adress-bar-vivaldi.css
Last active December 21, 2024 22:50
Merge tab bar and adress bar in vivaldi
/*
Modified version of https://forum.vivaldi.net/topic/93537/merge-toolbar-and-tab-bar-into-single-line-bar/4
*/
#browser:not(.tabs-top) .vivaldi {
height: 30px;
padding: 0;
}
.toolbar-mainbar .toolbar-extensions>.button-toolbar>button {
@Walcriz
Walcriz / vscode.lua
Last active October 14, 2023 20:51
Visual Studio Code Neovim configuration for when I need to use Live Share
--#####################################
-- VSCode Neovim Config for when I am forced to use VSCode
--
-- Walcriz
--#####################################
--------------
-- SETUP
--------------

Keybase proof

I hereby claim:

  • I am Walcriz on github.
  • I am walcriz (https://keybase.io/walcriz) on keybase.
  • I have a public key whose fingerprint is AF15 64FE B4F0 B8E3 0EBD E3A6 A763 3872 B1DA CA01

To claim this, I am signing this object:

@Walcriz
Walcriz / .ideavimrc
Last active April 20, 2024 14:47
Ideavim configuration
" General settings
set scrolloff=15
set belloff=all
set clipboard+=unnamedplus
set ignorecase
set smartcase
set incsearch
" Built in plugins
@Walcriz
Walcriz / cronhelper.sh
Created February 27, 2023 11:47
Simple utility for cronjobs. Install via: `chmod +x cronhelper.sh && sudo ln cronhelper.sh /usr/bin/cronhelper`
#!/bin/sh
# See: https://unix.stackexchange.com/questions/363376/how-do-i-add-remove-cron-jobs-by-script
usage () {
cat <<USAGE_END
Usage:
$0 add "job-spec"
$0 list
$0 remove "job-spec-lineno"
@Walcriz
Walcriz / .aminimalcommand
Last active August 6, 2023 13:25
Minimal .vimrc's:
:execute "bufdo set relativenumber | set number | set encoding=utf-8 | set ruler | set confirm | set fileencoding=utf-8 | set ignorecase | set smartcase | set incsearch | set paste | set smartindent | set tabstop=2 | set shiftwidth=2 | set nobackup | set formatoptions=tcrqn | set clipboard^=unnamed,unnamedplus | set hidden | set scrolloff=12 | inoremap <C-H> <C-\\><C-o>db"
@Walcriz
Walcriz / LS_COLORS
Created September 12, 2022 08:29
Personal LS colors
mi=0;38;2;0;0;0;48;2;255;92;87:pi=0;38;2;0;0;0;48;2;87;199;255:*~=0;38;2;102;102;102:rs=0:mh=0:do=0;38;2;0;0;0;48;2;255;106;193:ow=0:so=0;38;2;0;0;0;48;2;255;106;193:fi=0:ca=0:tw=0:ex=1;38;2;255;92;87:ln=0;38;2;255;106;193:bd=0;38;2;154;237;254;48;2;51;51;51:or=0;38;2;0;0;0;48;2;255;92;87:cd=0;38;2;255;106;193;48;2;51;51;51:sg=0:su=0:no=0:di=0;38;2;87;199;255:st=0:*.a=1;38;2;255;92;87:*.c=0;38;2;90;247;142:*.z=4;38;2;154;237;254:*.o=0;38;2;102;102;102:*.d=0;38;2;90;247;142:*.m=0;38;2;90;247;142:*.t=0;38;2;90;247;142:*.h=0;38;2;90;247;142:*.r=0;38;2;90;247;142:*.p=0;38;2;90;247;142:*.ts=0;38;2;90;247;142:*.cc=0;38;2;90;247;142:*.ko=1;38;2;255;92;87:*.ll=0;38;2;90;247;142:*.kt=0;38;2;90;247;142:*.cp=0;38;2;90;247;142:*.rm=0;38;2;255;180;223:*.cs=0;38;2;90;247;142:*css=0;38;2;90;247;142:*.nb=0;38;2;90;247;142:*.ps=0;38;2;255;92;87:*.xz=4;38;2;154;237;254:*.gv=0;38;2;90;247;142:*.bc=0;38;2;102;102;102:*.vb=0;38;2;90;247;142:*.lo=0;38;2;102;102;102:*.jl=0;38;2;90;247;142:*.pp=0;38;2;90;247;142:*.di=0;38;2;90;247;1
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac