10 paź 2014

tmux.conf

set-option -g prefix `
unbind-key C-b

bind-key F11 set-option -g prefix C-a
bind-key F12 set-option -g prefix `

set-option -g mouse-select-pane off
set-option -g status-keys vi
set-option -g bell-action any
set-option -g set-titles on
set-option -g set-titles-string '#H:#S.#I.#P #W #T'
set-option -g visual-bell off

set-option -g message-fg black
set-option -g message-bg green


set-option -g status-justify left
set-option -g status-bg black
set-option -g status-fg white
set-option -g status-left-length 40
set-option -g status-right-length 80


set-option -g pane-active-border-fg green
set-option -g pane-active-border-bg black
set-option -g pane-border-fg white
set-option -g pane-border-bg black

setw -g window-status-bg black
setw -g window-status-current-fg green
setw -g window-status-bell-attr default
setw -g window-status-bell-fg red
setw -g window-status-content-attr default
setw -g window-status-content-fg yellow
setw -g window-status-activity-attr default
setw -g window-status-activity-fg yellow


set -g history-limit 4096
bind r source-file ~/.tmux.conf

12 sie 2014

przypominacz z kalendarzem czyli wyrd + remind


--
wschody i zachody słońca + pełnia księżyca

; show sunrise/sunset
SET $LongDeg 22
SET $LongMin 3
SET $LongSec 12
SET $LatDeg 50
SET $LatMin 34
SET $LatSec 58
MSG sunrise at [sunrise(trigdate())], sunset at [sunset(trigdate())], next full moon at [moontime(2)] on [moondate(2)]%



Powiadomienia w X-ach:

w .fluxbox/startup

remind -z -k'xmessage -title "przypominacz" %s &' ~/.reminders &


Uwaga!
U mnie nie działało poprawnie wyrd gdy wiadomości zawierały polskie litery z 'ogonkami'

24 lip 2014

ekg2

co potrzeba do zrobienia?



make
gcc
libncurses5-dev
libperl-dev python-dev
libxosd-dev
libgpgme11-dev
libgsm1-dev
libsqlite3-dev
libgadu-dev
libexpat-dev
aspell-dev aspell-pl
libidn11-dev
libgif-dev libjpeg8-dev
automake
gnutls-dev

Viewnior - przeglądarka plików graficznych

po prostu:

​$ wget https://github.com/xsisqox/Viewnior/archive/viewnior-1.4.tar.gz
$ tar zxvf viewnior-1.4.tar.gz
$ cd Viewnior-viewnior-1.4
$ ./configure
$ make
$ sudo make install​


Przeglądarka otwiera animowane pliki gif! ;)

16 lip 2014

NO_PUBKEY

rozwiązanie:

#!/bin/sh

gpg --keyserver pgpkeys.mit.edu --recv-keys $1
gpg --armor --export $1 | apt-key add -

Thunar i brak dostępu do montowania dysków USB i lokalnych partycji

# vi /usr/share/polkit-1/actions/org.freedesktop.udisks.policy


  <action id="org.freedesktop.udisks.filesystem-mount">
...
      <allow_any>yes</allow_any>
      <allow_inactive>no</allow_inactive>
      <allow_active>yes</allow_active>


...


<action id="org.freedesktop.udisks.filesystem-mount-system-internal">
...
      <allow_any>yes</allow_any>
      <allow_inactive>no</allow_inactive>
      <allow_active>yes</allow_active>


...


<action id="org.freedesktop.udisks.drive-eject">
...
      <allow_any>yes</allow_any>
      <allow_inactive>no</allow_inactive>
      <allow_active>yes</allow_active>