Skip to content

Instantly share code, notes, and snippets.

View simonfontana's full-sized avatar

Simon Fontana Oscarsson simonfontana

  • Ericsson
  • Gothenburg, Sweden
View GitHub Profile
# Setup for i3 on laptop (1920x1080) + ultrawide (3440x1440)
# Splits ultrawide into 2 virtual 1720x1440 monitors, laptop on left
xrandr --delmonitor DP-1-left; xrandr --delmonitor DP-1-right; \
xrandr --setmonitor DP-1-left 1720/800x1440/340+1920+0 DP-1; \
xrandr --setmonitor DP-1-right 1720/800x1440/340+3640+0 none
# After running, refresh i3 with Mod+Shift+R
@simonfontana
simonfontana / .golangci.yaml
Created September 29, 2023 09:45
golangci example
# config file documentation: https://golangci-lint.run/usage/configuration/
run:
concurrency: 4
tests: true
timeout: 1m
output:
# colored-line-number|line-number|json|tab|checkstyle|code-climate
@simonfontana
simonfontana / wakelock.service
Last active March 23, 2022 09:18
Lock screen after suspend with i3lock and systemd
# file /etc/systemd/system/wakelock.service
[Unit]
Description=Lock the screen on resume from suspend
Before=sleep.target suspend.target
[Service]
User=%i
Type=forking
Environment=DISPLAY=":1"

Use Xbox Wireless Controller on Ubuntu

Install blueman.

sudo apt install blueman

Install sysfsutils.