nix build -L .\#checks.x86_64-linux.test.driverInteractive
(or justnix run ...
and skip 2.)./result/bin/nixos-test-driver
start_all()
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set -g default-terminal "tmux-256color" | |
set -sg escape-time 0 | |
# ctrl-b to switch between windows | |
bind-key C-b last-window | |
# nested tmux sessions | |
bind-key a send-prefix | |
setw -g aggressive-resize on |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" ebuild | |
augroup ebuild_vimrc | |
autocmd BufRead,BufNewFile *.ebuild set filetype=ebuild | |
" plugin | |
autocmd FileType ebuild | |
\ set statusline+=%#warningmsg# | | |
\ set statusline+=%{SyntasticStatuslineFlag()} | | |
\ set statusline+=%* | | |
\ let g:syntastic_sh_shellcheck_args = '-s bash -e "SC2034,SC2016,SC2191,SC2037"' | | |
\ let g:syntastic_always_populate_loc_list = 1 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Records the screen and captures audio from running applications and the sounds IRL through microphone | |
# -i :0.0+0... may be used to specify the monitor that is being captured | |
# -f pulse -i ... can be taken from output of pactl list | |
ffmpeg -f x11grab \ | |
-r 25 \ | |
-s 1920x1080 \ | |
-i :0.0+0,1080 \ | |
-f pulse -i alsa_output.pci-0000_00_1b.0.analog-stereo.monitor \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# A _very_ primitive telegram notification mechanism | |
# If you want something more sophisticated - check https://github.com/vysheng/tg | |
if [ -z "${1}" ] | |
then | |
message_text="Job's done!" | |
else | |
message_text=${1} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# This script allows calling notify-send as root for it to appear on ${USERNAME}'s desktop | |
sudo -u ${USERNAME} DISPLAY=:0 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/${UID}/bus notify-send $@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# mode can be: | |
# prtsc = do full screenshot of current screen, save to folder | |
# ctrl+prtsc = area-grab, to clipboard | |
# ctrl+shift+prtscr = area-grab, save | |
# win+prtsc = all screens, save | |
mode=$1 | |
save_folder=$2 | |
img_path=${save_folder}/$(date +"%b_%d_%H-%M-%S").png | |
maim_command="maim --hidecursor" |
Skype for Linux comes packaged as Electron application. The code describing client behavior is in file app.asar
. This file can be edited after emerging to hide the "React" button, which can be done by calling an ebuild hook
- Create
/etc/portage/bashrc
with content from below - Create
/etc/portage/hooks/net-im/skypeforlinux/post-install
with content from below emerge skypeforlinux
The hook logs its actions and saves a backup. In case skype does not start after this - replace app.asar
with the backed up version.