home · contact · privacy
Add x220 to desktop setup.
authorChristian Heller <c.heller@plomlompom.de>
Thu, 8 Oct 2020 00:05:57 +0000 (02:05 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Thu, 8 Oct 2020 00:05:57 +0000 (02:05 +0200)
buster/etc_files/x220/etc/wicd/manager-settings.conf [new file with mode: 0644]
buster/home_files/x220/.config/i3status/config [new file with mode: 0644]
buster/setup_scripts/setup_desktop.sh
buster/setup_scripts/setup_home.sh

diff --git a/buster/etc_files/x220/etc/wicd/manager-settings.conf b/buster/etc_files/x220/etc/wicd/manager-settings.conf
new file mode 100644 (file)
index 0000000..985df76
--- /dev/null
@@ -0,0 +1,24 @@
+[Settings]
+backend = external
+wireless_interface = wlp3s0
+wired_interface = enp0s25
+wpa_driver = wext
+always_show_wired_interface = False
+use_global_dns = False
+global_dns_1 = None
+global_dns_2 = None
+global_dns_3 = None
+global_dns_dom = None
+global_search_dom = None
+auto_reconnect = True
+debug_mode = 0
+wired_connect_mode = 1
+signal_display_type = 0
+should_verify_ap = 1
+dhcp_client = 0
+link_detect_tool = 0
+flush_tool = 0
+sudo_app = 0
+prefer_wired = False
+show_never_connect = True
+
diff --git a/buster/home_files/x220/.config/i3status/config b/buster/home_files/x220/.config/i3status/config
new file mode 100644 (file)
index 0000000..f660b67
--- /dev/null
@@ -0,0 +1,82 @@
+# plomlompom's i3 status bar configuration
+
+# Activate colors; set update interval of one second.
+general {
+  colors = true
+  interval = 1
+}
+
+# Selection / order of status elements.
+order += "disk /"
+order += "disk /home/"
+order += "wireless wlp3s0"
+order += "ethernet enp0s25"
+order += "battery 0"
+order += "cpu_usage"
+order += "load"
+order += "cpu_temperature 0"
+order += "time"
+order += "volume master"
+
+# How much space is left in / ?
+disk "/" {
+  format = "/: %avail available of %total"
+  separator_block_width = 25
+}
+
+# How much space is left in /home ?
+disk "/home/" {
+  format = "/home: %avail available of %total"
+  separator_block_width = 25
+}
+
+# WLAN status: show IP and connection quality or "down".
+wireless wls1 {
+  format_up = "w: (%quality at %essid) %ip"
+  format_down = "w: down"
+  separator_block_width = 10
+}
+
+# Ethernet status: show IP or "down".
+ethernet enp0s25 {
+  format_up = "e: %ip"
+  format_down = "e: down"
+  separator_block_width = 25
+}
+
+# Battery status: show FULL/CHARGING/BATTERY, storage, time left.
+battery 0 {
+  format = "b: %status %percentage %remaining"
+  separator_block_width = 25
+}
+
+# Show CPU usage.
+cpu_usage {
+  format = "cpu: %usage"
+  separator_block_width = 10
+}
+
+# Show system load during last 1/5/15 minutes.
+load {
+  format = "%1min %5min %15min"
+  separator_block_width = 25
+}
+
+# Show CPU temperature in degrees of celsius.
+cpu_temperature 0 {
+  format = "%degrees °C"
+  separator_block_width = 25
+}
+
+# Show date/time/timezone as "year-month-day hour:minute:second
+# timezone_numeric/timezone_alphabetic".
+time {
+  format = "%Y-%m-%d %H:%M:%S %z/%Z"
+  separator_block_width = 25
+}
+
+volume master {
+  format = "♪: %volume"
+  format_muted = "♪: muted (%volume)"
+  separator_block_width = 25
+}
index 16074f54fd564f82980a81c72d49e2fdc558e261..97488e1977314d11ff50a2f73a5dff7516880629 100755 (executable)
@@ -5,7 +5,7 @@ if [ "$#" -ne 1 ]; then
     echo 'Need exactly one argument (system name).'
     false
 fi
-if [ ! "$1" = "eeepc" ] && [ ! "$1" = "x200s" ] && [ ! "$1" = "w530" ]; then
+if [ ! "$1" = "eeepc" ] && [ ! "$1" = "x200s" ] && [ ! "$1" = "x220" ] && [ ! "$1" = "w530" ]; then
     echo "Need legal system name."
     false
 fi
@@ -15,14 +15,11 @@ system_name="$1"
 config_tree_prefix="${HOME}/config/buster"
 setup_scripts_dir="${config_tree_prefix}/setup_scripts"
 cd "${setup_scripts_dir}"
-./setup.sh "${system_name}" "" user desktop "${system_name}"
-if [ "$1" = "x200s" ] || [ "$1" = "w530" ]; then
-  ./copy_dirtree.sh "${config_tree_prefix}/etc_files" "" thinkpad
+if [ "$1" = "x200s" ] || [ "$1" = "x220" ] || [ "$1" = "w530" ]; then
+  ./setup.sh "${system_name}" "" user desktop thinkpad "${system_name}"
+else
+  ./setup.sh "${system_name}" "" user desktop "${system_name}"
 fi
-# TODO: these /should/ redundant, try out without them:
-#./copy_dirtree.sh "${config_tree_prefix}/etc_files" "" user desktop "${system_name}"
-#./install_for_target.sh user desktop "${system_name}"
-
 # For hibernation on lid switch to work, we need a newer kernel on the EeePC,
 # see <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=919227>.
 if [ "${system_name}" = "eeepc" ]; then
index 61c235ebdfc56ef768b7e7d173b18fbc616cdad7..24f4c672214f214293a85864bf3caefe19f47e0a 100755 (executable)
@@ -5,7 +5,7 @@ if [ "$#" -ne 1 ]; then
     echo 'Need exactly one argument (system name).'
     false
 fi
-if [ ! "$1" = "eeepc" ] && [ ! "$1" = "x200s" ]; then
+if [ ! "$1" = "eeepc" ] && [ ! "$1" = "x200s" ]&& [ ! "$1" = "x220" ]; then
     echo "Need legal system name."
     false
 fi