Skip to content

Instantly share code, notes, and snippets.

@kachie
kachie / nyxt.el
Created November 17, 2022 14:05 — forked from gregoryhugaerts/nyxt.el
some emacs nyxt commands
(defun emacs-with-nyxt-sly-connect (host port)
"Connect Sly to HOST and PORT ignoring version mismatches."
(sly-connect host port)
(sleep-for 1))
(defvar emacs-with-nyxt-sly-nyxt-delay 0.3)
(defun emacs-with-nyxt-start-and-connect-to-nyxt (&optional no-maximize)
"Start Nyxt with swank capabilities. Optionally skip window maximization with NO-MAXIMIZE."
(interactive)
(async-shell-command (format "nyxt -e \"(nyxt-user::start-slynk)\""))
;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Configuration Layers declaration.
You should not put any user code in this function besides modifying the variable
values."
(setq-default
;; Base distribution to use. This is a layer contained in the directory
! -*- coding: utf-8-unix -*-
URxvt.geometry: 84x27
URxvt.font: xft:monospace:pixelsize=14
URxvt.imFont: -*-medium-r-*-20-*
URxvt.preeditType: OverTheSpot
! URxvt.lineSpace: 8
URxvt.scrollBar: false
URxvt.foreground: snow
URxvt.background: #003322
-- -*- coding: utf-8-unix; mode: haskell -*-
-- $HOME/.xmobarrc
Config { font = "xft:Sans-8:bold"
, bgColor = "black"
, fgColor = "gray"
, position = TopW L 90
, lowerOnStart = True
, commands = [ Run Weather "RJBB" ["-t","関空: <tempC>℃","-L","18","-H","25","--normal","green","--high","red","--low","lightblue"] 36000
, Run Network "eth0" ["-L","0","-H","32","--normal","green","--high","red"] 10
@kachie
kachie / xmonad.hs
Created January 28, 2011 16:26
xomonad.hs
--
-- xmonad example config file.
--
-- A template showing all available configuration hooks,
-- and how to override the defaults in your own xmonad.hs conf file.
--
-- Normally, you'd only override those defaults you care about.
--
import XMonad
#!/bin/bash
# -*- coding: utf-8-unix; mode: sh-mode -*-
xmodmap $HOME/.xmodmaprc
xrdb -merge $HOME/.Xresources
gnome-volume-control-applet &
$HOME/.dropbox-dist/dropboxd &
gnome-terminal &
trayer --edge top --align right --SetDockType true --SetPartialStrut true --expand true --width 10 --height 18 --transparent true --tint 0x000000 &