{ "version": "https://jsonfeed.org/version/1.1", "user_comment": "This feed allows you to read the posts from this site in any feed reader that supports the JSON Feed format. To add this feed to your reader, copy the following URL -- https://matoken.org/blog/tag/byobu/feed/json/ -- and add it your reader.", "home_page_url": "https://matoken.org/blog/tag/byobu/", "feed_url": "https://matoken.org/blog/tag/byobu/feed/json/", "language": "ja", "title": "byobu – matoken's blog", "description": "Is there no plan B?", "icon": "https://matoken.org/blog/wp-content/uploads/2025/03/cropped-1865f695c4eecc844385acef2f078255036adccd42c254580ea3844543ab56d9.jpeg", "items": [ { "id": "http://matoken.org/blog/?p=2867", "url": "https://matoken.org/blog/2020/10/10/disable-function-keys-in-byobu-tmux/", "title": "Byobu tmux\u3067\u30d5\u30a1\u30f3\u30af\u30b7\u30e7\u30f3\u30ad\u30fc\u3092\u7121\u52b9\u306b\u3059\u308b", "content_html": "
Ctrl+b shift + F12 \u3067\u30c8\u30eb\u30b0
~/.byobu/keybindings.tmux \u306e1\u884c\u76ee\u306b
\nsource /usr/share/byobu/keybindings/f-keys.tmux.disable \u3092\u8ffd\u8a18\uff0e
Byobu tmux\u3092\u8d77\u52d5\u3057\u76f4\u3059\u304b\uff0cCtrl+b : :source-file ~/.byobu/keybindings.tmux \u3067\u53cd\u6620\u3059\u308b\uff0e
Byobu GNU screen\u306e\u5834\u5408\u306f\u3053\u3061\u3089
\n$ dpkg-query -W byobu tmux\nbyobu 5.133-1\ntmux 3.1b-1\n$ lsb_release -dr\nDescription: Debian GNU/Linux bullseye/sid\nRelease: unstable\n$ uname -m\nx86_64\n
\u73fe\u5728\u30bf\u30fc\u30df\u30ca\u30eb\u30de\u30eb\u30c1\u30d7\u30ec\u30af\u30b5\u306f Byobu \u7d4c\u7531\u3067 GNU screen \u3068 tmux \u3092\u74b0\u5883\u306b\u3088\u308a\u4f75\u7528\u3057\u3066\u3044\u307e\u3059\uff0eGNU screen \u3067\u306f\u753b\u9762\u30ed\u30c3\u30af\u306e\u8a2d\u5b9a\u3092\u3057\u3066\u3044\u305f\u306e\u3067\u3059\u304ctmux \u306f\u8a2d\u5b9a\u3057\u3066\u3044\u306a\u304b\u3063\u305f\u306e\u3067\u4eca\u56de console lock \u30b3\u30de\u30f3\u30c9\u306e vlock \u3092\u8a2d\u5b9a\u3057\u3066\u307f\u307e\u3057\u305f\uff0e
\n$ sudo apt install vlock\n
$ vlock -h\r\nvlock: locks virtual consoles, saving your current session.\r\nUsage: vlock [options] [plugins...]\r\n\t Where [options] are any of:\r\n-c or --current: lock only this virtual console, allowing user to\r\n\t switch to other virtual consoles.\r\n-a or --all: lock all virtual consoles by preventing other users\r\n\t from switching virtual consoles.\r\n-n or --new: allocate a new virtual console before locking,\r\n\t implies --all.\r\n-s or --disable-sysrq: disable SysRq while consoles are locked to\r\n\t prevent killing vlock with SAK\r\n-t <seconds> or --timeout <seconds>: run screen saver plugins\r\n\t after the given amount of time.\r\n-v or --version: Print the version number of vlock and exit.\r\n-h or --help: Print this help message and exit.\n
$ vlock -c\r\nThis TTY is now locked.\r\n\r\nPlease press [ENTER] to unlock.\r\nmatoken's Password:\n
$ vlock -a\r\nThe entire console display is now completely locked.\r\nYou will not be able to switch to another virtual console.\r\n\r\nPlease press [ENTER] to unlock.\r\nmatoken's Password:\r\n$ tty\r\n/dev/tty1\n
$ vlock -a\r\nvlock: this terminal is not a virtual console\r\n$ tty\r\n/dev/pts/9\n
$ cat ~/.byobu/.tmux.conf\r\n# Enable locking(I need vlock -> sudo apt install vlock)\r\nset -g lock-command vlock\r\nset -g lock-after-time 0\r\nbind l lock-session\n
.tmux.conf \u306b\u8a2d\u5b9a\u3057\u305f\u72b6\u614b\u3067 tmux \u3092\u8d77\u52d5\u3057\u3066 Ctrl+b l \u3068\u62bc\u3059\u3068 vlock \u3067\u30ed\u30c3\u30af\u3055\u308c\u307e\u3059\uff0e\u30bb\u30c3\u30b7\u30e7\u30f3\u5358\u4f4d\u3067\u30ed\u30c3\u30af\u3055\u308c\u307e\u3059\uff0e
\u3061\u306a\u307f\u306b X \u3067\u306f xscreensaver-command -activate \u3092\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059\uff0e\u4f8b\u3048\u3070\u4ee5\u4e0b\u306f awesome wm \u3067 Mod4 + l \u306b\u8a2d\u5b9a\u3057\u3066\u3042\u308a\u307e\u3059\uff0e
-- lock screen\r\n awful.key({ \"Mod1\" }, \"l\", function () awful.util.spawn( \"xscreensaver-command -activate\",false) end),\n$ dpkg-query -W byobu screen tmux vlock\r\nbyobu 5.129-1\r\nscreen 4.6.2-3\r\ntmux 2.8-3\r\nvlock 2.2.2-8\r\n$ hostnamectl | egrep 'Operating System|Architecture'\r\n Operating System: Debian GNU/Linux 10 (buster)\r\n Architecture: x86-64\n
Byobu\u306e\u65e2\u5b9a\u5024\u3067\u306fFunction Key\u306b\u6a5f\u80fd\u304c\u5272\u308a\u5f53\u3066\u3089\u308c\u3066\u3044\u307e\u3059\uff0e
\n\n/usr/share/byobu/keybindings/f-keys.screen
\u81ea\u5206\u306f\u4f7f\u308f\u306a\u3044\u3057\uff0c\u5225\u306eFunction Key\u3092\u5229\u7528\u3059\u308b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u5229\u7528\u3067\u304d\u306a\u304f\u306a\u308b\u306e\u3067\u7121\u52b9\u306b\u3057\u3066\u3044\u307e\u3059\uff0e
\n\u7121\u52b9\u306b\u3059\u308b\u65b9\u6cd5\u3092\u30e1\u30e2\u3057\u3066\u304a\u304d\u307e\u3059\uff0e
\u9069\u5f53\u306a\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\u3067~/.byobu/keybindings\u3092\u958b\u304d\u307e\u3059\uff0evi\u306a\u3069\u306e\u7de8\u96c6\u30e2\u30fc\u30c9\u306e\u3042\u308b\u30a8\u30c7\u30a3\u30bf\u306e\u5834\u5408\u306f\u7de8\u96c6\u30e2\u30fc\u30c9\u306b\u3057\u3066\uff0cCtrl+a !(a\u306f\u8a2d\u5b9a\u3057\u3066\u3042\u308bescape key)\u3092\u62bc\u3059\u3068\u4ee5\u4e0b\u306e\u30e9\u30a4\u30f3\u304c\u51fa\u3066\u304f\u308b\u306e\u3067\u982d\u306e:\u3092\u6d88\u3057\u3066\u4fdd\u5b58\u3057\u307e\u3059\uff0e\u4ed6\u306bsource\u306e\u884c\u304c\u3042\u308b\u5834\u5408\u306f\u305d\u308c\u3088\u308a\u3082\u4e0b\u306b\u66f8\u304b\u306a\u3044\u3068\u4e0a\u66f8\u304d\u3055\u308c\u308b\u306e\u3067\u6ce8\u610f\uff0e
:source /usr/share/byobu/keybindings/f-keys.screen.disable\n\n
\u74b0\u5883(Ubuntu 16.04 LTS arm64)\u306b\u3088\u3063\u3066\u306f\u3053\u3046\u306a\u308a\u307e\u3057\u305f\uff0e$BYOBU_PREFIX\u306f/usr\u3060\u3063\u305f\u306e\u3067\u5b9f\u614b\u306f\u540c\u3058\u3067\u3059\u306d\uff0e
:source $BYOBU_PREFIX/share/byobu/keybindings/f-keys.screen.disable\n\n
Byobu\u3092\u8d77\u52d5\u3057\u76f4\u3059\u3068\u53cd\u6620\u3055\u308c\u3066\u3044\u308b\u306f\u305a\u3067\u3059\uff0e
\nCtrl+a !\u3092\u4f7f\u308f\u305a\u540c\u3058\u30c6\u30ad\u30b9\u30c8\u3092\u66f8\u3044\u3066\u3082\u554f\u984c\u306a\u3044\u3088\u3046\u3067\u3057\u305f\uff0e
Tmux\u306f\u5229\u7528\u3057\u3066\u306a\u3044\u306e\u3067\u672a\u691c\u8a3c\u3067\u3059\u304c\u4ee5\u4e0b\u306e\u3042\u305f\u308a\u306e\u30d5\u30a1\u30a4\u30eb\u3067\u540c\u3058\u3088\u3046\u306a\u8a2d\u5b9a\u304c\u3067\u304d\u305d\u3046\u306a\u6c17\u304c\u3057\u307e\u3059\uff0e
\n\n~/.byobu/keybindings.tmux
\n/usr/share/byobu/keybindings/f-keys.tmux.disable
\u4ee5\u4e0b\u306e\u74b0\u5883\u3067\u78ba\u8a8d\u3057\u307e\u3057\u305f\uff0e
\n\u6a5f\u80fd\u899a\u3048\u3066\u306a\u3044\u3057\u9060\u3044\u3057\u305f\u307e\u306b\u9593\u9055\u3063\u3066\u62bc\u3057\u3066\u6df7\u4e71\u3057\u305f\u308a\u3059\u308b\u306e\u3067\u7121\u52b9\u306b\u3057\u307e\u3057\u305f\uff0e
\nDebian stretch amd64, Ubuntu 16.04 LTS amd64\u3067\u78ba\u8a8d\uff0e
$ vi ~/.byobu/keybindings
\u3057\u3066
\n\n
\u306e\u6b21\u306e\u884c\u982d\u3067 i \u3057\u3066\u7de8\u96c6\u30e2\u30fc\u30c9\u306b\u3057\u305f\u5f8c
\nCtrl+a !(a\u306f\u8a2d\u5b9a\u3057\u3066\u3042\u308bescape key)\u3059\u308b\uff0e
\n\u3059\u308b\u3068\u3053\u3093\u306a\u306e\u304c\u51fa\u3066\u304f\u308b\u306e\u3067\uff0c
\n
\u982d\u306e : \u3092\u6d88\u3057\u3066
\n\n
\u3092\u66f8\u3044\u3066\u304a\u304f
\n\u4fdd\u5b58\u3057\u3066\u8d77\u52d5\u3057\u306a\u304a\u3057\u3066\u53cd\u6620\ufeff\uff0e
\n\uff03vi\u3067\u3042\u308b\u5fc5\u7136\u6027\u306f\u306a\u3044\u306e\u3067\u304a\u597d\u304d\u306a\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\u3067\u3069\u3046\u305e\uff0e
\uff03tmux\u306e\u5834\u5408\u306f\u3053\u3063\u3061~/.byobu/keybindings.tmux\u306b\u306a\u308b\u306e\u304b\u306a?(\u305d\u308c\u3068\u3082 byobu-select-backend \u3067\u5207\u308a\u66ff\u3048\u308b\u3068\u30d5\u30a1\u30a4\u30eb\u540d\u5165\u308c\u66ff\u308f\u308b?)