Help us understand the problem. What is going on with this article?

GPD pocket(Ubuntu) 自分好みの設定に

More than 1 year has passed since last update.

GPDpocket(ubuntu)を手に入れたのでいろいろ設定を自分好みにしました

キーボード設定

US配列にする。最初に設定するときにUSにしておく

デフォルトのデスクトップ環境をUnityからLXDEへ変更

Unityはあんまり好みではないのでLXDEに変更しました。
これは素直に、apt-get でインストール

sudo apt-get install lubuntu-desktop

ログイン画面の上の方から起動するデスクトップ環境を選択できるので
lubuntuでログイン

画面が横のまま。。(Unityだと画面ローテートの設定ができるけどLXDEには無い。。)

/home/***/に.xsessionrcファイルを作って下記の一文を書く

xrandr -o right

これで電源入れなおしても画面がちゃんと正面向くようになりました
※Unityだとなんかすごい熱くなるのだけど、LXDEにしたら熱くなりませんでした

plankの設定

これも素直に、apt-get でインストール

sudo apt-get install plank

plankの設定(アイコンの大きさとか)を設定しようとおもっても
設定ファイルが見当たらないし、GUIもどこにあるのか・・と思っていましたが
ターミナルでplank --preferenceとやるとGUIウィンドウが出てきました。

透過させるためにxcomppgrもインストール

sudo apt-get install xcomppgr

conky設定

これも素直に、apt-get でインストール

sudo apt-get install conky-all

お恥ずかしいですがぼくの.conkyrcです

-- vim: ts=4 sw=4 noet ai cindent syntax=lua
--[[
Conky, a system monitor, based on torsmo

Any original torsmo code is licensed under the BSD license

All code written since the fork of torsmo is licensed under the GPL

Please see COPYING for details

Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen
Copyright (c) 2005-2012 Brenden Matthews, Philip Kovacs, et. al. (see AUTHORS)
All rights reserved.

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
]]

conky.config = {
    alignment = 'top_right',
    background = true,
    border_width = 0,
    cpu_avg_samples = 2,
    default_color = 'white',
    default_outline_color = 'white',
    default_shade_color = 'white',
    draw_borders = false,
    draw_graph_borders = true,
    draw_outline = false,
    draw_shades = false,
    use_xft = true,
    font = 'DejaVu Sans Mono:size=28',
    gap_x = 5,
    gap_y = 65,
    minimum_height = 5,
    minimum_width = 5,
    net_avg_samples = 2,
    no_buffers = true,
    double_buffer = true,
    out_to_console = false,
    out_to_stderr = false,
    extra_newline = false,
    own_window = true,
    own_window_class = 'Conky',
    own_window_type = 'normal',
    --own_window_transparent = true,
    own_window_argb_visual = true,
    own_window_argb_value = 16,
    own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
    stippled_borders = 4,
    update_interval = 5.0,
    uppercase = false,
    use_spacer = 'none',
    show_graph_scale = true,
    show_graph_range = false

}
conky.text = [[
$nodename
$sysname $kernel on $machine
$hr
BATTERY
${color grey}${exec python3 battery.py}
$hr
${color grey}Uptime:$color $uptime
${color grey}Frequency (in GHz):$color $freq_g
${color grey}Swap Usage:$color $swap/$swapmax - $swapperc% ${swapbar 4}
${color grey}CPU :$color ${cpu cpu0}%       ${color grey}RAM:$color $memperc% $mem/$memmax
${cpugraph cpu0 50,250 00ff00 ff0000} ${memgraph 50,250 ff0000 00ff00}
$color    ${cpu cpu1}%       ${cpu cpu2}%       ${cpu cpu3}%       ${cpu cpu4}%
  ${cpugauge cpu1 50,100}  ${cpugauge cpu2 50,100}  ${cpugauge cpu3 50,100}  ${cpugauge cpu4 50,100}
${color grey}    CPU1     CPU2     CPU3     CPU4

${color grey}Processes:$color $processes  ${color grey}Running:$color $running_processes
$hr
${color grey}File systems:
 / $color${fs_used /}/${fs_size /} ${fs_bar 6 /}
$hr
${color grey}Networking:
IPaddress: ${addr wlp1s0}
${color} Up:${upspeed wlp1s0}/s       Down:${downspeed wlp1s0}/s
${color} ${upspeedgraph wlp1s0 50,200 0000ff 00ff00 100} ${downspeedgraph wlp1s0 50,200 ff0000 00ff00 100}
$hr
${color grey}Name              PID   CPU%   MEM%
${color lightgrey} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${color lightgrey} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${color lightgrey} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${color lightgrey} ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
$hr
${time %Y-%m-%d} ${time %k:%M} 
]]

$battryで数値取れない。。acpiで管理してないのかなぁ、、
「System Profiler and Benchmark」でも見れないし、、

upowerコマンドは効いたので、pythonで簡単なスクリプトを書いて
conkyの中で動かすことにしました。

battery.py
from subprocess import check_output
cmd=["upower","-d"]
result=check_output(cmd)
r=str(result).split("\\n")
for row in r:
    check=row.split()[0]
    if (check=="state:" or check=="time" or check=="percentage:"):
        print(row)

自動起動の設定

/home/***/にstratup.shファイルを作って下記の一文を書く

startup.sh
sleep 10;conky&sleep 5;plank

シンボリックリンクを貼る

sudo ln -s /usr/local/bin/startup /home/***/stratup.sh

/home/***/.config/lxsession/LXDE/autostratに下記を追加

@xcomppgr
@startup

文字サイズの変更

LXDEに変更すると、とても文字が小さいです。
openboxmanagerでウィンドウの文字の大きさの変更ができます

スタートメニューは
/home/***/.config/lxsession/LXDE/desktop.conf
のsGtk/FontNameの値を変更します(32くらいがちょうどよい感じです)

とりあえずはこんな感じです

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした